tag:blogger.com,1999:blog-993393844516183990.post1984975150829483386..comments2024-03-24T13:53:19.219-07:00Comments on Drive AutoCAD with Code: Splitting Polyline/Curve With AutoCAD Civil 3D Labels AssociatedNorman Yuanhttp://www.blogger.com/profile/09350392399498834066noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-993393844516183990.post-4814806476545924172021-01-04T08:18:43.431-08:002021-01-04T08:18:43.431-08:00Kevin,
I do not have the code you asked. I suggest...Kevin,<br />I do not have the code you asked. I suggest you post your question to Autodesk's dedicated user forum here:<br /><br />https://forums.autodesk.com/t5/civil-3d-customization/bd-p/190<br /><br />Make sure you describe your situation as detailed as possible, show the basic code you have already worked out (such as, the code how to get to the said alignment/corridor/section...), and if possible, attach a simplified drawing. This way a potential responder would be able to reply more targeted.Norman Yuanhttps://www.blogger.com/profile/09350392399498834066noreply@blogger.comtag:blogger.com,1999:blog-993393844516183990.post-36026622920704916912021-01-04T06:18:18.792-08:002021-01-04T06:18:18.792-08:00I'm a civil engineer too. But I am new to Auto...I'm a civil engineer too. But I am new to AutoCAD .Net API.<br />May I ask you, do you have any .Net source code that fetches geometry of the certain code name of LINKs inside CorridorSection in every SectionView.<br />I need that geometry info to turn to Plines and process the later analysis.Kevinnoreply@blogger.comtag:blogger.com,1999:blog-993393844516183990.post-89248868071051321602021-01-04T06:16:38.162-08:002021-01-04T06:16:38.162-08:00This comment has been removed by the author.Unknownhttps://www.blogger.com/profile/06020117516591514057noreply@blogger.comtag:blogger.com,1999:blog-993393844516183990.post-25878040860399128202020-11-06T11:58:45.141-08:002020-11-06T11:58:45.141-08:00Norman,
When this command is run on a closed polyl...Norman,<br />When this command is run on a closed polyline, the code fails when the IsOnCurve method tries to calculate the ration. The distance returned from curve.GetDistAtPoint(curve.EndPoint) is 0. Is there a different method to calculate the distance when dealing with a closed curve?<br /><br />Thank you,<br />StacyStacynoreply@blogger.com