Announcements

Announcement: We’re aware of an issue affecting starting a new topic from category pages and creating new blog posts. New topics can still be started directly from the relevant board. Learn more here.

Resizing automatically an image into a Revit family

Resizing automatically an image into a Revit family

Anonymous
Not applicable
2,846 Views
8 Replies
Message 1 of 9

Resizing automatically an image into a Revit family

Anonymous
Not applicable

Hello everybody,

I would like to create a Revit family (Generic annotation family for example) and get an image. But when i get the image into the family i would like to automatically resize it. For example give a maximum height or a maximum width to it, with a shared parameter and a linear dimension for example...

After several tries and research, i didn't find a way to do this.

Does anyone have an idea or a solution?

Does anyone create this before?

 

Sincerely,

 

Romain,

 

HVAC Engineer and BIM Coordinator

0 Likes
2,847 Views
8 Replies
Replies (8)
Message 2 of 9

L.Maas
Mentor
Mentor

If you have loaded an image into your family and you select that image then you can see it has a width and a height. You can set a parameter for these in your family allowing you to change height and/or width.

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

0 Likes
Message 3 of 9

Anonymous
Not applicable

Yes Louis, I agree, but I would like to give a maximum width or height, because the available space into the title block will be always the same. So to avoid to resize manually each image of each different projects I would like that the Revit family resize the image automatically with maybe a shared parameter and a linear dimension

0 Likes
Message 4 of 9

mbhame
Enthusiast
Enthusiast

 Was any resolution found to this question? I think we are experiencing a similar situation. 

 

TY

0 Likes
Message 5 of 9

Anonymous
Not applicable

Unfortunatelly I never found how to do this... Did you get what you wanted to do?

0 Likes
Message 6 of 9

martijn_pater
Advisor
Advisor

So, you want to apply dimensions to the nested annotation family image based on a value(range) from a main family parameter?

I think you could probably just use an IF formula like IF(imageheight>(insert maximum titleblock height), (insert maximum titleblock height), imageheight) and then return a imageheight_calculated parameter ? Not sure what you're after...

(Also you might want to nest the image annotation family twice for position control.)

0 Likes
Message 7 of 9

Anonymous
Not applicable

yes that's exactly what I'm looking for. I'm going to try your solution. I was thinking also about aligning edges of the image to the borders of a square/rectangle (design with 4 lines), block edges with lines, and put cotations (lenght and width) but I don't know if it's possible

thank you

0 Likes
Message 8 of 9

ToanDN
Consultant
Consultant
I don't understand the struggle of just typing a single value to change the image dimension. Instead, you want to go through the hoop of creating parameters, a formula to control a parameter based on other parameters, then assign the controlled parameter to the image?
0 Likes
Message 9 of 9

martijn_pater
Advisor
Advisor

Well, I figured the question was to automatically have an image display in a certain way in some title blocks or something. But you are right ofcourse, you could just add some type parameters for the image dimensions and have it adjust to that.

0 Likes