Scheduling Filled Region Areas with Dynamo

Scheduling Filled Region Areas with Dynamo

Anonymous
Not applicable
3,087 Views
4 Replies
Message 1 of 5

Scheduling Filled Region Areas with Dynamo

Anonymous
Not applicable

Hi Everyone,

 

I am trying to schedule the areas of Filled Regions in a set of overview plans I have using Dynamo. 

 

I found a script on these forums by @David_W_Koch . So far, I have gotten it to work so that the area of each Filled Region will be copied into the new "FilledRegionArea" shared parameter in my project. 

 

The problem is that I have filled regions in some detail groups, and I get an error message when using the script:

 

"Changes to groups are allowed only in group edit mode. Use the Edit Group command to change to all instances of a group type. You may use the "Ungroup" option to proceed with this change by ungrouping the changed group instances."

 

it forces me to ungroup all of my detail groups, which I cannot do.

 

I would like to avoid this by filtering the TYPE of filled regions that Dynamo will change. In other words, I have specific filled regions that I created in order to do this exercise, so I would like to just filter the 'List' in Dynamo so that it exempts all Filled Region types except for those types that I wish, which have a specific name.

 

I hope this makes sense-- it's been a long day and I would be very grateful to any willing to help me out. Thanks a lot! I have uploaded the script.  

 

 

0 Likes
Accepted solutions (1)
3,088 Views
4 Replies
Replies (4)
Message 2 of 5

GlynnisVP
Advocate
Advocate

Would it be an option to make your shared parameter a text string instead of an area? You might need to round the value before copying the result, but if it's a text string then it would be allowed to vary within a group and then you wouldn't need to filter. 

https://www.ideateinc.com/blog/2013/04/revit-2014-feature-review-allow

0 Likes
Message 3 of 5

RDAOU
Mentor
Mentor
Accepted solution

@Anonymous 

 

The parameter value being set by dynamo does not need to be an Element parameter .  Use a project parameter instead and make sure to set it to “Values can vary by group instance” this should fix the issue...Dynamo should then be able to set the parameter without ungrouping

 

 

 

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


0 Likes
Message 4 of 5

Anonymous
Not applicable

It worked! I just did a project parameter and checked 'Values can vary by group instance' and the script works without ungrouping detail groups.

 

Thanks so much @RDAOU 

Message 5 of 5

rhl96APN
Observer
Observer

Sorry to open this again. But got the same problem and dont understand what i have to do. Im kinda new to dynamo.

Could you sent a pic of your scipt so i could see it ? 

0 Likes