Hello commu
I am turning to you today because I am facing a problem and I would like to be able to get out of it
So here in my case I would like to be able to put the number that is in the identification note directly in the material (see image 1). So to achieve this I first created 6 new âlayerâ parameters and then I made a dynamo that allows to extract each identification note in a different layer (see image 2&3) but the problem is that the layers are exported not by layer order but by material type so it distorts everything⌠This is classified by the green number present on the image of the node (image 4)
So can we:
-can we extract the layers in the right order? (Script?)
-Is there a solution with dynamo to group the different layers in a new parameter?
Or a new solution? ahah
Thanks in advance and have a nice day,
Julien.
Canât read your graph screenshot.
Can you zoom in so the nodes are visible and use the export canvas as image function (upper right corner of the window) and/or post the graph itself?
Let me know if itâs good for you
If not Iâll send you the script :=)
Home.dyn (67.6 KB)
@jacob.small maybe i will be more easy
Looks like an issue with list lacing on the set parameter value by name nodes, as you are feeding a two dimensional list (@L2) of elements with a 3 dimensional list of values (@L3), all before we even get to the data management bit.
Generally itâs best to keep to one of those from both a simplicity but also a speed of processing standpoint.
I donât have a Revit model with such parameters in it, but Iâll try and out something together on the lunch break later.
Before I do so, how would you deal with a wall with 7 layers? What about 20 layers?
Ok - Iâve pulled something together for you to look over.
The general workflow triggers several of on my âthis is going to end badlyâ flags, so proceed with caution. In particular:
- Takes parametric data (the wall layers) and makes a non-parametric representation so future changes to the type wonât reflect in the instance until you run the graph again.
- Pulls partial data (parameter value) from a container (material) and stores it elsewhere.
- Attempts to track type data (wall assembly is stored in the wall type) on an instance (walls placed in the model)
That said, itâs a good learning exercise for: lacing, list levels, dictionaries, and filters.
So without further comment, here you are:
As far as this question goes⌠Dynamo doesnât - the Revit does. Dynamo is a conduit to Revit, so the data is dealt with the same way that Revit does. So the question becomes how does Revit deal with layer classification, and the answer is the CompoundLayerStructure, which is a property of the system family type, which is a property of the wall instances youâre working with. This is similar to the Revit UI in that to get this data for a selected wall you first have to get the wall type from the wall, then the compound structure of the wall type.
Hello,
thanks for this script it works great
Just a little problem is that Iâm on the 2022 version of revit and in this version of Dynamo the IF node is different and doesnât offer the possibility to choose the levels⌠Any idea for an alternative?
Thought you would be able to skip the lacing⌠try to use this in a code block.
test? valueIfTrue : valueIfFalse;
It doesnât work I donât know how to
fetch the right lists
Can you post your graph? Iâll try a 2022 version once I get it.
For you
Thanks again
Home 2022.dyn (50.8 KB)
Hello jacobs
I canât find a solution even with a colleague we turned our heads ahah
Hello,
I got back into it after a break and I found my mistakes but in the end I canât understand why I only have 9 walls⌠Any ideas?
Iâll update the script for you
Home 2022.dyn (50.8 KB)
Today was quite busy and just got lunch an hour ago (5pm local time) so just now looking into this.
Can you post a screenshot with all previews expanded, or a sample Revit model which youâre running the graph on?
Hello jacobs
Donât worry Iâll keep you posted on my progress
I put you a screen shot of the idea of the project and a selection of wall and parameters that I created for the occasion.
Was this what you wanted?
Do you want the script or do you already have it?
Hello
I dove into it this morning and by doing "the longest lace on the last node it works better but what does not work is that on Dynamo I have the right order but in Revit notâŚ
Check your list levels the >
icons on the Element.SetParameterValueByName node (and perhaps elsewhere).
Niiiice your are a killer Really thanks you.
Here I wanted to do the same thing for the roofs but it blocks me here while on 2023 it worksâŚ
Youâll have to open up the custom node, copy over the Python, and debug the issue there. It may be that you need two different graphs; one for 2023 and up and one for older releases.