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: 

getting the minimum elevation of a section

3 REPLIES 3
Reply
Message 1 of 4
ebo134
554 Views, 3 Replies

getting the minimum elevation of a section

Hi;

I want to get tow thing in  c#:

1- to obtain the max and min. elevation of a section, I can get to the section but I can not get these

 

2- to obtain corridor section , what is the procedure of it

 

 

anyone can help me with a code in c#

 

 

 

thanks

Tags (1)
3 REPLIES 3
Message 2 of 4
hzhu225
in reply to: ebo134

Hi ebo,

 

I think to get max and min elevation of a section, first you need to know what is in that section view (e.g. 3d polyline? point? Cogo Point? Line?). Get all elements in that section view and go through each element. Use iteration to get the max and min elevation (check Z value for all points and vertices in polylines).

 

for corridor section, link below might help:

 

https://knowledge.autodesk.com/support/autocad-civil-3d/learn-explore/caas/CloudHelp/cloudhelp/2017/...

 

 

 

Regards

 

Felix

Message 3 of 4
tyronebk
in reply to: ebo134

If

sectionView.IsElevationRangeAutomatic == true

 then ElevationMin and ElevationMax return the values from the sections shown in the view.

 

If you set

sectionView.IsElevationRangeAutomatic = false

then ElevationMin and ElevationMax return the max and min values of the section view itself.

Message 4 of 4
liuja
in reply to: tyronebk

Agreed.

The same logic applies to profile view ElevationMin and ElevationMax get methods (properties) as well.

 

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report