Joining two operations

Hi all,

I have two scripts that work perfectly on their own:

Script 1. Extracts solids from the structures and pipes of a pipenetwork into the current drawing and adds property set information to it.
Script 2. Saves only these solids to a new drawing.

I have attempted to combined them (.dyn file in link along with .dwg) however there seems to be a duplication of object handles for the structures? As such, when combining the scripts, only one MH (structure) is extracted. Anyone know of a fix?

Hi,
You don’t need to use Flatten before Object.ByGeometry to create the solid structure.
Please see the attached Dynamo file — it’s a valid example with a bit of organization.
GPNtoSolids.dyn (108.8 KB)

Thanks that did the trick. Correct me if I’m wrong but the only change made is the removal of the “list.flatten”? Strange that it would have such an impact on the script running correctly.

Yes, just removing the flatten node :slight_smile: