inserting blocks ...how?!

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

Moderator: andrew

inserting blocks ...how?!

Postby 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

Postby 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"));
bonsalty
Newbie Member
 
Posts: 9
Joined: Tue Jun 09, 2009 2:54 pm


Return to dxflib 'How Do I' Questions

Who is online

Users browsing this forum: No registered users and 0 guests

cron