The DefinitionFile object represents a shared parameter file. The definition file is a common text file. Do not edit the definition file directly; instead, edit it using the UI or the API.
The shared parameter definition file is a text file (.txt) with two blocks: GROUP and PARAM.
Code Region 22-1: Parameter definition file example |
# This is a Revit shared parameter file. # Do not edit manually. *GROUP ID NAME GROUP 1 MyGroup GROUP 2 AnotherGroup *PARAM GUID NAME DATATYPE DATACATEGORY GROUP VISIBLE PARAM 4b217a6d-87d0-4e64-9bbc-42b69d37dda6 MyParam TEXT 1 1 PARAM 34b5cb95-a526-4406-806d-dae3e8c66fa9 Price INTEGER 2 1 PARAM 05569bb2-9488-4be4-ae21-b065f93f7dd6 areaTags FAMILYTYPE -2005020 1 1 |
Figure 130: Edit Shared Parameters (Group and Parameter)
Code Region 22-2: Shared Parameter FAMILYTYPE example |
FAMILYTYPE -2005020 |
Figure 131: New parameter definition
0 = invisible
1 = visible
As the definition file sample shows, there are two groups: