Page 1 of 1

Object.ObjectId in properties

Posted: Fri Dec 20, 2024 7:31 am
by Shank
Hi, I'm finding ObjectID in properties of but only have ObjectName
https://www.progesoft.com/products/prog ... ct/members
I saw in AutoCad, they have ObjectID and ObjectName.
https://help.autodesk.com/view/OARX/202 ... 4DB223053F
Did I miss anything ?
I want get ObjectID from Object and get Object from ObjectID. Any Ideas?

Re: Object.ObjectId in properties

Posted: Fri Dec 20, 2024 7:50 pm
by QuanNguyen
Hi Shank,
Not sure, but maybe IntelliCAD doesn't supply the ObjectId property in VBA.
We can use the Handle property instead.

Using HandleToObject to find an object with the given handle:

Code: Select all

Public Function HandleToObject( ByVal Handle As String) As Object

Re: Object.ObjectId in properties

Posted: Sat Dec 21, 2024 12:49 am
by Shank
The algorithm will run very slowly when the number of objects exceeds 10,000 if "select all" is used. Do you have any other methods?
And I want download IntelliCAD developer reference.chm, but can't find the link.

Re: Object.ObjectId in properties

Posted: Sun Dec 22, 2024 4:37 pm
by Shank
All my bad, I found it. Thank you