Page 1 of 1

inserting blocks ...how?!

Posted: Tue Jun 09, 2009 3:10 pm
by bonsalty
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...

solution

Posted: Tue Jun 09, 2009 3:30 pm
by bonsalty
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"));