Hi Kulkul,
how do you get from DirectShape in the link file to MEP Space in host file?
A_MEP.dyn (35.2 KB)
Best regards
Rolf
Hi Kulkul,
how do you get from DirectShape in the link file to MEP Space in host file?
A_MEP.dyn (35.2 KB)
Best regards
Rolf
The rvt file which you send doesn’t have any IFC Link. Have you reviewed the rvt file which i send you?
Let me know how it looks, so that i can share the graph here.
Hi Kulkul,
the returned rvt file is good.
My * .ifc.rvt is the rvt file created after inserting the ifc file.
Here is the whole project:
https://we.tl/t-z9Mz2tU9Ac
The MEP space must be created in the host file AC.rvt.
Best regards
Rolf
Hi Kulkul,
Thanks a lot! The result looks very good!
Today the day comes to an end here (Central Europe), so tomorrow I will deal with the exact solution.
Finally an IFC specialist!
There are still many important Ifc topics, e.g. transfer of models for thermal calculations (importing multi-layer components with thermal properties for material …).
I hope to get more ideas and solutions in the future, but more on that later.
Best regard across the Atlantic(?)
Rolf
Hi Kulkul,
it took some time to edit, but now the script is running!
Even Python for Get Levels from Level Names (my task from Kulkul :-)) is solved:
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
#Preparing input from dynamo to revit
names = IN[0]
#Do some action in a Transaction
levels = []
fec = FilteredElementCollector(doc).OfClass(Level).ToElements()
for l in fec:
for n in names:
if l.Name == n:
levels.Add(l)
OUT = levels
Another question:
Normal vector (Z = -1): Direction of view for surfaces from the room to the outside?
Now I still have to label the rooms, but that’s sure to be easy.
I’ve only been with Dynamo for 4 weeks, so I’m a beginner.
Many thanks for the help.
So it works very well for the rooms in the example.
For rooms with complex geometry:
Room within a room (e.g. elevator in the stairwell) and
L-shaped rooms (center of the base is outside the room contour)
there are still problems:
The new test example:
https://we.tl/t-ZoYPxcbPfv
Best regards
Rolf
If you import the IFC instead of linking it, the rooms should be created by Revit. (File>open IFC)
Hi Einar,
Import creates spaces, but leads to many other problems:
Rooms are not placed correctly, components are not on the axis and all sorts of other disturbing things happen.
I use the architecture model to create a model for thermal calculations.
If the architecture model changes regularly, a linked Ifc file is the better solution.
Best regards
Rolf
Hi Kulkul,
it should look like this:
Is the problem here?
Does the point have to lie within the contour?
BEst regards
Rolf
Hi everyone,
as a point for irregular spaces:
“Polylabel Algorithm” von alban_de_chasteigner
https://t.co/CMNG13s6Ej?amp=1
Best regards
Rolf
Hi Rolf,
I tried running the script with the Python script that You posted. Unfortunately the result is an Empty List. Maybe You could point out what could be the problem?
Best Regards
Priit
Hi Priit,
which script did you use: “A_MEP.dyn”?
It worked for me with Python and Revit 21.
Best regards
Rolf
Hi Priit,
Kulkul’s script was my base:
https://global.discourse-cdn.com/business6/uploads/dynamobim/original/3X/9/f/9f3ebefed60646e26a75924d21aadbffefe242fa.png
Best regards
Rolf
Hi Rolf
I used the script Kulkul posted and used the script You provided in the Python node (as seen on the picture I posted earlier). But the Python node did not work and resulted in an empty list. What could be the problem with the Python script?
Best Regards
Priit
Hi Rolf
Thank You for the script. Unfortunately it doesn’t work for me. Here is a picture of the error message:
Hi Priit,
the ifc file must be a linked model!?
The error begins in Element.GetParameterValueByName or even earlier!
Best regards
Rolf
Hi Rolf
With a linked IFC the result of the Python Script is still an Empty List:
Best Regards
Priit
Hi Priit,
it works for me:
Maybe first test it with a smaller ifc model.
If it doesn’t work, please open a new topic.
Best regards
Rolf
Hi Rolf
Thank You for Your help.
Best Regards
Priit