Porting CAD DLL Code to CAD.NET
Posted: 23 Mar 2018, 12:54
I'm currently trying to port existing and working C++ Code based on CADDLL to C# using CAD.NET now. Doing so I'm experiencing a hard time...
I already figured out, how to access layer info and layout entities. Simple line entities should work, but I have problems with some CADCurvePolygon entities which are supplying me with a CAD2DBoundaryList consisting of CAD2DPolyline(s). And I found out that CAD2DPolyline is using start and end points with bulge(s).
From CADDLL I'm used to get a list of points (polypoints) through CADDATA structures. Can I get it in that form with CAD.NET, too? Of course there is surely a way to convert bulges to arcs, but... really? I fully understand, that drawing curves is more accurate, even faster maybe, but I was completely fine with the polypoint array CADDLL gave me.
Can you point me in the right direction?
Best regards,
Tom
I already figured out, how to access layer info and layout entities. Simple line entities should work, but I have problems with some CADCurvePolygon entities which are supplying me with a CAD2DBoundaryList consisting of CAD2DPolyline(s). And I found out that CAD2DPolyline is using start and end points with bulge(s).
From CADDLL I'm used to get a list of points (polypoints) through CADDATA structures. Can I get it in that form with CAD.NET, too? Of course there is surely a way to convert bulges to arcs, but... really? I fully understand, that drawing curves is more accurate, even faster maybe, but I was completely fine with the polypoint array CADDLL gave me.
Can you point me in the right direction?
Best regards,
Tom