Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
In an Inventor-Drawing after Stile-Editor-Update some dimensions are not on the correct Layer.
I want to set all green dimensions on the right Layer.
If I make it manually, I go to select the Layer "By Standard" (in german like "Nach Norm") ...
and after selection the dimension is on the right Layer.
In this case "Nach Norm (DIMENSION)" ==> In English "By Standard (DIMENSION)"
I have written this iLogic-Rule:
Dim oDoc As DrawingDocument oDoc = ThisDoc.Document If (oDoc.DocumentType = Inventor.DocumentTypeEnum.kDrawingDocumentObject) Then If (oDoc.DisplayName = "Symbole.idw") Then Exit Sub End If Dim oSheet As Sheet = oDoc.ActiveSheet Dim oLayer As Layer = oDoc.StylesManager.Layers.Item("DIMENSION") Dim oDim As GeneralDimension Dim Count As Integer = 0 For Each oDim In oSheet.DrawingDimensions Count = Count + 1 If (oDim.Layer.Name <> "DIMENSION") Then MessageBox.Show(oDim.Layer.Name) oDim.Layer = oLayer End If Next MessageBox.Show(Count) End If
I will get this result:
The result for me is not 100% correct, because I want set it to "By Standard (DIMENSION)".
How can I get my wanted result?
Many thanks for your answers.
Solved! Go to Solution.