PLMResourceTypePackage Methods

This page discusses:

ResourceOccurrence.AssignOperation()

Assigns an operation to the resource occurrence.

Signature

ResourceOccurrence.AssignOperation(Production System Occurrence : ProdSystemOccurrence)

Arguments

Name Input / Output Required? Type Comment
Production System Occurrence In ProdSystemOccurrence Operation to assign as ProdSystemOccurrence.

Example

let MyOcc(ResourceOccurrence)
let MyProdSysOcc(ProdSystemOccurrence)
MyOcc.AssignOperation(MyProdSysOcc)

ResourceOccurrence.CreateScope()

Defines a scope link between a system and the resource occurrence.

Signature

ResourceOccurrence.CreateScope(Production System Occurrence : ProdSystemOccurrence)

Arguments

Name Input / Output Required? Type Comment
Production System Occurrence In ProdSystemOccurrence System reference as ProdSystemOccurrence.

Example

Let MyProdSysOcc(ProdSystemOccurrence)
Let MyResourceOcc(ResourceOccurrence)
set MyProdSysOcc = Occ1//[Occ1 From Argument List,provided by user selection]
set MyResourceOcc = Occ2//[Occ2 From Argument List,provided by user selection]
MyResourceOcc->CreateScope(MyProdSysOcc)

ResourceOccurrence.GetChildren()

Returns the child resources of the resource occurrence.

Signature

ResourceOccurrence.GetChildren() : List

ReturnType

List

Child resources as list of ResourceOccurrence.

Example

let MyResourceOcc(ResourceOccurrence)
let MyList(list)
set MyResourceOcc = Occ1//[Occ1 From Argument List,provided by user selection]
MyList = MyResourceOcc.GetChildren()

ResourceOccurrence.GetFather()

Returns the father resource of the resource occurrence.

Signature

ResourceOccurrence.GetFather() : ResourceOccurrence

ReturnType

ResourceOccurrence

Father resource as ResourceOccurrence.

Example

Let MyResourceOcc(ResourceOccurrence)
set MyResourceOcc = Occ1//[Occ1 From Argument List,provided by user selection]
MyResourceOcc = MyResourceOcc->GetFather()

ResourceOccurrence.RemoveScope()

Removes the scope link between the input system reference and the resource occurrence.

Signature

ResourceOccurrence.RemoveScope( Production system )

Arguments

Name Input / Output Required? Type Comment
Production system In ProdSystemOccurrence None.

Example

let MyPrdSysOcc(ProdSystemOccurrence)
let MyResourceOcc(ResourceOccurrence)
set MyPrdSysOcc = Occ1//[Occ1 from Argument List ,given by user selection]
set MyResourceOcc = Occ2//[Occ2 from Argument List ,given by user selection]
MyResourceOcc.RemoveScope(MyPrdSysOcc)

ResourceOccurrence.UnassignOperation()

Unassigns the operation from the resource occurrence.

Signature

ResourceOccurrence.UnassignOperation(Operation)

Arguments

Name Input / Output Required? Type Comment
Operation In ProdSystemOccurrence None.

Example

let MyOcc(ResourceOccurrence)
let MyProdSysOcc(ProdSystemOccurrence)
MyOcc.UnAssignOperation(MyProdSysOcc)

SetSerialNumberAttribute

Sets the serial number on the asset (resource reference).

Signature

PLMResource.SetSerialNumberAttribute(Serial_Number)

Arguments

Name Input / Output Required? Type Comment
Serial_Number Input String Serial number to store on the asset

Example

let MyResourceRef(PLMResource)
let MySerialNumber(String)
MySerialNumber = “SN-12345”
MyResourceRef.SetSerialNumberAttribute(MySerialNumber)