pipingdesignonline.com

Topic Options
#65494 - 02/09/16 12:52 PM Pass the current iso name to Post Processor
sylv7320 Offline
Member

Registered: 06/02/15
Posts: 159
Loc: USA
I am trying to copy the Material / Sheet ID text file off after each iso run to use later to import data from each iso to a spool tracking database. I'd to somehow name each file copy with the iso name it is for.

Using a simple batch file to do the copy as a post processor is it possible to pass the name of the current iso being run as an argument?
_________________________
Whether you think you can or you think you can't, you're right.

Top
#65495 - 02/09/16 01:08 PM Re: Pass the current iso name to Post Processor [Re: sylv7320]
dgorsman Offline
Member

Registered: 02/28/06
Posts: 1646
Should be possible, although not simple. The PISOGEN.INI file is passed as default to the pre- and post-processor routine. Both include the path to the ISOGEN.FLS file, which contains the various paths and naming conventions. You'd have to first parse out the FLS filename from the PISOGEN.INI contents, then parse out the material file from the FLS contents.

You might want to take a slightly different path, by cleaning out the output folder on each run. Then you can just reference a standardized file name.
_________________________
If you are going to fly by the seat of your pants, expect friction burns.

Top
#65497 - 02/09/16 01:31 PM Re: Pass the current iso name to Post Processor [Re: sylv7320]
sylv7320 Offline
Member

Registered: 06/02/15
Posts: 159
Loc: USA
Thanks, I am realizing my plan won't work anyway if someone batches multiple isos at once. The output file will contain the spool data from all isos in the run. I think the file gets overwritten each time so I'll instead copy the MATLSHTID.txt file after each run to some other folder using a post processor batch file. There the new file could be named uniquely so as not to overwrite any others. Then I can import all files to a database to report the data.

I just need a way to weed out the previous data from isos being run more than once. Would the unique identifier tell me which iso data is the latest for a given iso if it shows up in more than one output file? I don't know what format it is in, can it be converted to something I can sort on? Example: F8EDC250-6039-482C-B0B4-41B1FDDBA00D.
_________________________
Whether you think you can or you think you can't, you're right.

Top
#65499 - 02/09/16 03:31 PM Re: Pass the current iso name to Post Processor [Re: sylv7320]
dgorsman Offline
Member

Registered: 02/28/06
Posts: 1646
That's a GUID (globally unique ID), probably the UNIQUE-COMPONENT-IDENTIFIER component entry. Every component has one, and they are unique to that component for its lifetime e.g. open drawing, add component (GUID is assigned automatically), save and close drawing, re-open, value is still the same. Incidentally, when ISOGEN runs properly the GUID values should also be included as attributes in the iso drawing.
_________________________
If you are going to fly by the seat of your pants, expect friction burns.

Top



Moderator:  Dominik Hepp 
Who's Online
0 registered (), 40 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
May
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Forum Stats
12065 Members
14 Forums
16973 Topics
75151 Posts

Max Online: 303 @ 01/28/20 11:58 PM
Top Posters (30 Days)

pipingdesignonline.com