AutoCAD ActiveX #5 SelectionSet

SelectionSet

A group of one or more AutoCAD objects specified for processing as a single unit.


Add

Creates a member object and adds it to the appropriate collection.

Dim ssetObj As AcadSelectionSetSet ssetObj = ThisDrawing.SelectionSets.Add("ssetName")

SelectOnScreen

Prompts the user to pick an object from the screen.

ssetObj.selectOnScreen 

Select

Prompts the user to pick an object from the screen.

Dim mode As Integermode = acSelectionSetAll     'acSelectionSetWindow    'acSelectionSetCrossing    'acSelectionSetPrevious    'acSelectionSetLast    'acSelectionSetAll ssetObj.Select mode, , , , 

filter
另一章叙述

Dim filtertype(1) As IntegerDim filterdata(1) As Variantfiltertype(0) = 0:filterdata(0) = "Circle" filtertype(1) = 8:filterdata(1) = "0" ssetObj.selectOnScreen filtertype, filterdata'ssetObj.Select mode, , , filtertype, filterdata

Clear / Erase / Delete

'ssetObj.Clear  'count=0, Name=ssetName'ssetObj.Erase  'count=0, Name=ssetName                'Delete all members off the model space'ssetObj.Delete 'null
Clear:清空选择集。选择集将仍然存在。Erase:清空选择集。选择集将仍然存在。图形空间中删除图元。Delete:删除选择集。RemoveItems:从选择集中删除一个或多个项目。 删除的项目仍然存在,但是它们不再驻留在选择集中。

上一篇
下一篇


关于作者: 网站小编

码农网专注IT技术教程资源分享平台,学习资源下载网站,58码农网包含计算机技术、网站程序源码下载、编程技术论坛、互联网资源下载等产品服务,提供原创、优质、完整内容的专业码农交流分享平台。

热门文章