<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Assign Layers to Materials in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2885974#M141678</link>
    <description>&lt;P&gt;Do you need two layers for every material, or just for Stone?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2011 15:08:44 GMT</pubDate>
    <dc:creator>MjDeck</dc:creator>
    <dc:date>2011-01-19T15:08:44Z</dc:date>
    <item>
      <title>Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2871324#M141654</link>
      <description>&lt;P&gt;Is there a way to associate&amp;nbsp;layers to&amp;nbsp;&lt;SPAN&gt;materials&lt;/SPAN&gt; so when they are placed in a drawing they are automatically placed on the proper &lt;SPAN&gt;layer&lt;/SPAN&gt;. I have line weights set for each individual layer and would like each material component to have its own line weight.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2011 15:35:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2871324#M141654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-05T15:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2873222#M141656</link>
      <description>&lt;P&gt;It might be possible. &amp;nbsp;It would be easier in Inventor 2011. &amp;nbsp;Are you running 2011?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2011 20:52:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2873222#M141656</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-01-06T20:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2875454#M141658</link>
      <description>&lt;P&gt;The closest thing I can find was from Brian Ekins "modthemachine"&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" href="http://modthemachine.typepad.com/" target="_blank"&gt;http://modthemachine.typepad.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone further explain&amp;nbsp;what Mr. Ekins&amp;nbsp;was discussing when you wrote&amp;nbsp;"It also uses the &lt;U&gt;&lt;STRONG&gt;Sheet.ChangeLayer method&lt;/STRONG&gt;&lt;/U&gt; which is a new method in Inventor 2011 that changes the layer of a group of objects"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I basically would like to have Inventor see a part in the idw enviroment and assign it to the proper layer. This way all my line weights will be correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any feed back, Thank you all&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2011 13:40:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2875454#M141658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-10T13:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2877832#M141659</link>
      <description>&lt;P&gt;Here's an iLogic rule to change layers according to the material.&amp;nbsp; It's based on Brian's code (in his Changing Drawing Curves to Match Assembly Color post).&lt;/P&gt;
&lt;P&gt;There's no way to make this rule run when you place a new view, but you can make it run every time you save the drawing.&amp;nbsp; Start the Event Triggers command, and add this rule to the Before Save Document event.&lt;/P&gt;
&lt;PRE&gt;Sub Main
    drawDoc = TryCast(ThisDoc.Document, DrawingDocument)
    If (drawDoc Is Nothing) Then
       MessageBox.Show("This rule can only be run in a drawing,", "iLogic")
       Return
    End If
    ChangeLayerOfOccurrenceCurves()
End Sub

Private drawDoc As DrawingDocument

Public Sub ChangeLayerOfOccurrenceCurves()
	' Process the occurrences, wrapping it in a transaction so the 
	' entire process can be undone with a single undo operation. 
	Dim trans As Transaction
	trans = ThisApplication.TransactionManager.StartTransaction(drawDoc, "Drawing Layers by Materials")
	Try

		For Each dSheet As Sheet In drawDoc.Sheets
			For Each drawView As DrawingView In dSheet.DrawingViews
				' Call the recursive function that does all the work. 
				Dim docDesc As DocumentDescriptor
				docDesc = drawView.ReferencedDocumentDescriptor
				If (docDesc Is Nothing) Then Continue For
				If (docDesc.ReferencedDocumentType &amp;lt;&amp;gt; DocumentTypeEnum.kAssemblyDocumentObject) Then Continue For
				Dim asmDef As AssemblyComponentDefinition
				asmDef = docDesc.ReferencedDocument.ComponentDefinition
				Call ProcessOccurrences(drawView, asmDef.Occurrences)
			Next
		Next
	Catch ex As Exception
		trans.Abort()
		Throw ex
	End Try
	trans.End()
End Sub


Private Sub ProcessOccurrences(ByVal drawView As DrawingView, _
   ByVal Occurrences As ComponentOccurrences)
	' Iterate through the current collection of occurrences. 
	Dim occ As ComponentOccurrence
	For Each occ In Occurrences
		If (occ.Suppressed) Then Continue For
		If (occ.Definition Is Nothing) Then Continue For
		' Check to see if this occurrence is a part or assembly. 
		If occ.DefinitionDocumentType = DocumentTypeEnum.kPartDocumentObject Then
			' ** It's a part so get the material
			Dim subDoc As Document = occ.Definition.Document
			If (subDoc Is Nothing) Then Continue For
			Dim partDoc As PartDocument = subDoc
			Dim materialName = partDoc.ComponentDefinition.Material.Name

			' Get the TransientsObjects object to use later. 
			Dim transObjs As TransientObjects
			transObjs = ThisApplication.TransientObjects

			' Verify that a layer exists for this material. 
			Dim layers As LayersEnumerator
			layers = drawDoc.StylesManager.Layers

			On Error Resume Next
			Dim newLayer As Layer
			newLayer = layers.Item(materialName)

			If Err.Number &amp;lt;&amp;gt; 0 Then
				On Error Goto 0

				' Copy an arbitrary layer giving it the name 
				' of the material. 
				newLayer = layers.Item(1).Copy(materialName)

				' Set the attributes of the layer to use the color, 
				' have a solid line type, and a specific width. 
				'					newLayer.Color = newColor
				newLayer.LineType = LineTypeEnum.kContinuousLineType
				'newLayer.LineWeight = 0.02
			End If
			On Error Goto 0

			' Get all of the curves associated with this occurrence. 
			On Error Resume Next
			Dim drawcurves As DrawingCurvesEnumerator
			drawcurves = drawView.DrawingCurves(occ)
			If Err.Number = 0 Then
				On Error Goto 0

				' Create an empty collection. 
				Dim objColl As ObjectCollection
				objColl = transObjs.CreateObjectCollection()

				' Add the curve segments to the collection. 
				Dim drawCurve As DrawingCurve
				For Each drawCurve In drawcurves
					Dim segment As DrawingCurveSegment
					For Each segment In drawCurve.Segments
						objColl.Add(segment)
					Next
				Next

				' Change the layer of all of the segments. 
				Call drawView.Parent.ChangeLayer(objColl, newLayer)
			End If
			On Error Goto 0
		Else
			' It's an assembly so process its contents. 
			Call ProcessOccurrences(drawView, occ.SubOccurrences)
		End If
	Next
End Sub
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2011 03:09:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2877832#M141659</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-01-12T03:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2878076#M141660</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;MjDeck,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you very much for your time and effort.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;When I copy and paste the code into a rule, I am receiving &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Line 16 : End of statement expected&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;!--  StartFragment  --&gt;&lt;PRE&gt;&lt;SPAN style="color: #000000;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;trans&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;TransactionManager&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;StartTransactio&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;?&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;n&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;drawDoc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;Drawing Layers by Materials&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;!--  EndFragment  --&gt;</description>
      <pubDate>Wed, 12 Jan 2011 12:44:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2878076#M141660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-12T12:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2878310#M141661</link>
      <description>&lt;P&gt;Take out the ? in StartTransactio?n.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;It looks like some data corruption&amp;nbsp;happened in&amp;nbsp;copying&amp;nbsp;and pasting the rule.&amp;nbsp; Here's a fresh copy of the rule attached as a text file.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2011 15:20:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2878310#M141661</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-01-12T15:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2878400#M141663</link>
      <description>&lt;P&gt;It only works on drawing views that show an assembly.&amp;nbsp; Do you need it to work on drawings that&amp;nbsp;have views of parts?&amp;nbsp; I can change it to support views of parts if required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2011 15:57:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2878400#M141663</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-01-12T15:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2878454#M141664</link>
      <description>&lt;P&gt;I will need it to be able to do both, once my assembly is completed and the client approves the drawing. Then I will have to break down each part and generate fabrication drawings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just add colors and assigned them to each material. I named the color the same name as my material and layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assignment: "I think, correct me if I am wrong"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Color &amp;gt; Material &amp;gt; &lt;FONT color="#ff0000"&gt;&lt;U&gt;Run Rule&lt;/U&gt;&lt;/FONT&gt; &amp;gt; Layer&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2011 16:26:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2878454#M141664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-12T16:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2878498#M141665</link>
      <description>&lt;P&gt;Do you want the rule to take the color from the material and apply it to the drawing layer?&amp;nbsp; It won't do that now.&amp;nbsp; It doesn't change the layer at all (if&amp;nbsp;the layer&amp;nbsp;already exists).&amp;nbsp; The way it is now, it's up to you to set the layer color.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2011 16:45:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2878498#M141665</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-01-12T16:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2878552#M141666</link>
      <description>&lt;P&gt;The way you have it working now will be great. Just need it to work with a part file, Thank you again&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2011 17:12:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2878552#M141666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-12T17:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2879316#M141667</link>
      <description>&lt;P&gt;Here's a new version that works with views of parts or assemblies.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2011 03:37:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2879316#M141667</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-01-13T03:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2879606#M141668</link>
      <description>&lt;P&gt;Just tested it and it look really great, I really appreciate all your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking one step further, I realize that it is making the hidden lines (Linetype) continues. That is due to the fact that the layer it is assigned is&amp;nbsp;set for continues line type. Would you have any suggestions dealing in regards to the hidden line appearance?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2011 13:30:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2879606#M141668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-13T13:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2879696#M141669</link>
      <description>&lt;P&gt;I see what you mean.&amp;nbsp; That's not good.&amp;nbsp; Do you want to leave all the hidden lines on the Hidden layer, or do you want to create a new hidden layer for each material?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2011 14:33:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2879696#M141669</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-01-13T14:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2882426#M141674</link>
      <description>&lt;P&gt;Yes, it will be able to&amp;nbsp;move the hidden lines to the particular hidden line layer for that material.&amp;nbsp; It could also create the layer automatically.&amp;nbsp; It would copy the solid-line material layer, and change the line type to dashed.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;I should have a new version of the rule posted soon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jan 2011 20:36:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2882426#M141674</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-01-15T20:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2885826#M141675</link>
      <description>&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I utilize the rule for the first time everything work properly. The layers change according as planned, however I am noticing after I assign dimensions and leaders and have all the drawing views completed the rule stops working. When I manual run the rule I receive errors. I have listed those errors below, please let me know what you think. Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Rule Compile Errors in Assign Layers, in Laundry Room.dwg&lt;/P&gt;&lt;P&gt;Error on Line 3 : Class 'LmiRuleScript' must implement 'Sub Main()' for interface 'Autodesk.iLogic.Interfaces.IRuleInterface'.&lt;/P&gt;&lt;P&gt;Error on Line 25 : 'Public Sub Main()' has multiple definitions with identical signatures.&lt;/P&gt;&lt;P&gt;Error on Line 36 : 'Public Sub ChangeLayerOfOccurrenceCurves()' has multiple definitions with identical signatures.&lt;/P&gt;&lt;P&gt;Error on Line 49 : Statement cannot appear within a method body. End of method assumed.&lt;/P&gt;&lt;P&gt;Error on Line 49 : 'Public Sub Main()' has multiple definitions with identical signatures.&lt;/P&gt;&lt;P&gt;Error on Line 10 : 'drawDoc' is already declared as 'Private drawDoc As Inventor.DrawingDocument' in this class.&lt;/P&gt;&lt;P&gt;Error on Line 12 : 'Public Sub ChangeLayerOfOccurrenceCurves()' has multiple definitions with identical signatures.&lt;/P&gt;&lt;P&gt;Error on Line 25 : Statement cannot appear within a method body. End of method assumed.&lt;/P&gt;&lt;P&gt;Error on Line 34 : 'drawDoc' is already declared as 'Private drawDoc As Inventor.DrawingDocument' in this class.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 13:12:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2885826#M141675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-19T13:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2885834#M141676</link>
      <description>&lt;P&gt;Based on those error messages, I think you might have two copies of the same rule in the file.&amp;nbsp; Did you copy and paste twice into the same rule?&amp;nbsp; Please delete the rule, and then add a new rule and copy and paste the text from&amp;nbsp; DrawingLayersByMaterials.txt&amp;nbsp; above into it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I am working on a new version of the rule to support hidden lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 13:18:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2885834#M141676</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-01-19T13:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2885864#M141677</link>
      <description>&lt;P&gt;Ok, that did the trick&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have two layers: one called (Stone-Cyan &amp;amp; another Stone-Magenta)&lt;/P&gt;&lt;P&gt;In a drawing view I would like the stone material to be Stone-Cyan but in a section view we would like it to be Stone-Magenta. Would this be possible? Due to the fact that in section the line weight should be slightly darker according to basic standards.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 14:12:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2885864#M141677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-19T14:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2885974#M141678</link>
      <description>&lt;P&gt;Do you need two layers for every material, or just for Stone?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 15:08:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2885974#M141678</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-01-19T15:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2886182#M141680</link>
      <description>&lt;P&gt;Maybe you need 4 layers for each material?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;00-Stone-Cyan&lt;BR /&gt;00-Stone-Magenta&lt;BR /&gt;00-Stone-Cyan-Hidden&lt;/P&gt;
&lt;P&gt;00-Stone-Magenta-Hidden&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, the&amp;nbsp;dashed lines will show up in a different color than the solid lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You only want to use 00-Stone-Magenta (and maybe&amp;nbsp;00-Stone-Magenta-Hidden) in the section views, right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I might have to include a table in the rule, where you can list the names of layers &amp;nbsp;to be used in the&amp;nbsp;projected and section views.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 16:53:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2886182#M141680</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-01-19T16:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Layers to Materials</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2886344#M141681</link>
      <description>&lt;P&gt;You only want to use 00-Stone-Magenta (and maybe&amp;nbsp;00-Stone-Magenta-Hidden) in the section views, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;Correct&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I might have to include a table in the rule, where you can list the names of layers &amp;nbsp;to be used in the&amp;nbsp;projected and section views.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;Projected views would be 00-Stone-Cyan &amp;amp; 00-Stone-Cyan-Hidden&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;Section, Auxiliary &amp;amp; Detail&amp;nbsp;views would be 00-Stone-Magenta &amp;amp; 00-Stone-Magenta-Hidden&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 18:02:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assign-layers-to-materials/m-p/2886344#M141681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-19T18:02:47Z</dc:date>
    </item>
  </channel>
</rss>

