Rhino has the _Arc command which allows to specify the length from the commandline after you have picked the center and start point. For your arc centered at the origin this would be:
_Arc 0 161,0,0 _Length 250
above creates the arc in question, if your units are set to meters. The arc starts at the x-axis and goes counterclockwise, the computed angle is 88.9686017°
If you want to do this in Grasshopper, calculating the arc angle in radians is easy like this:
angle_in_radians = arc_length / arc_radius
Below example in GH which draws the counterclockwise arc centered at the world origin.
Yes, I am trying to learn scripting for IFC classes in Infrastructure. gg seems to cover building classes…that is one of my aims (longer term)
The arc seemed to be the simplest geometry for which I was hoping to get scripting information, about the fields required for an arc, which I got from Clement.
It’s often not possible to exactly mimic Rhino commands as GH components, because Rhino commands have the benefit of being able to infer certain information from the context of the command (where is the cursor located? which view is active? what’s the orientation of the current c-plane?). Grasshopper components do not exist in such a context so they often need to specifically ask for that kind of information. Creating an arc with a specific length will require more than just the end-points and the length, as an infinite number of arcs would meet those criteria. The orientation needs to be defined as well, either as a plane or as a tangent vector. Unfortunately once you do this the inputs are overconstrained. If the end-points do not lie on the plane then the plane cannot be used, etc. etc.
It would definitely be possible to create an arc with a specific length, but it’s difficult to see what sort of inputs would actually be helpful. It may be easier to just create the complete circle, then trim it to a specific length:
Many thanks David, I was looking at it from a very simple approach. If in a 2D plane, if I have the start point and centre of the circle/arc and a length along that curve, I can only move either clockwise or anticlockwise. I can do this easily in Rhino and have been setting the curves manually.
I was looking at from the curve length approach as I couldn’'t get the angle subtended approach to give me the ‘exact’ magical 250m, which i was reverse engineering. Normally the curve or curves if a compound curve would be the unknown and the end points known.
I have used software MX in the distant past that for compound or multiple arcs/curves introduced or removed translational constraints at the intermediate or an end points of segments.If the support was indeterminate there would be no solution.