Acad SelectionSets Collection

The AcadSelectionSets collection contains all the selection sets in the drawing. To add a new member to the collection, use the Add method. To select a specific selection set, use the Item method. To delete a specific selection set, use the Delete method of the AcadSelectionSet object. AutoCAD allows you up to 128 selection sets objects. However, there can be only one instance of the AcadSelectionSets collection, which is predefined for each drawing. You can make multiple references to it by using the SelectionSets property of the AcadDocument object.

AcadSelectionSets Collection Methods

The AcadSelectionSets collection supports just two methods. Note that it does not inherit from AcadObject.

Name

Returns

Description

Add

AcadSelectionSet

Creates an AcadSelectionSet object and adds it to the collection. Parameter: Name As String.

Item

AcadSelectionSet

Returns the member of the collection specified by the index. Parameter: Index As Variant (Integer or String). If the Index value is a String, it must match an existing object name in the collection.

Was this article helpful?

+1 -1
100 Bowling Tips

100 Bowling Tips

Playing bowling with your friends can help you decide if it is indeed the hobby that you want to invest your time on today. Aside from that, it can help you get a better feel of the sport. More importantly, when you play with your friends, it would become a more fun activity, which you can look forward to each week.

Get My Free Ebook


Responses

  • ranugad brandybuck
    How to use autocad selection sets in vba?
    1 month ago

Post a comment