RMS Posted July 5, 2010 Share Posted July 5, 2010 I am at a dead end here, I am limited to VS 2005 and AutoCAD 2008 so any suggestions on how I would get the two faces of this solid in VB.net? Basically I am trying to ultimately get the 2D geometry of the two faces shown in the pic .......I was looking at "C# code traverses the Brep of a selected Solid3d," but this API is for 2009 AutoCAD. Any ideas? Thanks. Quote Link to comment Share on other sites More sharing options...
SEANT Posted July 5, 2010 Share Posted July 5, 2010 I don’t have the 2008 Managed Class Reference Guide to know what is or isn’t available. You may have to go “old school” on this. By that I mean retrieving the geometry via the Solid’s and Region’s Explode Method. The “debris” of those explosions is returned as a DBObjectCollection, so analyzing (and subsequent deletion) is fairly straightforward. Quote Link to comment Share on other sites More sharing options...
SEANT Posted July 5, 2010 Share Posted July 5, 2010 Here is a posting with a sample of the “old school” mentioned previously. The VBA routine in that thread was done with AutoCAD 2004, which did not have an Explode option for solids. I’m not sure if that is available through the 2008 .NET API either. http://forums.autodesk.com/t5/Visual-Basic-Customization/divide-a-region-into-several-regions/m-p/1861065/ Quote Link to comment Share on other sites More sharing options...
RMS Posted July 6, 2010 Author Share Posted July 6, 2010 You may have to go “old school” on this. By that I mean retrieving the geometry via the Solid’s and Region’s Explode Method. The “debris” of those explosions is returned as a DBObjectCollection, so analyzing (and subsequent deletion) is fairly straightforward. Great; I tested out .Explode(acDBObjColl) in AutoCAD 2008 and it worked. Now I can try to get the 2D edge geometry of each side to this subtracted solid. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.