Declares a new part catalog parameter
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.3.1717.0
Syntax
C#
public static void DeclareNewParameter( string globalContext, string displayContext, string paramName, string paramDesc, PartCatalogDataType dataType, PartParamUsageType usage, string defaultUnits, bool singleton, bool catManagedList )
Visual Basic
Public Shared Sub DeclareNewParameter ( _ globalContext As String, _ displayContext As String, _ paramName As String, _ paramDesc As String, _ dataType As PartCatalogDataType, _ usage As PartParamUsageType, _ defaultUnits As String, _ singleton As Boolean, _ catManagedList As Boolean _ )
Visual C++
public: static void DeclareNewParameter( String^ globalContext, String^ displayContext, String^ paramName, String^ paramDesc, PartCatalogDataType dataType, PartParamUsageType usage, String^ defaultUnits, bool singleton, bool catManagedList )
Parameters
- globalContext
- Type: System.String
Specifies the parameter's global context, which should be already declared.
- displayContext
- Type: System.String
Specifies the display string of the parameter's context.
- paramName
- Type: System.String
Specifies the parameter's name.
- paramDesc
- Type: System.String
Specifies a description for the parameter.
- dataType
- Type: Autodesk.Civil.DatabaseServices.PartCatalogDataType
Specifies the parameter's value data type.
- usage
- Type: Autodesk.Civil.DatabaseServices.PartParamUsageType
Specifies the parameter's usage.
- defaultUnits
- Type: System.String
Specifies the parameter's default units.
- singleton
- Type: System.Boolean
Specifies if the parameter is a singleton.
- catManagedList
- Type: System.Boolean
Specifies if the parameter belongs to a managed list.
Exceptions
Exception | Condition |
---|---|
System.ArgumentException | Thrown when input string is blank or when the input context is not declared yet. |