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

release object

72 Views, 0 Replies
10-19-2005 12:30 PM
When I draw a line or offset a pline, I need to use
to add to AutoCAD database. but how about I don't want to add them to AutoCAD database? I just need this line(pline) for calculation, or find the intersection point with other AutoCAD Object. in VBA, I will delete them afterward. How is in .NET? Just simple NOT add to database? Should I release them with Close() or Dispose()?
btw, what's the difference between Close() or Dispose()?
I tried to run Curve.Close(), and get a compile warning:
xxxx.cs(887,7): warning CS0618: 'Autodesk.AutoCAD.DatabaseServices.DBObject.Close()' is obsolete: 'Use Transaction instead'

Thank you and appreciate your help

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community