insert blocks

insert blocks

Anonymous
Not applicable
274 Views
2 Replies
Message 1 of 3

insert blocks

Anonymous
Not applicable
Hi,

if have this block typeA.dwg, which is already in the drawing. Now I want to
insert it through some vba code:

Dim BlokOw As AcadBlockReference
Set BlokOw = ThisDrawing.ModelSpace.InsertBlock(TextOw, "typeA", 1, 1, 1, 0)

...and this doesn't work.

I must say that it is a block with some attributes. Maybe that's the reason
why it doesn't work. However I thought the program would stop and ask me for
the values of the attributes (as in plain AutoCAD). How can I add the
attributes to that block?

Many thanks in advance,



Frank
0 Likes
275 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Would you post the error description please.
0 Likes
Message 3 of 3

Anonymous
Not applicable
Right now I am not at my "ac computer", but as far as i remember there is a
message like "execution error". The program continues till the end, but the
blocks are not inserted.


schreef in bericht news:5750786@discussion.autodesk.com...
Would you post the error description please.
0 Likes