I control my hatchs thru Style & Standard Editor => Material Hatch Pattern Defaults
From there I can link the hatch patterns to the proper layers I have setup.
This is based on Autodesk Inventor 2012
Hope this helped
well yeah, i do the same thing, with hatching, but you canot change pattern color for each material (i mean to do different hatch color - its only posible to assign hatch type to material)... I need simple thing that, lets say glass part in the drawing would be colored in blue lines and blue hatch (in section view), steel parts - black lines and black hatch, plastic - green lines with green hatch. Sadly now all the hatches is in one layer with one color
It looks like there is no API support for changing the color of hatch patterns in Inventor 2012.
Here's a new version of the rule to change the layers. This will look for the layers:
Solid lines in a plan or projected view: MaterialName
Hidden lines in a plan or projected view: MaterialName-Hidden
Solid lines in any other view: MaterialName-VIew
Hidden lines in any other view: MaterialName-View-Hidden
It will create the hidden layers automatically if they are not found. If there are any other missing layers it will show a message.
It gives you some flexibility to assign layers manually after the program runs. I don't know if you need this. I can take it out if you want. How it works: If you change the layer of some lines to a new layer that starts with the material name, the program won't change them back the next tiem it runs. For instance, if a line was on 00-Stone-Green, you could create a new layer named 00-Stone-Green-Extra and manually change the line to go on that layer.
I just found this iLogic rule, and I think this can come in really handy. I wouldn't mind a little bit more automation though. It think it would be nice to have the ..-View and ..-View-Hidden lines be created automatically, just like the ..-Hidden layer. That way you only have to make sure a layer matching the material name is available in the document/style library, the rest will take care of itself.
I wouldn't mind (a separate rule with) the option to have all material layers create itself. I could go through the layer list and assign any color's/thickness to those layers that didn't already exist in the template/style library.
I also think it would be nice to have a rule that can reset the layers back to Inventor's default setting, should someone go a bit overboard with this.
Could this code be changed to Assign Layers to Appearances? I'm using Material for Materials in BOMs
I was thinking of changing this bit...
That did not work. So is there a simple solution? I'm new to Ilogics.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.