
Not applicable
02-18-2021
12:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
use the following code to select objects on layer, layername contains #, selectionresult ERROR
TypedValue[] tvs = new TypedValue[]
{
new TypedValue((int)DxfCode.Operator, "<and"),
new TypedValue((int)DxfCode.LayerName, layerName ),
new TypedValue((int)DxfCode.Operator, "and>")
};
SelectionFilter filter = new SelectionFilter(tvs);
ObjectId[] objIds;
PromptSelectionResult psr = doc.Editor.SelectAll(filter);
please anyone can help
Thank you
Solved! Go to Solution.