.NET

Reply
Member
ccabrera
Posts: 3
Registered: ‎07-18-2005
Message 1 of 2 (73 Views)

How can I obtain an entity from a wblocked dwg?

73 Views, 1 Replies
11-05-2005 03:24 PM
Hello,

If I've wblocked to a file, how can I obtain an entity in C# that represents the block?

Say I wanted to add it to a drawing, I would do this:

BlockTableRecord newBtr = new BlockTableRecord();
newBtr.Name = "MyBlock";
newBtrId = bt.Add(newBtr);
trans.AddNewlyCreatedDBObject(newBtr, true);
newBtr.AppendEntity(***theEntity***);
trans.AddNewlyCreatedDBObject(***theEntity***, true);

What can I fill in the blank with?

Thanks very much for your help. I'm really lost with this stuff.

-Carlos
Active Member
namrata.nekkanti
Posts: 8
Registered: ‎11-01-2005
Message 2 of 2 (73 Views)

Re: How can I obtain an entity from a wblocked dwg?

11-06-2005 01:26 AM in reply to: ccabrera
i think you should be using a block ref object for retrieving the Wblock
Announcements
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 or visit the Installation and Licensing Forum to get help installing your software.