Create Method (String, ParameterType, Boolean, Guid)


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

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,
	ref Guid guid
)
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, _
	ByRef guid As Guid _
) 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, 
	Guid% guid
)

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.
guid
Type: System Guid %
The GUID to use for this parameter definition.

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