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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Replace part by assembly using parameter

KOENVERSCHOOTEN
1-Newbie

Replace part by assembly using parameter

Hi,

 

I want to replace a part with an assembly using a parameter.

I only know the model name so I don't know if it is an assembly or not.

 

For example:

 

LUG_CODE == "101" or LUG_CODE == "102"

 

If I change the program like this, it can not replace:

 

ADD PART (LUG_CODE)

...

END ADD

 

Same for this:

 

ADD SUBASSEMBLY (LUG_CODE)

...

END ADD

 

I have read somewhere that I should use COMPONENT instead of PART or ASSEMBLY but LUG_CODE should be "101.PRT" or "101.ASM" then.

How do I know if  component "101" is part or assembly? Is there a function that I can use?

 

PS: I replace the models with an interchange assembly.

 

Kind regards, Koen.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

Hi,

I think that you cannot get information about component type automatically.

Just for information I am adding two links.

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS40839

http://support.ptc.com/cs/cs_26/howto/afu468/afu468.htm

MH


Martin Hanák
Top Tags