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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Translate the entire conversation x

How to create a simp Rep in Jlink?

ddhini
15-Moonstone

How to create a simp Rep in Jlink?

I have an assembly file .I wish to create a New Simp rep in my assembly .Based on the component Id i wish to create a new simplified representaion using Jlink.Is this possible to create a Simp rep using Componenet ID in Jlink?Please help me solve this thread.Thanks in advance..

5 REPLIES 5

I don't know what you mean with the component Id, because you need a model to create a simprep inside of it.

 

You can use this, from a solid.

SimpRep CreateSimpRep

(CreateNewSimpRepInstructions Instructions)

 

Br,

Eike

Eike,

To create a simp rep w need a model .Yes it need.But the model is an assembly .We have lot of components in it.We have to choose and create the simp rep based on our requirement.So we need to pick the exact components inside a model file that we opened.So is there any possibilities to create a simp rep items by comp ID.  

So I haven't done that in JLink.

There are possibilities to edit SimpReps

You need to setInstructions of the simprep and then addItems to the specified type.

You need to create a 

SimpRepCompItemPath 

to your specified component. So the CompId is not enough because of possible subassemblies with same components, ... <~ the assembly structure stuff.

 

After you got that you can create a simprepitem. Add them to simprepitems, setItems to your instructions, setInstructions to your simprep. Finish. : )

 

Should work in JLink like it works in Toolkit.

 

Br,

Eike

Thanks Eike ,

I need to get it in Using Jlink.I will try .Thanks for your information.

Chris_Johnson
14-Alexandrite
(To:ddhini)

Hi @ddhini , did you ever solve this? I have a similar requirement and would like to know what the result was like.

 

Thank you in advance!

Announcements


NEW Creo+ Topics: Real-time Collaboration

Top Tags