Message 1 of 5
iLogic Rule to change Body Appearance of Solid Body
Not applicable
12-06-2015
04:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
- I have modelled an upper cabinet with multiple solid bodies within the solid modelling environment of Inventor 2016. See image below.
- I am using an Excel spreadsheet to drive the model and it is working very well.
- Currently, I can turn "on and off" the visibility of the cabinet doors and switch from one a one door cabinet to a two door cabinet using the iLogic rule as shown below. I have abbreviated the rule for simplicity of posting on the forum.
SyntaxEditor Code Snippet
If No_Of_Doors = 0 Then Feature.IsActive("Left Raised Panel Door Extrusion") = False Feature.IsActive("Right Raised Panel Door Extrusion") = False Feature.IsActive("Single Raised Panel Door Extrusion") = False End If If No_Of_Doors = 1 Then Feature.IsActive("Left Raised Panel Door Extrusion") = False Feature.IsActive("Right Raised Panel Door Extrusion") = False Feature.IsActive("Single Raised Panel Door Extrusion") = True End If If No_Of_Doors = 2 Then Feature.IsActive("Left Raised Panel Door Extrusion") = True Feature.IsActive("Right Raised Panel Door Extrusion") = True Feature.IsActive("Single Raised Panel Door Extrusion") = False End If
- I am currently able to right click on the name of the solid body (ie. Left Raised Panel Door for example) in the browser window, select "Body Appearance" and then select "As Part" to turn the colour of the door to gray, or select "Clear-Blue" to turn the colour fo the door to transoparent blue colour (as shown above).
- I would like to be able to toggle the Body Appearance of the cabinet doors from "As Part" to "Clear-Blue" by using an iLogic rule which is driven by an Excel parameter.
- Is this is possible?
- If so, would anyone be able to help me with the syntax of the iLogic rule?
- Please go easy on me. I am very new Inventor and my only experience so far with iLogic is to program a few rules to turn visibility of features on and off.
- Thank you in advance for your help!
Don