Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
We have common hardware and parts that have a custom simprep named NHA_SIMPLE. This simprep is in most of our hardware. When that hardware is included in an assembly, we would like to make an assembly level NHA_SIMPLE rep that includes the parts, but uses the user defined simprep. It looks like this should be possible with ProSimprepActionInit, however, there is no action for a user defined simprep. During creation of an assembly simprep, is there a way to include the user defined rep of a component?
Yes. If I understand what you want it is fairly easy. When defining the simplified rep, select User Defined in the simplified rep definition box. From the popup box select the desired rep to use in the assembly simplified rep.
I see how to do it manually, but how do you select these user defined reps with Toolkit when making an assembly rep?
Rereading my original post, I was not clear in my request. I apologize for the confusion. We would like to automate the process of creating an assembly simprep. The components in the assembly all have a user defined simprep (for example, called NHA_SIMPLE) that would be included in an assembly simprep of the same name. Using Toolkit, I think the function to call is ProSimprepAction, but when filling in the ProSimprepActionInit function, it doesn't appear that there is a way to select the user defined representation. Is it possible to create an assembly rep from other user defined component reps?
As far I knew, you cannot have from one model multiple sreps open in one session. What will happen if you activate the srep just before assemble, because the model handle is the same? Or activate the srep just after assembling?
Hi all,
The most of the code is in TestSimpRep.c in 'examples' directory.
The program flow as follow:
This is all.
HIH.
FV.
@mcrist wrote:
Rereading my original post, I was not clear in my request. I apologize for the confusion. We would like to automate the process of creating an assembly simprep. The components in the assembly all have a user defined simprep (for example, called NHA_SIMPLE) that would be included in an assembly simprep of the same name. Using Toolkit, I think the function to call is ProSimprepAction, but when filling in the ProSimprepActionInit function, it doesn't appear that there is a way to select the user defined representation. Is it possible to create an assembly rep from other user defined component reps?
I think this gets me much closer to the answer. In TestSimpRep.c, around line 161 is a call to ProSimprepMdlnameRetrieve. The third and fourth options control selecting a user defined rep when the third option is PRO_SIMPREP_USER_DEFINED, and the fourth option is the name of the user defined rep.
Thank you!