Sequence of operation - Dynamo

Hi,

I want to execute the files one by one which are available in the directory, but how can I do it? I have just started using dynamo…

@Nick_Boyts could you please check and comment here

Assuming that SAT import node will import the SAT into the file as a family, direct shape, or import instance, you can just wire the list of files directly into the node. No need for a passthrough, as Dynamo’s lacing will handle the loop for you directly.

1 Like

What Jacob said, plus you have a circular reference with Passthrough and SATImport so that’s definitely not gonna work. The issue with the import itself is probably due to the import node having an invalid input name. You’ll have to modify the node and change it.

1 Like

Hi @jacob.small and @Nick_Boyts, I removed the passthrough and changed the lacing type of nodes to “Shortest” but still all the instances are getting loaded into a single file. And the files are getting duplicated with the name that is available in the watch node. Kindly guide me how to proceed further.


Hi @Ramyaa …i would try with a way with Birdtool, think it could help you here

  • first copy a family template with the same name as your sat…
  • make a graph there import these sat into your family…

Not sure but hope it make sense :wink: but thats the workflow i use for cad to revitfamily

Here is an exemple for cad but could work on sat as well i guess…

first copy to a family template so we have the same name…

then open birdtool and add this one here (my exemple is cad)…and your new empty families as well…

and just run

Hi @sovitek, Thanks for your comments… 'm using Revit 2021 Birdtool package is not available, I checked with Sparrow but couldn’t find a node which can help me…

Hi its an app…multiplayer is called…Bird Tools | Dynamo Multiplayer

I haven’t worked with these nodes before so I may be off here (and this may be your actual question to begin with), but it looks like you don’t actually specify where the geometry is imported to, you only save the current document as a new one. ImportInstances.ByGeometries is just creating new instances in your active document and then duplicating them with SaveAs. You would have to specify a document for the new instances to keep them separate or use python to force the import to be saved out and then removed before looping to the next geometry.

You may also be able to do this with a custom node if you can isolate the process - import geometry, save as, delete geometry. Then you can use lacing or list levels to have Dynamo execute the custom node for each geometry one by one.

EDIT: It looks like you’re on an older version of Dynamo so I don’t know what you have available, but one of the ExportToSAT nodes would be a better fit as you don’t actually want to import them and then save.

1 Like

Hi @Nick_Boyts, I was trying different Lacing options but couldn’t do, can you identify what mistake I made. I used Lacing Longest on Document saveas but still it is importing all the instances in a single document and duplicate files are created with the filenames that I have created

Again, you’re using the wrong nodes / process for this to do what you’re wanting. Lacing isn’t going to help because you’re importing geometry into your active project and then saving as a new file. If you can isolate this process for a single geometry (and remove that geometry after saving) then you may be able to wrap that in a custom node and loop multiple geometries through one by one.

Otherwise you need to look for nodes that will allow you to specify a document for creating/importing geometries so that you have a separate file for each.