C# Class Revit.SDK.Samples.MultiplanarRebar.CS.SharedParameterUtil

This is an utility class used to create shared parameter in Revit Document. It simplifies the process of shared parameters creation.
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode Description
GetOrCreateDef ( string name, Document revitDoc ) : ElementId

Get existed or create a new shared parameters with the given name and Revit DB Document.

GetOrCreateDef ( string name, Application revitApp ) : ExternalDefinition

Get existed or create a new shared parameters with the given name and Revit DB Application.

GetOrCreateDef ( string name, string groupName, Application revitApp ) : ExternalDefinition

Get existed or create a new shared parameters with the given name, group and Revit DB Application.

GetSharedParameterFile ( Application revitApp ) : DefinitionFile

Get shared parameter DefinitionFile of given Revit DB Application.

Method Details

GetOrCreateDef() public static méthode

Get existed or create a new shared parameters with the given name and Revit DB Document.
public static GetOrCreateDef ( string name, Document revitDoc ) : ElementId
name string Shared parameter name
revitDoc Document Revit DB Document
Résultat ElementId

GetOrCreateDef() public static méthode

Get existed or create a new shared parameters with the given name and Revit DB Application.
public static GetOrCreateDef ( string name, Application revitApp ) : ExternalDefinition
name string Shared parameter name
revitApp Application Revit DB Application
Résultat ExternalDefinition

GetOrCreateDef() public static méthode

Get existed or create a new shared parameters with the given name, group and Revit DB Application.
public static GetOrCreateDef ( string name, string groupName, Application revitApp ) : ExternalDefinition
name string Shared parameter name
groupName string Shared parameter group name
revitApp Application Revit DB Application
Résultat ExternalDefinition

GetSharedParameterFile() public static méthode

Get shared parameter DefinitionFile of given Revit DB Application.
public static GetSharedParameterFile ( Application revitApp ) : DefinitionFile
revitApp Application Revit DB Application
Résultat DefinitionFile