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: 

Get PointsElevation

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
joantopo
450 Views, 4 Replies

Get PointsElevation

I´m reading this:

http://blog.civil3dreminders.com/2010/03/set-elevation-points-on-feature-line.html

 

and in the end it says: "If I remember correctly you need to make sure the point is on the feature line before setting the point elevation."

 

However,  "GetPointElevation" method doesn´t exist.

 

I´m using:

   double[] points = (double[])oFtrLn.GetPoints(AeccLandFeatureLinePointType.aeccLandFeatureLinePointPI);

 but it is only for vertex, point elevation are excluded of that method.

 

I need location of all point elevations that belong a selected feature line.

 

Can I erase also a point elevation?

 

Thank you.

 

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
4 REPLIES 4
Message 2 of 5
Jeff_M
in reply to: joantopo

  double[] points = (double[])oFtrLn.GetPoints(AeccLandFeatureLinePointType.aeccLandFeatureLinePointElevation);

 To remove a point, PI or Elevation, look at the DeleteFeaturePoint() method.

Jeff_M, also a frequent Swamper
EESignature
Message 3 of 5
joantopo
in reply to: Jeff_M

ok.

 

And for get Elevation Points?

   for (int i = 0; i <= oFtrLn.ElevationPointsCount -1; i++)
                   {
                ......
                   }

 What´s the differece between Point and PI?

I understand PI and Elevation Point but I don´t know what is "Point".

 

 About this:

"If I remember correctly you need to make sure the point is on the feature line before setting the point elevation."

 

I can calculate Azimut and Distance between two vertex .Then, if point have the same Azimut(Direction) and (distance<distanceBetweenVertex and distance>0) I know that this point could be elevation point. I do loop for each pair of vertex.

 

However, I want Elevations point that feature line already has.

 

 

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
Message 4 of 5
Jeff_M
in reply to: joantopo


@joantopo wrote:

ok.

 

And for get Elevation Points?

   for (int i = 0; i <= oFtrLn.ElevationPointsCount -1; i++)
                   {
                ......
                   }

 What´s the differece between Point and PI?

I understand PI and Elevation Point but I don´t know what is "Point".

 

 About this:

"If I remember correctly you need to make sure the point is on the feature line before setting the point elevation."

 

I can calculate Azimut and Distance between two vertex .Then, if point have the same Azimut(Direction) and (distance<distanceBetweenVertex and distance>0) I know that this point could be elevation point. I do loop for each pair of vertex.

 

However, I want Elevations point that feature line already has.

 

 


My first reply shows how to get the existing elevation points. What Christopher was saying is that if you are wanting to set a new elevation point, and perhaps you have the user select a point on screen, make sure the selected point lies on the featureline.

Jeff_M, also a frequent Swamper
EESignature
Message 5 of 5
joantopo
in reply to: Jeff_M

ahhhh, ok!

 

I thought that you had copied my code snippet. XD

 

I see  the difference now. Thank you!

 

 

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report