Old doors have their size driven by type parameters. This means there has to be a separate door type for every door of a different size.
As each door is scheduled there is no need for sizes to be type driven.
This page describes how to convert an old ANT library door from Type based sizes to Instance based.
At the bottom of the page there are screen shots of relevant door parameters. There are also PDF versions attached to this page for printing out.
METHOD
Open old door family file.
Add parameters as Instance (in order):
Leaf Width (Dimensions)
Leaf 2nd Width (Dimensions) -if double door
Leaf Height (Dimensions)
Place formulas against parameters:
Leaf Width:
Width/1
Leaf 2nd Width (if double door):
A_Leaf 2nd Width.DO/1
Leaf Height:
Height/1
Open a new Revit project.
Draw a wall.
Load the door family in to it, and place in a wall.
Go back to door family file.
Close it without saving.
Go back to Project file.
Select door and Edit Family (door family file will open).
Save As this family in Door folder - add .i suffix.
e.g. "DO_Hinge-DBL Flush.i-ANT.rfa"
Add shared parameter as Instance under Dimensions group:
A_Leaf is Standard Size.DO (Dimensions)
Add length parameters under Other group:
WidthModule (Other)
HeightModule (Other)
Width2ndModule (Other) -if double door
If a double door add Yes/No parameter under Dimension group:
Leafs are Equal (Dimensions)
Go to a plan view.
Draw 4 temporary lines, add dimensions between them and apply following parameters:
Width
Height
Rough Height
Select following dimensions and tick Instance in green options bar:
Rough Width
Rough Height
In Properties change following parameters (in order) to Instance:
ShowClearanceLines (Other) -if this parameter has a formula against it.
A_Opening Clear Width.DO (Dimensions)
A_Opening width.DO (Dimensions)
FrameTop (Other)
OpeningWidth (Other)
A_Leaf Width.DO (Other)
A_Leaf Height.DO (Other)
A_Opening Height.DO (Dimensions)
A_Leaf 2nd Width.DO (Dimensions)
Go back to plan view.
Change following parameters to Instance via tick box in green options bar:
Width
Height
Delete lines and dimensions just drawn.
In Properties delete formulas against:
Leaf Width
Leaf Height
Leaf 2nd Width
Add following FORMULAS (in order):
- Hint: Copy and paste formulas
WidthModule:
if((Leaf Width-(rounddown((Leaf Width-1)/100)*100)) > 40,70,20)
Width2ndModule:
if((Leaf 2nd Width-(rounddown((Leaf 2nd Width-1)/100)*100))>40,70,20)
HeightModule:
(round(roundup(roundup(Leaf Height/100))/3)*3)
Width:
(if(A_Leaf is Standard Size.DO, rounddown((Leaf Width-1)/100)*100+WidthModule, Leaf Width))*1
A_Leaf 2nd Width.DO:
if(Leafs are Equal, Width, (if(A_Leaf is Standard Size.DO, rounddown((Leaf 2nd Width-1)/100)*100+Width2ndModule, Leaf 2nd Width))*1)
Height:
(if(A_Leaf is Standard Size.DO,(HeightModule*100)-60, Leaf Height))*1
In Properties rename one of the Types to "Standard".
Delete other types.
Save new Door Family.
Load in to a Project file and test.
Done!
OLD DOOR PARAMETERS
Parameters in old doors where size is driven by type parameters.
UPGRADE DOOR PARAMETERS
New parameters with temporary formulas.
NEW DOOR PARAMETERS
New parameters and formulas in red boxes.
Parameters changed from Type to Instance underlined in red.
NEW DOOR PARAMETERS -DOUBLE DOORS
Double doors have extra parameters.
New parameters and formulas in red boxes.
Parameters changed from Type to Instance underlined in red.