Producing only a single Object Data output for multiple objects

I’m having trouble where I select or collect multiple polylines. Each has unique object data, which I’m wanting to transfer to a Property Set. Works great if I select individually, but when I select multiple, the OD only gets and sets one.

Hmmm looks like only one property value is being passed in. Maybe try using list.count on the polylines and use that to create a list of values that match the number of polylines? And pass that list into the .UpdateProperty node? I think it may expect a string for each object.

If you post a file I’d be happy to help look into it.

I previously had a few other functions occurring with the polylines, and the multiple polylines were carrying thru the code until writing the PS data.

Have at it. Thanks Shaun.

kmz import.dwg (530.2 KB)
GISProperty.dyn (23.2 KB)

Hi @abbailey,

I’ll bet it’s just an issue with the list levels. Some options:

  1. Instead of OdTable.GetOdTables, use OdTable.GetOdTableByName to get a single table instead of a list.
  2. Use List.FirstItem after OdTable.GetOdTables so you only have a single item and not a list.
  3. Change the level for the ‘odTable’ input on OdTable.GetObjectOdRecords to @L1.
1 Like

Yup,

That worked great. My second guess was levels! Here Andrew.
GISProperty–SW Edit.dyn (34.9 KB)

Bloody hell fellas. You are legends. Thanks

1 Like

Reach out anytime Andrew! Nice to see ya!