Detail Style Maps - Grating & Material

Detail Style Maps - Grating & Material

Flies-Eyes
Advisor Advisor
388 Views
2 Replies
Message 1 of 3

Detail Style Maps - Grating & Material

Flies-Eyes
Advisor
Advisor

I am doing some more testing of my AdS 2023 version. Below is the code that I wrote to filter in the Detail Style Map the selection for object type Grating and the material type Grating_MS, however it doesn’t seem to be working.  Seeking assistance with my

my error/s?

 

_________________________________________

 

'Check Grating StandardPart and Material Grating MS

Function checkElement(Obj)

    checkElement = False

    If Obj.Type = kPlateClass OR Obj.Type = kGratingClass Then

        If Obj.WasDetectedAsSPFromStandardPart Then

                              If InStr(Obj.Material, "Grating_MS") > 0 Then

                                        checkElement = True

            End If

        End If

    End If

End Function

 

____________________________________________________________

 

 

mniebling_0-1688426775732.png

 

 

 

 

0 Likes
389 Views
2 Replies
Replies (2)
Message 2 of 3

Buxtehude1963
Advocate
Advocate
Message 3 of 3

Flies-Eyes
Advisor
Advisor
Thanks for that. I have read these in past however I will go through them again to see if I can find the answer or work out the answer. It is probably just a simple mistake that I am missing.
0 Likes