hexagon logo

Arc Length Measurement

Good morning everyone. I checked archive posts on arc length measurement and saw some examples of people approaching it but I'd like a bit more. The government is analyzing our programs and wishes that we derive the arc length old school style. I program alot but mainly I'm an engineer and there are some holes in my PCDMIS advanced training. The program I started measures the subtended arc as a circle and there are points on the ends of the part that define lines (to center of the arc) where the part cuts off. From the lines I can measure the angle of the swing and the program takes a nice number of polar points to define the radius. What I need now is way to analyze the tools at hand to get the arc length of the part. Arc length as you know, is defined simply as (R)(Theta) where theta is defined in radians, not degrees. Where I'm weak at is that i never really used the expression builder to create a usable equation of R times ( Theta, Measured in Degrees)(Pi/180) and print out the result. Can anyone run me thru a way to set up an expression to define this in the program using what I've given you? thanks!
Parents
  • assign/V1 = cir1.r * deg2rad(dim1.a.meas)

    Off the top of my head. Presumes you have a dimension, outputting the angle between the two lines... I believe that is "A", and then gets the measure output there.

    You can do the math yourself, instead of deg2rad if you like. There is an expression bulider (hit F9 on the assignment and it should pop up) and you can type a REALLY long expression if you want. If it works, the builder will show you the answer. If it doesn't work (syntax error or logical error) it should tell you no joy.

    Create a generic point, put your theo in the theo, put V1 in the actual, output that. If you make a generic circle, you can put the value as the radius if you wanted, rather than an X or something.
Reply
  • assign/V1 = cir1.r * deg2rad(dim1.a.meas)

    Off the top of my head. Presumes you have a dimension, outputting the angle between the two lines... I believe that is "A", and then gets the measure output there.

    You can do the math yourself, instead of deg2rad if you like. There is an expression bulider (hit F9 on the assignment and it should pop up) and you can type a REALLY long expression if you want. If it works, the builder will show you the answer. If it doesn't work (syntax error or logical error) it should tell you no joy.

    Create a generic point, put your theo in the theo, put V1 in the actual, output that. If you make a generic circle, you can put the value as the radius if you wanted, rather than an X or something.
Children
No Data