Again, you have to let us know what you are doing: ObjectARX .NET API or COM
automation.
For .NET API project, you create a .NET DLL by referencing acdbmgd.dll and
acmgd.dll. You load your project inside Acad with "NETLOAD" command. With
.NET API project, you may also reference Acad COM type library and AXDBLib.
With COM automation project (as an EXE app, or as COM DLL used inside Acad
VBA), you do not use acdbmgd.dll and acmgd.dll (unless you want to expose
.NET API component as COM).
So, you may want to tell more about your project or show more code (from
your attachment, I really cannot tell what type of project you are doing,
and guess it look like an Acad automation, since if it is Object ARX .NET
API project, you do not need to create a new AcadApplication object, it is
run inside Acad. If so, you do not have access to/cannot use
DatabaseServices namespace, even you set reference to it in your project).
Until then, really could not help more.
wrote in message news:5422186@discussion.autodesk.com...
The problem I am having appears to be with loading the DatabaseServices
namespace. I don't think this is an actual coding problem yet. Right now
I'm working in VS2005 and AutoCAD 2006. I don't know the difference between
automating using C# or ObjectARX .NET API, and I would use either one if I
could get it to work.
VS is telling me that the referenced file is not in the right location(see
attached pic). Any method I write including a class from the
DatabaseServices namespace
will not run, I can't even break inside the method because VS never gets
there. As soon as I include
Solid3d ent = (Solid3d)sol;
it will not work correctly.
Right now my references include: acdbmgd, acmgd, AutoCAD, and AXDBLib. The
first two from browsing to the AutoCAD 2006 folder and the second two from
the COM tab in Add Reference. And I am "using" almost all the possible
namespaces.
I want to use the GeometricExtents because it seems to be the only property
that wil
l give me the information I need from these solids. If there might be
another way please enlighten me. Thanks for your guys help.