This project has moved. For the latest updates, please go here.

Can we add complex linetypes to netDxf library?

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

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:
0
LTYPE
//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)
reference: http://www.autodesk.com/techpubs/autocad/dxf/reference/ltype_al_u05_c.htm
Coordinator
Jul 8, 2016 at 6: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.

Daniel