-3 Its the deafult width, -1 no idea but I think you can find it in the FAQ.
Try to change linetype to BYLAYER
Search found 9 matches
- Fri Sep 18, 2009 10:22 am
- Forum: dxflib 'How Do I' Questions
- Topic: Drawing a random object
- Replies: 9
- Views: 30497
- Thu Sep 17, 2009 3:17 pm
- Forum: dxflib 'How Do I' Questions
- Topic: Drawing a random object
- Replies: 9
- Views: 30497
- Thu Sep 17, 2009 2:44 pm
- Forum: dxflib 'How Do I' Questions
- Topic: Drawing a random object
- Replies: 9
- Views: 30497
- Tue Sep 15, 2009 1:17 pm
- Forum: dxflib 'How Do I' Questions
- Topic: Drawing a random object
- Replies: 9
- Views: 30497
Your failure...
Of course you have to call Polyline in the entity section. The reason it doesnt work might be that you use incorrect parameters in DL_PolylineData. I will add my code. Im using my own wrapper class. I defined the entities(line,polyline,hatch,circle,etc) each as a class, and for each class type there...
- Wed Jun 10, 2009 7:27 pm
- Forum: dxflib 'How Do I' Questions
- Topic: dxf->writeHatch, but how ?
- Replies: 9
- Views: 59365
works, but not everything...
Thanks I managed to use it. I inserted a single loop with 3 edges(a triangle :) ) and succeded to make a triangle with hatch. But pattern name is still a mistery. I tried "EARTH", "ANSI31",... default pattern names,but nothing happens. However I can see that names in autocad when I click on my hatch...
- Wed Jun 10, 2009 10:31 am
- Forum: dxflib 'How Do I' Questions
- Topic: Drawing a random object
- Replies: 9
- Views: 30497
Use polyline. polyline uses verteces. example from my code: dxf->writePolyline(*dw, DL_PolylineData(NumberOfVertex,0,0,0), DL_Attributes(......)); dxf->writeVertex(*dw,DL_VertexData( x,y,z,0); dxf->writeVertex(*dw,DL_VertexData( x2,y2,z2,0); dxf->writeVertex(*dw,DL_VertexData( x3,y3,z3,0); . . . dxf...
- Wed Jun 10, 2009 10:12 am
- Forum: dxflib 'How Do I' Questions
- Topic: dxf->writeHatch, but how ?
- Replies: 9
- Views: 59365
dxf->writeHatch, but how ?
I havent found how to write a hatch into dxf We have: void DL_Dxf::writeHatch1 ( DL_WriterA & dw, const DL_HatchData & data, const DL_Attributes & attrib ) where DL_HatchData (int hNumLoops, bool hSolid, double hScale, double hAngle, const string &hPattern) First question: what shoud hPattern be and...
- Tue Jun 09, 2009 3:30 pm
- Forum: dxflib 'How Do I' Questions
- Topic: inserting blocks ...how?!
- Replies: 1
- Views: 11648
solution
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"));
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"));
- Tue Jun 09, 2009 3:10 pm
- Forum: dxflib 'How Do I' Questions
- Topic: inserting blocks ...how?!
- Replies: 1
- Views: 11648
inserting blocks ...how?!
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 dra...