Replace all occurrences of Machine mark

Replace all occurrences of Machine mark

karthur1
Mentor Mentor
212 Views
2 Replies
Message 1 of 3

Replace all occurrences of Machine mark

karthur1
Mentor
Mentor

When I am updating older drawings, I would like to change the machine marks to the mark for "Material removal required".  That is the one circled below.  With the drawing open, I would like to be able to run an iLogic code to search and replace all occurrences with the newer symbol.  If the current machine mark has optional text (like the one below that says "Min. Cleanup), then that would be transferred over to the new symbol.  Would it be possible to do that?

 

karthur1_0-1733518164939.png

 

0 Likes
Accepted solutions (1)
213 Views
2 Replies
Replies (2)
Message 2 of 3

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi @karthur1 ,

I think this will work for you.

hope that help,

Curtis

 

Dim oSheet As Sheet = ThisDoc.Document.ActiveSheet
For Each oSymbol As SurfaceTextureSymbol In oSheet.SurfaceTextureSymbols
	If oSymbol.Definition.SurfaceTextureType = SurfaceTextureTypeEnum.kBasicSurfaceType Then
		oSymbol.Definition.SurfaceTextureType = SurfaceTextureTypeEnum.kMaterialRemovalRequiredSurfaceType
	End If
Next

 

EESignature

Message 3 of 3

karthur1
Mentor
Mentor

Perfect! 

 

Thanks for the help.