Hi All,
This is a twister around which i am unable to find any logic.
The Task is i have a polyline and need to convert it to a geometry of small arc’s, compound curves and reverse curves (Minimum Radius 550m say) maintaining the tangency with previous curve. The only limitation is the new line should be in the range of 50mm to 100mm max from the existing polyline.
I am able to do it manually by trial and error and fixing the arc/Compund curves but was trying to find a way to automate this process.
@Vikram_Subbaiah thanks for reply, sorry if was not clear though the process is not related to creating an offset but try to fit in the arcs, compound curves to get a proper geometry from cyan line. I have moved cyan line to just provide clarity on the entity and result i am intending to get in RED. its some what best fit geometry but removing the vertices to get to that point which is not happening as per the ApproximatewithArcandLinesegment node. that being said if i can get offset line also i can get the required line from that i guess.
the code is giving bellow error in AutoCAD might be working fine in Revit (based on Revit API).
The definition converts a series of lines to a series of tangential curves
Try prefixing Arc as suggested in the error
I’ve replaced Arc with Autodesk.DesignScript.Geometry.Arc below. If it doesn’t work you could try Autodesk.AutoCAD.DynamoNodes.Arc
At this location i can see your offset line have 233 points compare to original 151, little confused if the geometry is improved points will be reduced right ?
The definition creates 151 arcs corresponding to the original 151 lines (not sure what the 233 was)
While this definition might not do what you’re looking for, I suppose you’ll need to engage a similar Imperative approach as every subsequent component is dependent on the altered state of previous one.
Yes thats what is happening with that OTT Node too …i am doing it manually at the moment. In civil 3D we hv a option of best fit alignment but its not much useful because of the restrictions in shifting.