PDA

View Full Version : Assigning All Parameters to Families Quickly



mark.mcmullan
2009-04-07, 09:12 AM
Hi there,

Is there a quick way to add all parameters from a shared parameters txt file to a family, rather than tediously one-by-one? I want to set up default family templates for different types of mechanical equipment, and am working on the shared parameters files for each type. Thanks.

RevitNinja
2009-04-07, 01:53 PM
Not that I know of......but it would be nice!

aggockel50321
2009-04-07, 03:02 PM
I feel your pain...

Try this:

Open a family template, add the basic parameters & reference planes you want, then save it to a unique name, and then use that as your new family template family. You'll find it's faster to delete unwanted parameters if you end up with some...

the_cad_monkey
2009-04-07, 05:52 PM
I agree andrewg. I make a mock model of the different types i use,(wall, ceiling, etc.) and go from there.

mark.mcmullan
2009-04-08, 10:20 AM
Thanks for the replies. I intend to have the different templates for the different family types at the end, but was wondering if i could fast-forward the process somewhat. Whilst on the topic of add parameters to families, is there a way to create a custom grouping? I'd prefer to have all these parameters under a more enlightening heading than "other". I don't want to place them under mechanical-airflow, mechanical-loads etc, in this circumstance it would make more sense to have a custom heading...

truevis
2009-04-08, 12:31 PM
...Is there a quick way to add all parameters from a shared parameters txt file to a family, rather than tediously one-by-one? ...
If you have to add shared parameters to already-existing RFAs, one way to automate it is with AutoHotKey.

Here is part if a script I have used. It takes information from one list (in SharePoint) which has the new parameter value and the URL of the RFA, and adds it to the RFA.

(You'd have to customize it to use it, obviously.)

#IfWinActive, List
F9:: ; hotkey for GET INFO FROM List AND PASTE IN REVIT
clipboard =
Send, {CTRLDOWN}c{CTRLUP}
ClipWait
short = %clipboard%
Send, {tab}{CTRLDOWN}c{CTRLUP}
ClipWait
Send, {LWINDOWN}r{LWINUP}
WinWait, Run, Type the name of a p
IfWinNotActive, Run, Type the name of a p, WinActivate, Run, Type the name of a p
WinWaitActive, Run, Type the name of a p
Send, {CTRLDOWN}v{CTRLUP}{ENTER}
Sleep 300
WinWaitActive, Revit
WinActivate, Revit
Send, {ALTDOWN}s{ALTUP}yy{ENTER}
WinWait, Family Types, Family Types
IfWinNotActive, Family Types, Family Types, WinActivate, Family Types, Family Types
WinWaitActive, Family Types, Family Types
Send, {ALTDOWN}d{ALTUP}
WinWait, Parameter Properties, (Cannot appear in sc
IfWinNotActive, Parameter Properties, (Cannot appear in sc, WinActivate, Parameter Properties, (Cannot appear in sc
WinWaitActive, Parameter Properties, (Cannot appear in sc
Send, {ALTDOWN}s{ALTUP}{ENTER}{TAB}{ENTER}
WinWait, Shared Parameters, Choose a parameter g
IfWinNotActive, Shared Parameters, Choose a parameter g, WinActivate, Shared Parameters, Choose a parameter g
WinWaitActive, Shared Parameters, Choose a parameter g
Send, {TAB}h{TAB 5}h{ENTER}
WinWait, Parameter Properties, (Cannot appear in sc
IfWinNotActive, Parameter Properties, (Cannot appear in sc, WinActivate, Parameter Properties, (Cannot appear in sc
WinWaitActive, Parameter Properties, (Cannot appear in sc
Send, {TAB}i{ENTER}
WinWait, Family Types, Family Types
IfWinNotActive, Family Types, Family Types, WinActivate, Family Types, Family Types
WinWaitActive, Family Types, Family Types
Send, {F2}%short%{TAB}
Sleep, 1000
Send, {ENTER}
return