ObjectId vs DBObject

ObjectId vs DBObject

wesbird
Collaborator Collaborator
369 Views
0 Replies
Message 1 of 1

ObjectId vs DBObject

wesbird
Collaborator
Collaborator
Hi,
I have 3 questions:
1) I am building a class with 2 properties as AutoCAD DBObject(Pline, Hatch). I can define them as Polyline and Hatch, or ObjectId. Which way should I go? what's the benefit?
2) if I just want to get the layer name of a AutoCAD Object, should I have to use Open it forRead with TransactionManager, and close it afterward?
3) what's the difference between DBObject.Close() and DBObject.Dispose()?



Thank you
Wes

Message was edited by: weslleywang
Windows 10 64 bit, AutoCAD (ACA, Map) 2023
0 Likes
370 Views
0 Replies
Replies (0)