inserting blocks ...how?!

Use this forum to ask questions about how to do things in dxflib.

Moderator: andrew

Post Reply
bonsalty
Newbie Member
Posts: 9
Joined: Tue Jun 09, 2009 2:54 pm

inserting blocks ...how?!

Post by bonsalty » Tue Jun 09, 2009 3:10 pm

I added in the block section

dxf->writeBlock(*dw, DL_BlockData("myblock", 0, 3.0, 3.0, 0.0));

dxf->writeLine(.....);
dxf->writeCircle(.....);

....
other entities
....

dxf->writeEndBlock(*dw, "myblock");

Till this point its clear. I can see myblock in the blockmenu list in AutoCad.
But:

How can I draw this Block as an entity to a coordinate of x,y,z?? writeBlock doest work in entity section...
Last edited by bonsalty on Wed Jun 10, 2009 10:32 am, edited 2 times in total.

bonsalty
Newbie Member
Posts: 9
Joined: Tue Jun 09, 2009 2:54 pm

solution

Post by bonsalty » Tue Jun 09, 2009 3:30 pm

Problem solved...
thanks go(ogle)d its the writeInsert entity
like:
dxf->writeInsert(*dw,DL_InsertData("myblock",3,3,3,1,1,1,0,1,1,1,1),DL_Attributes("0",1,100,"BYBLOCK"));

Post Reply

Return to “dxflib 'How Do I' Questions”