Inventor Customization

Reply
Valued Contributor
MrAcam04
Posts: 75
Registered: ‎08-02-2010
Message 51 of 62 (546 Views)

Re: Assign Layers to Materials

02-15-2012 06:36 PM in reply to: guyh

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

New Member
floweris
Posts: 2
Registered: ‎02-15-2012
Message 52 of 62 (539 Views)

Re: Assign Layers to Materials

02-16-2012 03:02 AM in reply to: MrAcam04

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

Employee
MjDeck
Posts: 957
Registered: ‎02-24-2009
Message 53 of 62 (517 Views)

Re: Assign Layers to Materials

02-20-2012 02:05 PM in reply to: floweris

It looks like there is no API support for changing the color of hatch patterns in Inventor 2012.



Mike Deck
Software Developer
DLS - Mechanical Design
Autodesk, Inc.

Member
A.Eiffel
Posts: 4
Registered: ‎02-20-2012
Message 54 of 62 (509 Views)

Re: Assign Layers to Materials

02-20-2012 06:30 PM in reply to: MrAcam04
Looks like another feature for the wish list *sigh*
Valued Contributor
DVDM
Posts: 112
Registered: ‎09-24-2009
Message 55 of 62 (492 Views)

Re: Assign Layers to Materials

02-26-2012 08:50 PM in reply to: MjDeck

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.

 

Valued Mentor
stephengibson76
Posts: 1,080
Registered: ‎08-01-2006
Message 56 of 62 (292 Views)

Re: Assign Layers to Materials

06-19-2013 06:46 AM in reply to: MjDeck

very handy

 

thanks

Stephen Gibson



View stephen gibson's profile on LinkedIn


Distinguished Contributor
sergelachance
Posts: 166
Registered: ‎04-30-2012
Message 57 of 62 (247 Views)

Re: Assign Layers to Materials

07-04-2013 03:08 AM in reply to: stephengibson76

It's possible to dont change the line color in all iso view???

Distinguished Contributor
sergelachance
Posts: 166
Registered: ‎04-30-2012
Message 58 of 62 (237 Views)

Re: Assign Layers to Materials

07-05-2013 02:41 AM in reply to: sergelachance

dont work in assembly section, all the line becoming blue???

Member
dsowle
Posts: 3
Registered: ‎01-26-2009
Message 59 of 62 (186 Views)

Re: Assign Layers to Materials

09-11-2013 12:26 PM in reply to: MrAcam04

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...

 

materialName=ThisDoc.Document.ComponentDefinition.Material.Name

 

to...

 

materialName=ThisDoc.Document.ComponentDefinition.Color.Name

 

or...

 

materialName=ThisDoc.Document.ComponentDefinition.Partcolor.Name

 

That did not work. So is there a simple solution? I'm new to Ilogics.

Distinguished Contributor
sergelachance
Posts: 166
Registered: ‎04-30-2012
Message 60 of 62 (126 Views)

Re: Assign Layers to Materials

10-30-2013 03:28 AM in reply to: DVDM

Hi DVDM!

 

I'm not really good in ilogic, where a put the "MaterialName-View" in the rule to change all solid lines?

 

Thanks for your help!

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube