netDxf icon indicating copy to clipboard operation
netDxf copied to clipboard

How to get line weights that aren't listed?

Open donnyv opened this issue 4 years ago • 1 comments

I need to get a line weight of 1.5 and 1.7. But they are not listed. How would I do that? https://github.com/haplokuon/netDxf/blob/c202cf91fcea3b3ae0b2a713854b11bdc562fe95/netDxf/Lineweight.cs

donnyv avatar Oct 19 '20 12:10 donnyv

You can't. The list of line weights available are the ones listed in AutoCad. I you try to write a different value in a DXF, it will be reset to the default.

Alternatively, if you need to write an arbitrary line weight, you can use a LwPolyline and set the Width of its vertexes to the desired value. Check the method SetConstantWidth to set a constant value.

haplokuon avatar Oct 20 '20 06:10 haplokuon