BIM World
A Professional BIM Learning Platform


Dynamo: How to Randomly Generate Fill Styles

Recently, I encountered a challenge while working with Dynamo. I needed to randomly select some fill styles for style replacement. To do this, I used the built-in All Elements of Type node to get all the fill styles in the project. However, the problem was that the results included both drafting fill styles and model fill styles, while I only needed the drafting fill patterns.

After searching through the built-in nodes, I found no direct way to filter these elements by extracting parameters. I also preferred not to write Python scripts. After carefully reviewing the available nodes, I discovered the FillPatternElementGetByName node. This node allows you to obtain fill styles by name, and importantly, it lets you specify the fill pattern type.

By combining this node with List.Clean, I was able to successfully retrieve only the drafting fill styles. The process of selecting random values from the filtered list was then straightforward.

Dynamo_ Randomly Obtain Fill Styles

Dynamo_ Randomly Obtain Fill Styles

xuebim
Follow the latest BIM developments in the architecture industry, explore innovative building technologies, and discover cutting-edge industry insights.
← Scan with WeChat
Like(0) 打赏
BIM WORLD » Dynamo: How to Randomly Generate Fill Styles

Comment Get first!

Must log in before commenting!

 

BIM World, A Professional BIM Learning Platform

Stay updated on the latest architecture trends and share new building technologies.

Contact UsAbout Us

觉得文章有用就打赏一下小编吧

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

Account Login

By signing in, you agree toUser Agreement

Sign Up