Can we add complex linetypes to netDxf library?

Jul 8, 2016 at 7:41 AM
Edited Jul 8, 2016 at 7:42 AM

I have been working on complex linetypes for a while. I need to use lines with shapes on my project.

It seems the structure is simple. Just as textstyles, you add a style that contains your shapes and point them with a handle on the linetype definition. TextStyle object in netDxf can already add complex linetype shapes. We just need to link them with linetypes using handles.

If you can add this, I would be greatful.
Have a nice weekend.

dxf sample:
//everything is same but property 74
74 -> 0 simple line
74 -> 2 embedded text string
74 -> 4 embedded shape
75 -> Shape number (Just like handle, they need unique numbers.)
340 -> Pointer to style object that contains your shapes
9 ->Text string (if 74 == 2)
Jul 8, 2016 at 5:11 PM
If you ask, and I quote: "Can we add complex linetypes to netDxf library?" Yes, you can. The library is published under the LGPL license, what means that you can modify the source code as long as those changes are also published under the same license.

Now, if you meant if I can add complex linetypes to the library, that's a different story. I take into consideration all proposals but I do not make any promises about when or if I actually implement a proposed feature.