Hello,
I can not isolate Elements. Either there no ones? or it is a syntex-error regarding DesignScript!
is it looking for a list?
KR
Andreas
Hello,
I can not isolate Elements. Either there no ones? or it is a syntex-error regarding DesignScript!
is it looking for a list?
KR
Andreas
Hi @Draxl_Andreas Which node are you trying to write in Designscript?
The error states: I cannot find a function called “View.IsolateElementsTemporary” in the namespace “Revit.Elements.Views”.
When I look in the Dynamo Library (I am using Revit 2021 and Dynamo 2.6.1, but I don’t see this function either?
Note: you cannot use functions from the Revit API directly in designscript, you’ll need to use a Python node.
Ah you are trying to use a custom node.
From which package is this node?
Archi-lab works
Why can i not call it via design-script?
Clockwork is also running!
You can call custom nodes in design script. But you need to refer to the right node in the right namespace.
For DynaMEP it is the one below
How to find this? There are 2 ways:
First method:
Second method:
Can i not use it as a “one liner” like in a bad action.movie?
RevitModel.Element.IsolateElementsTemporary(Document.ActiveView(Document.Current), elements);
it still does not work
Yes you can do it in one line, but i would never advise this, mainly because the intire line is not visible in one code block
isolatedElement = RevitModel.Element.IsolateElementsTemporary( elementsToIsolate, Document.ActiveView(Document.Current));
For any reason it hidding all? what could be the cause for that?
it is selecting elements but the revit-view is emty?
You now use “Isolate elements temporarely”, so it isolates the elements you provide. If you want to Hide the Elements, you need to use another function.