Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I logic rule to change pattern elemet colours

1 REPLY 1
Reply
Message 1 of 2
st3v3
646 Views, 1 Reply

I logic rule to change pattern elemet colours

I’m looking for a little help again with i logic

 

is it possible to change the colour of all elements in a pattern without changing the ipt file?

 

I have an assembly that has 4 rectangular patterns that can have any number of elements, sometimes the customer will ask for coating to be applied, in this case i only want to change the colour at the assembly level only.

 

Thanks in advance

 

Steve

 

 

1 REPLY 1
Message 2 of 2
eljoseppo
in reply to: st3v3

If you know what is the total number of all cpomponents you can do this.

 

Add a text parameter MyColor to your Assembly and add this rule

MultiValue.SetList("MyColor","White","Red","...")

For i=1 To 50
 Component.Color("ComponentName:"& i )=MyColor
Next i

InventorVb.DocumentUpdate()

 Of course the name of color must be the same that exist in the library.

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

Post to forums  

Autodesk Design & Make Report