Hello All!
I have a script that I created and ran several times around mid-March without issues that includes the CogoPointExtensions.GetUserDefinedPropertyValueByName Civil3DToolkit Node. Yesterday when I ran the same script on a drawing made from the same template and using the same data, I get errors on all of the CogoPointExtensions.GetUserDefinedPropertyValueByName nodes saying operation failed and “Object reference not set to an instance of an object.”. Any idea why all of a sudden, all these nodes would fail?
Thanks,
Tracy
Hi @TABlouir,
I don’t know about the issue with the package specifically, but if you’re able to upgrade to Civil 3D 2025 or newer, there is a CogoPoint.UserDefinedProperties
node available out-of-the-box for getting UDPs for COGO points. Here’s an example:
Or in consolidated form using a code block:
Thanks @zachri.jensen for the reply. We will be upgrading to 2026 later this year and I was hoping that similar nodes were added to out of the box, so thanks for confirming. Will have some updating to do and hopefully the out of the box node is more stable.