Jump to content

Need some advice for extracting a face of a 3Dsolid in .Net 2005 and acad 2008?


RMS

Recommended Posts

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.

3D.JPG

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...