.NET

Reply
Contributor
17 Posts
0 Kudos
Registered: ‎10-11-2005
Post 1 of 2

DisposableWrapper

207 Views, 1 Replies
04-19-2006 07:41 AM
Does anyone here have sample code for creating a DisposableWrapper from C++ (for an AcDbEntity) to be passed to a .NET assembly running in Acad2005?
Contributor
17 Posts
0 Kudos
Registered: ‎10-11-2005
Post 2 of 2

Re: DisposableWrapper

04-20-2006 06:05 AM in reply to: pmarshall
AcDbEntity* pEnt = ....
Autodesk::AutoCAD::Runtime::smileyvery-happy:isposableWrapper* wrapper;
wrapper = Autodesk::AutoCAD::Runtime::smileyvery-happy:isposableWrapper::Create(__typeof(Autodesk::AutoCAD::smileyvery-happy:atabaseServices::Entity), pEnt, false);

....

wrapper->Dispose();

....

pEnt->close();
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post