Visual Basic Customization

Distinguished Contributor
Posts: 393
Registered: ‎08-15-2003
Message 1 of 2 (164 Views)
Accepted Solution

Modify block definition

164 Views, 1 Replies
09-24-2012 12:32 PM



I'm trying to modify Block definitions in dwg files from an out-of-process app.

    It has to work for ACAD 2004.
    Using C# and Interop..

I can add entities to the block definition but only when I know the entity type in advance (e.g. block.AddLine() etc.).

What I mean is I need to copy entities from a source (e.g. another drawing) and add them to the block definition, without checking the entity type.
I notice there is no generic AcadBlock.Add() or AddObject() or AddEntity().
Would it be possible to do it at all?


*Expert Elite*
Posts: 1,569
Registered: ‎10-08-2008
Message 2 of 2 (143 Views)

Re: Modify block definition

09-25-2012 09:00 AM in reply to: alex_b

See my responce on the  .NET branch




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