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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! 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
Top Tags