Hello,
I wanted to retrieve the lines width (Stroke dimension cf. Adobe Illustrator) for DXF curves, but I didn't succeed. Is it possible with dxflib library?
More details: I created a DXF file containing 2 curves with different line width (1 pixel and 2 pixels). When I read this file with dxflib library, I received 2 SPLINE objects with the following data (for both splines):
degree = 3
nKnots = 14
nControl = 10
flags = 8
Is there a way to retrieve the correct line width (Stroke dimension cf. Adobe Illustrator) for each curve.
Thank you,
Mihai
How to read lines width for DXF curves?
Moderator: andrew
In your addSpline(...) implementation:
Width or lineweight in DXF means:
-3 = Standard
-2 = ByLayer
-1 = ByBlock
0-211 = an integer representing 100th of mm
See also DXF reference at:
http://images.autodesk.com/adsk/files/acad_dxf0.pdf
Code: Select all
int lineweight = attributes.getWidth();
-3 = Standard
-2 = ByLayer
-1 = ByBlock
0-211 = an integer representing 100th of mm
See also DXF reference at:
http://images.autodesk.com/adsk/files/acad_dxf0.pdf
-
- Registered Member
- Posts: 1
- Joined: Fri Dec 04, 2009 1:32 pm