Enterprise Extension Method Functions

Functions for specifying and retrieving enterprise item numbers.

This page discusses:

VPMReference.GetEnterpriseItemNumber()

You can return an enterprise item number.

Signature

VPMReference.GetEnterpriseItemNumber() : String

Arguments

Name Input/Output Required? Type Comment
oEnterpriseItemNumber Out String Returns the enterprise item number for an engineering item

ReturnType

String

GetEnterpriseItemNumber

//Get the root VPMReference from current editor
let roots(List)
let rootReference(VPMReference)
roots = GetEditorRoots("VPMReference")
if roots->Size() == 1
{
 rootReference = roots[1]
}

//Retrieve Enterprise Item Number
let sEIN(string)
sEIN = rootReference.GetEnterpriseItemNumber()
Message(sEIN)

VPMReference.SetEnterpriseItemNumber()

You can allow users to specify an enterprise item number on a physical product.

This is supported only when there is no parameterization formula or business logic applied when the user enters enterprise item numbers. If the system uses a parameterization formula or business logic, the system reports a message stating that only user input mode is supported.

Signature

VPMReference.SetEnterpriseItemNumber(iEnterpriseItemNumber : String): VoidType

Arguments

Name Input/Output Required? Type Comment
iEnterpriseItemNumber In String

Enterprise item number is specified.

It must follow enterprise item number rules.

SetEnterpriseItemNumber

//Get the root VPMReference from current editor
let roots(List)
let rootReference(VPMReference)
roots = GetEditorRoots("VPMReference")
if roots->Size() == 1
{
 rootReference = roots[1]
}

//Set Enterprise Item number 
rootReference.SetEnterpriseItemNumber("EIN-1001")