Set 'Mark' parameter to all elements in all model groups


#1

Wall select

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hi, I recently started to work with Dynamo 0.9 for Revit 2016. I’d like to fill in the mark of all wall elements from a walltype in all groups in the model. (1 visible in the view, 20 groups not) Is this possible not using Python? Just Dynamo…


Mark walls by XY position - Unique sublists
#2

Is this what you’re after?


#3

Hi Martin,

 

No, i’d like to give a wall type an unique code which had to be located in the ‘mark’ parameter.

from your example;

Wall type ‘Generic - 200’ has mark ‘001’ and Wall type ‘Generic - 225 Masonry’ has mark ‘002’.

 

If that works, the wall types are in different model Groups.

I’d like to put the Mark values in all model groups at once.


#4

Hi Leon,

I think your looking for this.


#5

I see, Leon.

Sorry, I misunderstood your initial intend then. I don’t know if that is possible without doing some sort of conditional loop with Python then.


#6

If you want to assign the Mark based on the Wall type, irrespective of the model group it is within, you could try this…


#7

a type of wall gets coded by our subcontractor.

each different type gets an other code.

Wall type A = code 001

Wall type B = code 002 etc etc…

These wall types are used in over 20 different model groups.

Modelgroup A has 6x wall type A

Model group B has 10x wall type A etc etc.

i’d like to set those codes from the subcontractor into the mark parameter of the elements in the different groups.

In schedules in Revit it’s only possible if i make a view and place all model groups, then i can add these values in a schedule, but i’d like to use Dynamo for this.

 

@vikram i can’t replicate your solution. (sorry dummy Dynamo user yet) the ‘code block’ goes wrong.

 

Code Blocks


#8

Hi Leon,

It is not number 1 it is alphabet l. And also change lacing for Setparameter node.

 


#9

OK, i see this works now. Thanks so far!!

 

But 1st;

i’d like to change the workspace, so i can choose like i described before.

Wall type A = code 001

Wall type B = code 002 etc etc…

 

2nd;

Can i run it so Dynamo goes through ALL model groups? Even when they’re not placed in the view?

 


#10

For your 1st question you need to use “List.OffRepeated” node along with “List.Count” lacing to longest connect to “GroupByFunction” for Wall Type A & B.

And for 2nd question yes can run.

If you can’t make it i will provide tomorrow workflow currently i am away from my PC.

Good Luck!


#11

Yes Kulkul please help :slight_smile:


#12

How can i contact Kulkul?


#13

Ok people ,is there anybody who has a solution for me??


#14

Hi Leon,

How can i help you. What is your query?


#15

I hope you can help me with:

  1. Wall types gets coded by our subcontractors.

  2. Each different type gets an other code.

For example

Wall type A = code 001

Wall type B = code 002 etc etc…

  1. These wall types are used in over 20 different model groups.

Modelgroup A has 6x wall type A

Model group B has 10x wall type A etc etc.

  1. i’d like to set the codes from the subcontractor into the mark parameters of the elements in the different groups.

 

In schedules in Revit it’s only possible if i make a view and place all model groups, then i can add these values in a schedule, but i’d like to use Dynamo for this so it’s automatic.


#16

Is this the same file which you send me on the other link?


#17

No another project Kulkul. I can’t share that one, i’ve you want i make a test project file.


#18

No Problem I can manage. Just give me some time.


#19

Thanks Kulkul for your help!!