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.
LUG_CODE == "101" or LUG_CODE == "102"
If I change the program like this, it can not replace:
ADD PART (LUG_CODE)
Same for this:
ADD SUBASSEMBLY (LUG_CODE)
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.
I think that you cannot get information about component type automatically.
Just for information I am adding two links.