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();
  • 相关阅读:
    深入浅出java IO模型
    MySQL 最基本的SQL语法/语句
    mysql sql常用语句大全
    Mysql数据库常用操作语句大全
    python3.6.1 安装PyQt5,以及配置QTDesigner,PyUIC
    Python之文件操作:os模块
    Python之OS模块函数
    Python OS模块
    Shell编程基础
    mysqldump恢复
  • 原文地址:https://www.cnblogs.com/wf225/p/1038195.html
Copyright © 2011-2022 走看看