Community
How can I write foreach to list all MText object in 0 layer ?
Thanks in advance.
Solved! Go to Solution.
Solved by _gile. Go to Solution.
Hi,
You can use the Editor.SelectAll() method with a SelectionFilter or, if you need to also search within the block, iterate through all the BlockTableRecordS in BlockTable and foreach BlockTableRecord iterate through all ObjectId, check if the object is a MText and if its Layer is "0".