TheSwamp

CAD Forums => Vertically Challenged => Land Lubber / Geographically Positioned => Topic started by: CHulse on November 05, 2021, 03:50:03 PM

Title: Convert COGO point label to MLEADERs
Post by: CHulse on November 05, 2021, 03:50:03 PM
Hi,
Does anyone by chance know of a way or tool to convert C3D cogo point labels to MLEADER representations?

Thanks
Title: Re: Convert COGO point label to MLEADERs
Post by: huiz on November 06, 2021, 04:44:56 PM
Dynamo?
Title: Re: Convert COGO point label to MLEADERs
Post by: alanjt on January 26, 2022, 01:22:11 PM
Hi,
Does anyone by chance know of a way or tool to convert C3D cogo point labels to MLEADER representations?

Thanks
To what end?
If you double explode your points, you'll get a node, leader (if point was in dragstate), and mtext label.
I assume you don't care the labels are no longer dynamic to the actual point data?
Title: Re: Convert COGO point label to MLEADERs
Post by: CHulse on February 02, 2022, 09:39:07 AM
I can't take credit for this since all I really did was cobble together code from other folks, but it definitely solved my issue.
I did want to try to maintain the labels to be as usable as possible for the client who is not using C3D, so MLEADER entities seemed to be the best option. And this doesn't destroy the COGOs, so I can just hide them for the client.

It uses this:
https://forums.autodesk.com/t5/civil-3d-customization/how-to-see-if-a-point-label-has-been-moved-to-dragged-state/m-p/9660859/highlight/true#M18406