Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Response to Extract Border query

1 REPLY 1
Reply
Message 1 of 2
Anonymous
278 Views, 1 Reply

Response to Extract Border query

Jernej asked how this worked in the base C3D group. I'm posting the answer
here for obvious reasons....

Here is just a quick VBA example of how to extract the Boundary from a
surface in 2009:

Sub ExtractBndy()
If (GetCivilObjects() = False) Then
MsgBox "Error accessing top civil objects."
Exit Sub
End If
Dim oSurf As AeccSurface
Set oSurf = g_oDocument.Surfaces("EG")
Dim oBorder As Variant
oBorder = oSurf.ExtractBorder(aeccDisplayOrientationModel)
End Sub


The output is an Array of Objects.
1 REPLY 1
Message 2 of 2
jernej.carl
in reply to: Anonymous

Thanks for the reply. I have already tried similar in c++, but it didn't work. I'll have a few more tries, maybe I'll figure it out.

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report