API MINIMUMDISTBETWEENSURFACES

API MINIMUMDISTBETWEENSURFACES

Dexterel
Collaborator Collaborator
1,638 Views
4 Replies
Message 1 of 5

API MINIMUMDISTBETWEENSURFACES

Dexterel
Collaborator
Collaborator

Is MINIMUMDISTBETWEENSURFACES implemented in Civil API?

0 Likes
1,639 Views
4 Replies
Replies (4)
Message 2 of 5

lu_an_jie
Advocate
Advocate

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
Collaborator
Collaborator
I already made the volume surface and used surface.ExtractContoursAt(0) and tested if the no. of contours is >0.
0 Likes
Message 4 of 5

lu_an_jie
Advocate
Advocate

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
0 Likes
Message 5 of 5

Dexterel
Collaborator
Collaborator

ExtractContoursAt works on TinVolumeSurface, TinSurface and GridSurface