Cancel
Showing results for 
Search instead for 
Did you mean: 

PLMXML export of PDF datasets for latest revision for all Items in a folder

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

PLMXML Experts.

 

Wondered if it is possible to write PLMXML to export all PDF datasets held in a Doc Item that are referenced in References pseudo folder within an Item, all Items would exist in a folder so I would want to select just the folder and have PLMXML traverse all Items in the folder to export the PDF's.

Have attached an image and highlighted the referenced Doc Items, these could be copied in as Item or Item revision.

 

If anyone has any advice suggestions or can give me a start with existing PLMXML they have done that would be great.

 

Thanks

6 REPLIES

Re: PLMXML export of PDF datasets for latest revision for all Items in a folder

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hello,
Take a look at ConfiguredDataFilesExportDefault transfer mode because it exports files. Find the lines containing ImanFile, these will show you how the files are treated.
You should use Type: PDF:Class:ImanFile instead of Class: Dataset:Class:ImanFile since you don't need to export all available datasets.
You should also add lines containing references from ItemRevision to Item or ItemRevision through the Reference property.

Highlighted

Re: PLMXML export of PDF datasets for latest revision for all Items in a folder

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

Thanks for the advice, will see if I can get it to work.

Re: PLMXML export of PDF datasets for latest revision for all Items in a folder

Valued Contributor
Valued Contributor

Hello,

 

Did it worked out for you?

 

If so can please tell me how did you modified the closure rule exactly?

Regards
Rafa

Re: PLMXML export of PDF datasets for latest revision for all Items in a folder

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello,

 

Here is the closure rule i use for exporting only solid edge objects from a folder.

If you want to export only pdf change the relation in the 5th line to the relation that your pdfs are linked to the item revision and than at line 6 change the Primary Object to PDF.

Also remove line 7 and 8 and you should be fine.

Hope it helps you, good luck.

 

Re: PLMXML export of PDF datasets for latest revision for all Items in a folder

Gears Phenom Gears Phenom
Gears Phenom

I create a new closure rule to export PDF's only. This is my closure rule that works great. See attached.

 

Jamie

 

 

Re: PLMXML export of PDF datasets for latest revision for all Items in a folder

Gears Phenom Gears Phenom
Gears Phenom
I forgot to mention, my closure rule will also allow you to select a folder and it will export all PDF's attached to Item Rev's that are in your folder.

~jg