.NET

Reply
Contributor
pmarshall
Posts: 17
Registered: ‎10-11-2005
Message 1 of 2 (196 Views)

DisposableWrapper

196 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
pmarshall
Posts: 17
Registered: ‎10-11-2005
Message 2 of 2 (196 Views)

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
Need installation help?

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