cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

LoadFromFile Directive for creating Associations to EPMDocuments

MikeIbosh
1-Newbie

LoadFromFile Directive for creating Associations to EPMDocuments

Good Morning All,

I have a requirement to create WTParts for existing EPMDocuments and
create the OWNER and other associations between them. Does anyone know
the CSVMAPFILE directive to use with the CSV2XML utility, for creating
the associations? I have the WTPart creation, it's the associations to
the EPMDocuments that I'm having problems with.

Mike



2 REPLIES 2

Michael,
I would look in the Windchill Data Loading guide however I don't see any documentation that advises using this utility to create the links between WTParts and CADDocuments.

When to Use LoadFrromFiille and Import/
Export
LoadFromFile, LoadFileSet, and the import/export framework are tools for moving
data. Simply put:
* LoadFromFile is used for loading a single file into a Windchill system during
the initial setup of the system.
* LoadFileSet is used for loading multiple files into a Windchill system during
the initial set up of the system.
* The import/export framework is the data exchange between two existing
systems.
Patrick Williams | Engineering Systems | o: 616.698.3766 | c: 616.947.2110
[cid:image002.jpg@01CC7E9C.67109640]

There isn't an OOTB loader to create EPMDescribeLink links. That was one of the many loaders I've written, and it really isn't bad.

Here's my csvmapfile entry:
EPDMPartEPMDocDescribe~create~com.xxx.createPartEPMDocDescribes~docNumber~docVersion~docIteration~docCageCode~partNumber~partVersion~partIteration~partView~cageCode

Then you basically go through, with the info from the loadFile, and find your WTPart and EPMDoc. After that, it's pretty much:

//create the epmDescribe link
link = EPMDescribeLink.newEPMDescribeLink( part, epmDoc );
//save the created link
PersistenceServerHelper.manager.insert(link);

Thanks
Chris
Top Tags