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.
Hi @zachri.jensen is there a way to set values for the UDP cogopoints? I tried to do it with Dict.SetValueatKey, the new value was displayed in Dynamo, but not in C3D. I also tried using a Python script (still a beginner), but I got the following message in C3D: Operation failed due the current state of the object.
Hi @albert.chermenika,
No, there are no nodes for modifying UDP data. I would recommend using property sets if your workflow supports it, or you could try another package.