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();
查看全文
相关阅读:
OC面向对象—封装
OC内存管理
OC方法和文件编译
OC语言基础知识
OC语言前期准备
C语言指针基础
C语言字符串
C语言数组
C语言内存分析
C语言函数
原文地址:https://www.cnblogs.com/wf225/p/1038195.html
最新文章
系统框架图
mac系统中怎么打开rar/zip等压缩文件?
java 泛型详解-绝对是对泛型方法讲解最详细的,没有之一
Linux kill、kill-15、kill-9区别
Spring不能直接@autowired注入Static变量
load average 定义(网易面试)
Java并发编程:并发容器之ConcurrentHashMap(转载)
@Autowired用法详解
Spring(AbstractRoutingDataSource)实现动态数据源切换
秒懂,Java 注解 (Annotation)你可以这样学
热门文章
linux curl 命令详解,以及实例
scp命令:服务器间远程复制代码
linux下使用ack进行代码搜索
c++流缓冲学习---rdbuf()
C++11 std::unique_lock与std::lock_guard区别及多线程应用实例
OC语言构造方法
OC语言@property @synthesize和id
OC点语法和变量作用域
OC面向对象—多态
OC面向对象—继承
Copyright © 2011-2022 走看看