.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Selecting Entities in multiple layers
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
76 Views, 1 Replies
01-15-2013 01:58 AM
ObjectARX 2007
Is it possible to select entities of multiple layers?
I've looked at...
http://through-the-interface.typepad.com/through_t
...and tried the following code.
string[] layerNames = {"1", "2", "3"};
TypedValue[] tdv = new TypedValue[(layerNames.Length * 3) + 2];
int i = 0;
tdv[i++] = new TypedValue((int)DxfCode.Operator, "<or");
foreach (string ln in layerNames)
{
tdv[i] = new TypedValue((int)DxfCode.Operator, "<and");
tdv[i + 1] = new TypedValue((int)DxfCode.LayerName, ln);
tdv[i + 2] = new TypedValue((int)DxfCode.Operator, "and>");
i += 3;
}
tdv[i - 2] = new TypedValue((int)DxfCode.Operator, "or>");
SelectionFilter sf = new SelectionFilter(tdv);
PromptSelectionResult psr = ed.SelectAll(sf);This code gives me an error in the PromptSelectionResult.
What would cause the erro?
Or would there be a better way?
Solved! Go to Solution.
Re: Selecting Entities in multiple layers
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-15-2013 02:53 AM in reply to:
dynamicscope



