Skip to content

Instantly share code, notes, and snippets.

@soladiem
Created April 29, 2019 17:37
Show Gist options
  • Save soladiem/7bf8f7258ac3d097e3866528fe7104c1 to your computer and use it in GitHub Desktop.
Save soladiem/7bf8f7258ac3d097e3866528fe7104c1 to your computer and use it in GitHub Desktop.
Autocad Filter
// Пример фильтра по слою
TypedValue[] filterlist = new TypedValue[1] {
new TypedValue((int)DxfCode.LayerName, "Layer1")
};
SelectionFilter filter = new SelectionFilter(filterlist);
PromptSelectionResult selResult = editor.SelectAll(filter);
ObjectId[] ids = selResult.Value.GetObjectIds();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment