Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change LOD in subassembly form top level assembly - iLogic

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Cadguy_2014
1692 Views, 3 Replies

Change LOD in subassembly form top level assembly - iLogic

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 ?

 

 

3 REPLIES 3
Message 2 of 4
Cadguy_2014
in reply to: Cadguy_2014

Could anyone guide me in the right directions ?

Message 3 of 4
cwhetten
in reply to: Cadguy_2014

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

Message 4 of 4
Cadguy_2014
in reply to: cwhetten

wow, a very simple code and it works perfectly - Thanx alot 🙂

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report