Hello, everyone!
I’m facing an issue and was wondering if someone could help me. I have a routine in Dynamo whose main function is to convert a mesh into a solid object within Revit, turning it into a family. This routine is already set up and working.
However, I would like to enhance it so that I can add multiple meshes within the same script. Ideally, these meshes would be stored on a server, which in this case would be my PC’s memory. Inside Dynamo, I would select the mesh I want to work with, and the routine would then retrieve this mesh from my PC’s memory and execute the pre-existing script.
Does anyone know how to implement this? Any help would be greatly appreciated!
Rotina.dyn (26.0 KB)
Sounds like mainly a UI issue. I’d look at Bimorph nodes to get yourself some dialog boxes.
Or switch to pyRevit and use those built in dialogs.
I’d recommend Data-Shapes for custom UI when it comes to selecting from a list.
I’d just use a directory path node marked as an input and let the user select the directory in player, then let lacing handle the rest.
If the user wants to process part of the directory they can quickly make such a subdirectory and pack what they want into it.
Just watch out for element bindings.
1 Like
Could you explain to me better how this process you mentioned works?
Your graph takes a file path. Use a directory path instead. Then create a directory from that. Then search the directory for .obj files. Then process all those instead of one by one.