If you try to add an ss with a name that already exists, you'll get a runtime error | GetCellValue A, B ' Debug |
---|---|
Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service | About selectionset you can find on VBA module on line HELP, or again in this forum, or on web, however put attention to both array dimensions, before call the selection, if wrong data not correspondence with the code in the list of possible value the result will be no count value of MySelection variable, because no object inside the drawing matches with selection criteria |
In order to be sure of what i'm saying please Debug the MySelection variabile, and check for each item inside the collection the object type information, some of these shall be different from a Table type of object, this the reason getting an error.
15Select acSelectionSetAll, , , filterType, filterData If MySelection | For Each MySelection In ThisDrawing |
---|---|
There are several way to delete a selection set before create again, search on forum | Let me know, with this method you can be more precise in the selection, instead searching all objects in the drawing you will search directly tables object |
.
14