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
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.
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