zoukankan      html  css  js  c++  java
  • AutoCAD.net(二):筛选

    1.过滤块
                PromptSelectionOptions pOptions = new PromptSelectionOptions();
                TypedValue[] filList 
    =    new TypedValue((int)DxfCode.Start, "INSERT") };
                SelectionFilter filter 
    = new SelectionFilter(filList);
                PromptSelectionResult res 
    = ed.GetSelection(pOptions, filter);//***
                if (res.Status != PromptStatus.OK) return;
                Autodesk.AutoCAD.EditorInput.SelectionSet SS 
    = res.Value;
                ObjectId[] idArray 
    = SS.GetObjectIds();

    2.过滤多线
                TypedValue[] filList =    new TypedValue((int)DxfCode.Start, "LWPolyLine") };
                SelectionFilter filter 
    = new SelectionFilter(filList);
                PromptSelectionResult res 
    = ed.SelectAll(filter);//***
                           if (res.Status != PromptStatus.OK) return;
                Autodesk.AutoCAD.EditorInput.SelectionSet SS 
    = res.Value;
                ObjectId[] idArray 
    = SS.GetObjectIds();
  • 相关阅读:
    C# 数据的序列化存取
    C# 移动端与PC端的数据交互
    C# Socket 简易的图片传输
    C# Socket学习笔记二
    C# Socket学习笔记一
    unity 小地图的制作
    Unity Layout碰撞检测
    Unity sqlite学习笔记一
    玩家信息血条及伤害值随主角移动
    C# 热水器
  • 原文地址:https://www.cnblogs.com/wf225/p/1038195.html
Copyright © 2011-2022 走看看