netDxf
netDxf copied to clipboard
How to get line weights that aren't listed?
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
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.