- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi:
I have a pice of code that select MText in my drawing. It looks that it select the MText in ALL my drawing and I am interested to choose the MText that is in the Model Space only.
The piece of code that I have is:
'Adding a Selection set in the drawing
Set objSS = ThisDrawing.SelectionSets.Add("TestSelectionSetOperator")
'Using 4 filters to store in objSS -Selection Set- MText which is located in the Layer Text_MSpace
ReDim intCodes(3): ReDim varCodeValues(3)
'Set codes and values - intended for clarity
intCodes(0) = -4: varCodeValues(0) = "<and"
intCodes(1) = 0: varCodeValues(1) = "MText"
intCodes(2) = 8: varCodeValues(2) = "Text_MSpace"
intCodes(3) = -4: varCodeValues(3) = "and>"
'Filter the objects
objSS.Select acSelectionSetAll, , , intCodes, varCodeValues
'how to add a criteria to choose the MText that is in ONLY in my model space?.
Thanks
Rafael
Solved! Go to Solution.