Showing posts with label Nested Familes. Show all posts
Showing posts with label Nested Familes. Show all posts

Friday, December 12, 2008

Change Image in Revit Title Block

There's been some discussion on AUGI on tying a Parameter to an Image so things like stamps can be changed in the title block.  This can be done, except that you have to insert an image into a family...generic annotation family is a nice one to use.

I would like to give credit to Aaron Bergmann for pointing out this can be done in this AUGI post.  Thanks Aaron!!

Here's the steps you'll need to use to make this happen...

  • Start a new Family and use the Generic Annotation.rte
  • Insert an image into the Generic Annotation family.
  • Go to Settings->Family Category and Parameters.
  • Check the box for Shared in the bottom pane.

image

  • Save it with an appropriate name and load it into your Title Block family.
  • Use the Symbol Tool to insert the new Image Family. 
    • !!NOTE!! You may not see the image when you initially bring it in.  Place it near where you want it, then move or align it.  There should be a dot for the insertion point of the family when you go to move or align.

image

  • With the image family selected, go to Element Properties.

image

  • When in Element Properties, select the gray box for Visible.  Add a new parameter to control the Visibility of the image family.  Give the parameter name something similar to the image you want to control.  Don't call them Image 1, Image 2, etc.  I also made mine Type based so I can change the visibility across the board instead of each individual title block.
  • If you have multiple images that you would like to turn on/off, repeat the same process for each image family.
  • Once the image families have been set with a Visibility Parameter, go to Family Types.  Uncheck what you do not want to see and check what you want to have on by default.  If you want a blank space, leave them all unchecked.
    • !!NOTE!!  The images will not change visibility in the Family Editor.  Testing whether or not you've attached the correct parameter to the correct family will have to be done in a project.
  • Save the Title Block family and Load it into your project.
  • Once the title block family is loaded in the project, all you have to do is select one of the title blocks and go to Element Properties.  Go to Edit/New to access the Type Parameters and check and uncheck away.

image

Extra little tip...controlling the size of the image.  Since the image has to be adjusted in the generic annotation family, measure the distances (area) in the title block that you want the image to fit into.  You can then either re-create this area in the annotation family or, copy-clip and paste the lines that make up the area for the image into the annotation family.  Just remember to remove the lines when you're done sizing the image. :)

And...if you want to use formulas to help aid in not having more than one image on at a time, here's something I did for this example.  If you have two checks in the top parameters, no logo will be displayed.  The lower parameters (under Other) are the actual Parameters tied to the Families.  The Parameters under Graphics are ones I created in the Family Types to drive the others.

image

Thursday, November 15, 2007

Nested Familes and File Size Test

A few weeks ago, a colleague of mine (David Lidbury) and I were having a discussion regarding nested families and their effect of the size of a project. We both had initially heard that nesting families wasn’t the best thing to do as it increased the file size, but neither one of us actually have run across that problem. We both have utilized nested families with customers and didn’t have any trouble. So, David did some testing to see what would happen to a file’s size if he built a door that was made of nested components versus a door that wasn’t. The results were a little surprising….

The set up

240kb Door without nested parts
HM door frame with the same parameters as listed below but with all the needed parts (Panel, Plan & Elevation swing) in the same family file.

316kb Door with nested parts
HM door frame with parameters to allow for full flexibility (Separate Fame Head and Jam parameters, etc.). This file is the base for the full family file. Nested families included; Door Panel, 2D Plan swing, Elevation plan swing

Conclusion #1 – The family size with nested parts is 76kb larger


Test - 1
I created a 22,000sf building then saved it as two separate files. I then added 36 doors of each type in there respective files.

1,208kb 36 doors without nested parts
1,308kb 36 doors with nested parts

Conclusion #2 – The file size with nested parts is 100kb larger


Test – 2
I added 99 additional levels and copied the first level up 99 times. This resulted in a door count of 3,564.

14,972kb 3,564 doors without nested parts
14,884kb 3,564 doors with nested parts

Conclusion #3 – The file size with nested parts is 88kb Smaller. This is obviously a surprise (and I did double check which file was which). The file size actually gets smaller as more nested families are added.


Of course this was a very simple project with mainly walls and doors. But, even with taking the project further and adding all the other components a building would have, the family built from nested components really doesn’t have an effect on the file size.