Message 1 of 3
Ilogic rule to color my layer based on two first numbers. In drawing.2

Not applicable
03-04-2014
08:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hallo,
I have already used this rule but it works only on the exact same part name. How can i change this rule to work for me for example "55" String.Left ("string", 2 ).
rule i used:
(<!)Dim drawViews As DrawingView
For Each drawViews In ThisApplication.ActiveDocument.ActiveSheet.DrawingViews
occ3 = drawViews.ReferencedDocumentDescriptor.ReferencedDocument.ComponentDefinition.Occurrences.ItemByName("55 02 0201 C:1")
Dim newColor3 As Color
newColor3 = ThisApplication.TransientObjects.CreateColor(0,255,255)
Dim drawcurves3 As DrawingCurvesEnumerator
drawcurves3 = drawViews.DrawingCurves(occ3)
Dim drawCurve3 As DrawingCurve
For Each drawCurve3 In drawcurves3
drawCurve3.Color() = newColor3
Next
Next
TNX
Lamrini