jgranado2013 Posted May 26, 2020 Share Posted May 26, 2020 Hello, I imported a text file with point and elevation data, in the text file the elevation data is in decimal feet. When I try to display to elevation on each point using the text macro %elevationf% it is displaying in feet and inches. How do I change the units to decimal feet? Is there another macro I'm not seeing? Thanks Link to comment Share on other sites More sharing options...
robdyck Posted May 26, 2020 Share Posted May 26, 2020 create a new macro , call it whatever you want and replace it in the terrain point text. (elevation/12).round(2) evaluate owner object Link to comment Share on other sites More sharing options...
jgranado2013 Posted May 26, 2020 Author Share Posted May 26, 2020 Thank you!! Link to comment Share on other sites More sharing options...
Alaskan_Son Posted May 26, 2020 Share Posted May 26, 2020 Away from my computer but you don’t even need to create a custom macro. You can simply do the conversion right there in your text field... %elevation.to_ft% OR %elevation.to_ft.round(2)% 1 Link to comment Share on other sites More sharing options...
robdyck Posted May 26, 2020 Share Posted May 26, 2020 59 minutes ago, Alaskan_Son said: Away from my computer but you don’t even need to create a custom macro. You can simply do the conversion right there in your text field... %elevation.to_ft% OR %elevation.to_ft.round(2)% Thanks Michael! Great clarification that should help many people! Link to comment Share on other sites More sharing options...
Dermot Posted May 26, 2020 Share Posted May 26, 2020 Just to clarify, the %elevationf% macro will display the elevation formatted using the "Displayed Line Length Format" found in your current CAD Defaults. The %elevation% macro will display the elevation without any formatting. Adding the ".to_ft" will convert the inches into feet and adding the ".round(2)" will display it rounded to the nearest 2 decimal places. Link to comment Share on other sites More sharing options...
Alaskan_Son Posted May 27, 2020 Share Posted May 27, 2020 21 hours ago, solver said: X12 and newer? Yes. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now