@MjDeck wrote:
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.