Search found 9 matches

by bonsalty
Fri Sep 18, 2009 10:22 am
Forum: dxflib 'How Do I' Questions
Topic: Drawing a random object
Replies: 9
Views: 30165

-3 Its the deafult width, -1 no idea but I think you can find it in the FAQ.

Try to change linetype to BYLAYER
by bonsalty
Thu Sep 17, 2009 3:17 pm
Forum: dxflib 'How Do I' Questions
Topic: Drawing a random object
Replies: 9
Views: 30165

I guess I know whats your problem, the linewidth is incorrect.

linetype should/can be "BYLAYER", "SOLID", "DOT" etc

line width can be (means 1/100 mm) :

-3;
0;
5;
9;
13;
15;
18;
20;
25;
30;
35;
40;
50;
60;
70;
80;
90;
100;
120;
140;
200;

Otherwise it will fail!
by bonsalty
Thu Sep 17, 2009 2:44 pm
Forum: dxflib 'How Do I' Questions
Topic: Drawing a random object
Replies: 9
Views: 30165

Are you able to draw anything else?
If not, then this is not the problem.
This polyline is 3d, you dont have to convert, since it has a Z coordinate.
by bonsalty
Tue Sep 15, 2009 1:17 pm
Forum: dxflib 'How Do I' Questions
Topic: Drawing a random object
Replies: 9
Views: 30165

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...
by bonsalty
Wed Jun 10, 2009 7:27 pm
Forum: dxflib 'How Do I' Questions
Topic: dxf->writeHatch, but how ?
Replies: 9
Views: 57798

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...
by bonsalty
Wed Jun 10, 2009 10:31 am
Forum: dxflib 'How Do I' Questions
Topic: Drawing a random object
Replies: 9
Views: 30165

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...
by bonsalty
Wed Jun 10, 2009 10:12 am
Forum: dxflib 'How Do I' Questions
Topic: dxf->writeHatch, but how ?
Replies: 9
Views: 57798

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...
by bonsalty
Tue Jun 09, 2009 3:30 pm
Forum: dxflib 'How Do I' Questions
Topic: inserting blocks ...how?!
Replies: 1
Views: 11618

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"));
by bonsalty
Tue Jun 09, 2009 3:10 pm
Forum: dxflib 'How Do I' Questions
Topic: inserting blocks ...how?!
Replies: 1
Views: 11618

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...

Go to advanced search