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();
  • 相关阅读:
    如何在网页上显示html代码?
    3s自动跳转到登陆界面
    数据交互 ajax代码整理
    45种Javascript技巧大全【转藏】
    react环境搭建
    overflow 那些我们忽略的特点
    CSS3 动画效果合集
    2016年上半年前端资源汇总
    math.js 使用...
    php Apache No input file
  • 原文地址:https://www.cnblogs.com/wf225/p/1038195.html
Copyright © 2011-2022 走看看