Inaccessible Object Data

Hi All,

Using C3D 2025 with Dynamo. Has anyone been able to locate the properties that come over with a shape file or a map feature after selecting that object? It seems this data is unreachable when I extract the dictionary values. See screenshot of the properties that I am attempting to access through MAPIMPORT. I am also unsuccessful getting this data from a MapFeature Feature Properties or Data Table

Thank you in advance!

Here is the Map Feature properties I am attempting to extract

@bfred
Can you attached example drawing

Hi @bfred ,

I know that the Civil3DToolkit Package has some nodes to extract ObjectData (OD) information.

ODTable.GetOdTables
OdTable.GetObjectOdRecords
OdRecord.Values
to name a few

Is the data coming from shape file?
For shape file I found that the easiest way is to get the data out of the shape file using python outside of dynamo using geopandas. With a few lines of code JSON can be generated with the attribute and geometry data. Then process the JSON with Dynamo. (create geometry, add data, etc.)
The Civil3D Toolkit won’t work properly with the latest versions of civil3D
The Civil Nodes package have some Map3D nodes, but I don’t know if that helps.

1 Like

The Civil Nodes can read Object Data but not the Feature Properties.

if you have shape file here is an example for processing shp to geojson.

import geopandas as gpd
import pandas as pd
path= ....                       #path of shp
df = gpd.read_file(f"{path}/test.shp")
#jsonfile = df.to_json()
jsonfile = df.to_file(f"{path}/test.geojson", driver='GeoJSON')
df

you don’t even need to install any python console, you can do this in google colaboratory if you upload files to drive. it returns the JSON data and creates the JSON file.

1 Like