I am trying to export an IFC from a file i opened in the background.
Situation i created:
Hey,
I am trying to export an IFC from a file I opened in the background.
Situation I created:
I opened Model A in Revit.
With dynamo i opened Model B in the background so i can export an IFC.
When i run the dynamo is still get an export of Model A instead of B
There are been somes changes in the Rhythm package lately. The Export IFC in Document node expects a Revit.DB.Document and not a Dynamo Revit.Application.Document.
Use the new Rhythm Documents.DynamoDocumentToDbDocument node to perform the required “conversion”.
Now that this is workin I tried it for multiple models at once.
I feed the node 3 models with the 3 views and the 3 names.
It creates 3 IFC models so that works. But the problem is that all 3 models are the same first model.
Sorry for all the questions but I broke apart your node to customize some of the export the settings.
All of that works great but how do i turn on longest lacing of someting simular for a Python node?
We would have to see how you have edited the Python to help with editing the code.
That said it’s likely easiest for you to generate a new custom node which would allow you to utilize lacing and list levels as you would any other Dynamo node, rather than fighting the loops on the edited code.
I have since moved away from using dynamo and started coding everything in python using PyRevit. I can send the file tomorrow. I am not sure if it will still work tho
Here is the dynamo script.
I have not used it in some time.
Ive given some small instructions in the script of things to edit to make it work for you.
This specific script exports a predefined 3D view of the current open model.
There is some frozen code that can be used to export another file i think.
Make sure to edit the File path in the custom node to your Propertyset.txt
Thank you very much, unfortunately I can’t use pyrevit.
SentinelOne sees it as a virus and I can’t whitelist it (I have a company computer) so I fell back on dynamo