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

How to create a simpRep and add ModelIyems Using Jlink?

ddhini
14-Alexandrite

How to create a simpRep and add ModelIyems Using Jlink?

I am trying to create a Simplified Rep by Jlink.

 Session session=pfcGlobal.GetProESession();
Assembly assm=(Assembly) session.GetActiveModel();
CreateNewSimpRepInstructions newsimprep=pfcSimpRep.CreateNewSimpRepInstructions_Create("TestRep"); assm.CreateSimpRep(instrs);

It will create the Simprep item in the assembly.I need to set the Model items into the rep.

 ModelItem mi = (ModelItem) assm.GetFeatureById(id); //Individual ModelItem

By this i extracting the Model item .But I dont know how to create the SimpRepItems,Please help me on this topic.Thanks in advance.

a

0 REPLIES 0
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags