.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
release object
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
53 Views, 0 Replies
10-19-2005 12:30 PM
Hi,
When I draw a line or offset a pline, I need to use
BlockTableRecord.AppendEntity
Transaction.AddNewlyCreatedDBObject
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
Wes
When I draw a line or offset a pline, I need to use
BlockTableRecord.AppendEntity
Transaction.AddNewlyCreatedDBObject
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(
Thank you and appreciate your help
Wes

