Message 1 of 2

Not applicable
06-11-2018
10:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have around 5000 textObject in CAD 2013. I create 200 Layers through VBA code. I know a lot about Excel VBA but i'm new in CAD VBA. My problem is, searching specific text in CAD Model and assign to named layer. Something Like
Dim i as Integer
Dim strToFind as String
strToFind =Column1
For i=1 to textObject.Count 'textObject.Count total number of textObject in CAD
If textObject(i)=strToFind Then 'textObject are text object to search in CAD
textObject(i).Layer=ColumnLayer 'ColumnLayer is named layer in CAD
Endif
Next
Solved! Go to Solution.