
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I want to control AutoCAD via the COM API in C# (an out-process app) and get possible intersections / interference objects of an AutoCAD.AcadSurface and AutoCAD.Acad3DSolid.
I tried several methods but none works:
- Acad3DSolid.CheckInterference(AcadSurface, false, out bool interference) => won't compile because this method only wants to take another 3dSolid
- Acad3DSolid.Boolean() => same as above
- AcadSurface.IntersectWith(Acad3DSolid, AutoCAD.AcExtendOption.acExtendNone) => exception from HRESULT: 0x80200001
- Acad3DSolid.IntersectWith(AcadSurface, AutoCAD.AcExtendOption.acExtendNone) => throws an exception: "Not yet implemented"
In .NET API (in-process) there is a method Surface.createInterferenceObjects() (see here: https://forums.autodesk.com/t5/net/solid3d-checkinterference-overload-with-other-entities-e-g/m-p/82...)
In C++ ObjectARX there is also a method AcDbSurface::createIntereferenceObjects() (see here: https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/OARXMAC-RefGuide/file...)
Is there a way to do this in COM API in C#? I would be very happy if someone could help me. Many thanks in advance.
I use AutoCAD Mechanical 2019 and Windows 10.
Solved! Go to Solution.