Currently, I am trying to create a dynamo script which takes values from pipe networks (start invert, end invert, pipe inner diameter, etc.) and assigns them to a corresponding polyline which contains this information as object data (start invert would be assigned to UPELEV, end invert would be assigned to DOWNELEV, pipe inner diameter would be assigned to DIAMETER, etc.). XData names are shown below for reference.
I was attempting to follow this tutorial from Autodesk here since this is similar to what I’m trying to accomplish: https://www.autodesk.com/support/technical/article/caas/tsarticles/ts/1QKn0HI7EBBMGCLqMpbdq1.html
However, it seems that this tutorial is outdated, and there are no longer any OdField and OdTable nodes that I can find (I’m using Civil 3D 2025). Does anyone know if there is a replacement for these nodes available?
For anyone who finds this in the future, there’s a thread here that goes over how to use The Civil Nodes to modify XData
It appears that it can be used to modify XData on an object by object basis, but it doesn’t appear to have functionality for using the OdTables (there’s an existing Object Data Table in the drawing)
Thanks for the response. I’m not very familiar with The Civil Nodes package. I haven’t used it before, but I’ll experiment with it when I get some time. Are there any nodes that can query the existing Object Data Tables in the drawing? I only see the CreateXDataRecord & GetXDataRecord nodes in the package.
I need to match the existing Object Data variable names in the existing Object Data Table and assign the proper values to them after the object data is attached to the new polyline. I’m trying to avoid having to hard-code in all of the variable names.
I was able to figure out the solution using the ObjectDataTable.GetObjectDataTableByName and the ObjectDataRecord.SetObjectDataRecodValueByFieldName nodes contained in The Civil Nodes package. See a basic example below. Thanks for the help Zachri and Anton!