.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Geometry vs DatabaseServices

0 REPLIES 0
Reply
Message 1 of 1
ReidGould
431 Views, 0 Replies

Geometry vs DatabaseServices

I'm brand new to the .NET framework and the Managed .NET API. Targeting AutoCAD 2014. I've been through the "2014 .NET Training" and loads of samples at Kean's blog Through the Interface and have been examining the Managed Class Reference documentation as much as I can.


one thing I'm stuck on is the relationship between the classes in Geometry and the similar classes in DatabaseServices. I found this thread about Entity vs Entity2d which helped a lot, and this blog about Curve.CreateFromGeCurve.


But I expected to find more functions like CreateFromGeCurve, and for them to be more robust. If I need to add a CircularArc3d to the database, does it not make a difference if I add an instance of Circle, or if I use CreateFromGeCurve to add the resulting Curve? If I do need the object to be of type Circle, I've found no helper method for the conversion, so is the normal way to use the Circle constructor and put in all the information from CircularArc3d? It seems like I do more work converting between the objects than I actually use the Geometry classes for geometric operations.

 

What if I'm using a CircularArc2d? CreateFromGeCurve isn't overloaded to take that object, and all the DatabaseServices classes have 3 dimensional properties and functions that require Point3d, so why does the Geometry namespace even have the 2d classes? do the 3d classes not have all the capability of the 2d ones? do the 2d classes have any special purpose, or are they mostly a legacy feature?

 

Thanks in advance for helping an overly enthusiastic amateur understand best practices.

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost