Create Method (String, ParameterType, Boolean)


Creates a new parameter definition using name, type and visibility.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)

Syntax

C#
[ObsoleteAttribute("This method is deprecated in Revit 2015. Use Create(Autodesk.Revit.DB.ExternalDefinitonCreationOptions) instead")]
public Definition Create(
	string name,
	ParameterType type,
	bool visible
)
Visual Basic
<ObsoleteAttribute("This method is deprecated in Revit 2015. Use Create(Autodesk.Revit.DB.ExternalDefinitonCreationOptions) instead")> _
Public Function Create ( _
	name As String, _
	type As ParameterType, _
	visible As Boolean _
) As Definition
Visual C++
[ObsoleteAttribute(L"This method is deprecated in Revit 2015. Use Create(Autodesk.Revit.DB.ExternalDefinitonCreationOptions) instead")]
public:
Definition^ Create(
	String^ name, 
	ParameterType type, 
	bool visible
)

Parameters

name
Type: System String
The name of the parameter definition to be created.
type
Type: Autodesk.Revit.DB ParameterType
The name of the parameter type for the new definition.
visible
Type: System Boolean
True if the parameter is visible to the user, false if it is hidden and accessible only via the API.

Return Value

If successful a reference to the new parameter definition is returned, otherwise a null reference ( Nothing in Visual Basic) .

Remarks

This method only supports creation of new external defintions (shared parameters).

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →