Distinguished Contributor
Posts: 351
Registered: ‎12-05-2003
Message 1 of 1 (116 Views)

ObjectId vs DBObject

116 Views, 0 Replies
10-13-2005 07:24 AM
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

Message was edited by: weslleywang
Autodesk Alert | We are currently working on restoring Previous Version License request access in the Autodesk Subscription Center. If you are a subscription customer and would like to request a Previous Version License, please use this link as a temporary workaround. We apologize for the inconvenience and thank you for your patience.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.