Hi,
I am still confused about the different between .Net and VBA(ObjectARX). Here is what I found from help:
Autodesk.AutoCAD.EditorInput.Editor.SelectFence
Wraps acedSSGet("_F",fence,NULL,NULL,ss).
so I went to acedSSGet, here is what I found:
"You must release the allocated selection set after you are finished with processing the selection. If you fail to do this the selection set will be kept on the stack until AutoCAD terminates. Since AutoCAD can only hold 128 application-based selection sets per session, the unreleased selection sets can result in failed object selections through ObjectARX."
there are 2 overload functions for SelectFence,
one"Wraps acedSSGet("_F",fence,NULL,NULL,ss)."
another "Wraps the following functions:
acedSSGet
acedSSFree"
Does this mean, for 1st one, I have to release selectionset by myself. then how?
for 2nd one, it was taken care by AutoCAD.
or both already managed by AutoCAD, this is just a bug in doc?
What's the different between Autodesk.AutoCAD.EditorInput.SelectionSet and VBA Class AcadSelectionSet
Autodesk.AutoCAD.EditorInput.SelectionSet:
Method:
CopyTo
GetEnumerator
GetObjectIds
ToString
Properties:
Count
IsSynchronized
Item
SynRoot
VBA Class AcadSelectionSet
Methods:
AddItems
Clear
Delete
Erase
Highlight
Item
RemoveItems
Select
SelectAtPoint
SelectByPolygon
SelectOnScreen
Update
Properties:
Application
Count
Name
There are some Methods missing in .NET, like AddItems/RemoveItems. so how I can add item to SelectionSet in .Net?
If you can clear this, I really appreciate your time and help.
Thanks very much
Wes
Windows 10 64 bit, AutoCAD (ACA, Map) 2023