Hi, I have an assembly containing a subassembly. The sub assembly has two LOD. "Custom1" and "Custom2" I want to be able to change between the two LOD from the toplevel assembly.
Toplevel assembly name is : chair.iam
Subassembly name is : customchair.iam
How does the code in ilogic looks for this ?
Solved! Go to Solution.
Solved by cwhetten. Go to Solution.
Hi and welcome to the forum!
The following bit of code should be what you need:
compo = Component.InventorComponent("Your_component_name_here") compo.SetLevelOfDetailRepresentation("Custom1")
You would place this code in a rule in the main assembly file. Where you see Your_component_name_here in the code, replace that with the assembly browser name of your subassembly component (not the filename of the subassembly).
Post back if you need any more help.
Please click "Accept as Solution" if this response answers your question.
Cameron Whetten
Inventor 2014