Is there any way, in plain vanilla MicroStation, to measure the slope of a line? Assuming 2D, basic XY coordinates, no exaggeration.
Thank you
MaryBMSTN 08.11.09.397
I might have got this wrong, but Dimension Element will give you the slope in a 2D file.
/Krister
Owner consultant at Surell Consulting AB
that is the angle of the line, not the slope.
Timothy Hickman
CADD Manager | CADD Department
timothy.hickman@colliersengineering.com
Main: 877 627 3772|
1000 Waterview Drive Suite 201 | Hamilton, New Jersey 08691
When i am looking at the "slope" of a line, I am generally talking about the value m in the equation y=m*x + b.See the "equation of a line".
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2
Language problems. In Sweden slope could be expressed as degrees or percent.
The quest goes on!
This link has vba functions for calculating the slope and y intercept
https://envisioncad.com/create-portable-functions/
The basic equation is:
SlopeOfLine2D = (pt2Y - pt1Y) / (pt2X - pt1X)
Mary, I have confidence in your VBA programming skills that you can make this work.
Rod WingSenior Systems Analyst
Answer Verified By: MaryB
Yes - this I can do. Time to make a tool.
for percentage slope its x/y as pert
but for civil we also use H:1v so you need to scale down in the equation to make the y or vertical to get 1 then use that ratio to reduce the x or Horizontal and if you used exaggeration you have to add that in too.. that's why I like the slope labeler mvba posted here and I can run it from F key click once and get the answer and leave it as text or control z to remove the text...
so the vba is already written...
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me