image management with Dynamo

image by archi-lab

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:

Untitled-1

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:

Untitled-2

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:

 

  Untitled-3 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: Untitled-4 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.

10 Comments

  1. Danny Bentley says:

    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.

  2. Janek says:

    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
    Thank you

    • Janek says:

      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 :-(

    • Janek,

      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?

  3. Janek says:

    please see attached graph

  4. Janek says:

    Me again…
    I added the missing IN[0]; code block… still not working. Maybe a Revit2016/2018 issue?

  5. Janek says:

    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?

  6. Janek says:

    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.

Leave a Comment