Help with Image-Based Wall Perforation in Revit Using Dynamo

Hi all,
I am trying to play around with using an image to perforate a Revit wall in the model again I thought I had figured it out, but I’m still running into an issue where I can’t get the circles to scale down properly.

The Revit model is in feet, and ideally, I’d like the perforations to be around 2 inches in diameter. However, the script keeps generating them at a much larger scale.

Would anyone be willing to take a look at the script I’ve attached and let me know what I might be doing wrong? I’m still fairly new to Dynamo, so any guidance would be greatly appreciated.

Thanks in advance!

perforated panel test.dyn (49.4 KB)

my guess is there’s something wrong with the output of Math.RemapRange. but cant really tell without ur image input.

1 Like

Hi, Thank you, Ive attatched the image

You’re just not converting from feet to inches. You’re mapping the new range to 1-1.75 feet instead of inches. Just divide those values by 12 and the perforations will be scaled correctly and you’ll be able to see the image pattern.

A denser grid might help as well:

3 Likes

Oh cool I did not know you can divide in this! Thank you thats awesome! What did you use for the grid size in the second image?

I just used half the spacing (250 instead of 500).

1 Like

thank you so much!