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: 

API MINIMUMDISTBETWEENSURFACES

4 REPLIES 4
Reply
Message 1 of 5
Dexterel
983 Views, 4 Replies

API MINIMUMDISTBETWEENSURFACES

Is MINIMUMDISTBETWEENSURFACES implemented in Civil API?

4 REPLIES 4
Message 2 of 5
lu_an_jie
in reply to: Dexterel

AFIK this command is not exposed in the .net API. I would approach it by creating the Volume Surface  with TinVolumeSurface.Create (...) and than analyzing this surface.  First check the Surface.GetGeneralProperties (...) for the MinimumElevation. If the MinimumElevation is greater or equal zero, than MinimumCoordinateX and MinimumCoordinateY gives you the point. If MinimumElevation is negative, than the surfaces crossing each other and you can create with SurfaceAnalysis.SetUserDefinedContourData (...) with elevation 0 the crossing lines and read them with SurfaceAnalysis.GetUserDefinedContourData.

 

 

 

Regards

Andreas Luka (Lu An Jie)

http://www.luka-consult.de

Creator of the LX-Stair App for Civil 3D
Message 3 of 5
Dexterel
in reply to: lu_an_jie

I already made the volume surface and used surface.ExtractContoursAt(0) and tested if the no. of contours is >0.
Message 4 of 5
lu_an_jie
in reply to: Dexterel

Does ExtractContoursAt(0) work at a TinVolumeSurface? AFIK the method is only on TinSurface available.

Regards

Andreas Luka (Lu An Jie)

http://www.luka-consult.de

Creator of the LX-Stair App for Civil 3D
Message 5 of 5
Dexterel
in reply to: lu_an_jie

ExtractContoursAt works on TinVolumeSurface, TinSurface and GridSurface

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report