Autodesk Vault ProfessionalVault API

AddUnitOfMeasure Method

Autodesk.Connectivity.WebServicesItemService

Creates a Unit of Measure object.

Required Permissions

ItemAdministerUnitOfMeasure

Syntax

public UnitOfMeasure AddUnitOfMeasure(
   System.string unitName,
   System.string abbreviation,
   System.double conversion,
   System.long baseUofMID
)
Public Function AddUnitOfMeasure( _
   ByVal unitName As System.String, _
   ByVal abbreviation As System.String, _
   ByVal conversion As System.Double, _
   ByVal baseUofMID As System.Long _
) As UnitOfMeasure

Parameters

NameDescription
unitNameThe display name.
abbreviationThe abbreviated name.
conversionThe conversion factor. Only used if a base unit of measure is defined.
baseUofMIDThe base unit of measure. Enter in 0 if there is no base unit.

Return Value

The new Unit of Measure object.

See Also