This functionality has been requested a few times on Dynamo blog, so I thought I will make it official and share it here for everyone. This adds a few nodes to Archi-lab package that will allow you to import an image or simply reload it from a given path. Here are the steps and code for reference:
- Let’s get a View that we will be importing our image into:
I am using a Get All Views node here that comes from Archi-lab_Grimshaw package.
- Next step is to create import options for our view. Import options allow us to control things like a placement point and image resolution:
Box Placement Types node can also be found in Archi-lab_Grimshaw. It’s just a simple dropdown that allows you to position the image in relation to reference point. Here’s code for Image Import Options node:
- Next up we just need to put all these together like so:
Keep in mind that if we re-run the definition it will keep placing images in the specified location. If your intention is to reload it, you can do this: This node checks if a given image exists in the model and reloads it. Here’s code for both of the nodes:
This is it! Pretty quick and easy way to manage our imported images.
My company insist on using Word to create general notes. They have indention subscripts and superscripts which Revit can’t reproduce and they are constantly being updated, therefore, we make images and link them. This Dynamo definition is very cool. I’ve downloaded and wired it up and got it to work.
Thank you for posting this.
You are welcome!
Konrad, I was wondering if these nodes are still part of the archi-lab.net package. I cannot find them in the current version 2016.13.4
I managed to recreate them from the source code but I have trouble getting them to work… no Image is places but I do not have any errors either :-(
I am guessing you speak Polish. Please correct me if I am wrong. Mozesz mi powiedziec dlaczego zdecydowales sie uzyc archi-lab jako swojego maila?
please see attached graph
I added the missing IN; code block… still not working. Maybe a Revit2016/2018 issue?
Konrad, even though my name suggests otherwise…nie mówię dobrze po polsku.
only the numbers and some basic words. Could you repeat in english please?
I used google translator… and gladly explain: I always use emails specific for the service I communicate with. This way I can easily block the ones which repeatedly come back with undesired content.
Hi, I am using your script and it doesn’t import anything and gives following error..Any help would be appreciated. Love your Work!
Which version of Revit are you using this with? ImageImportOptions only worked with Revit up to 2022. Anything newer than that, and it won’t work.