MfgProcessOccurrence.AssignProduct()
Assigns a product to this item occurrence.
Signature
MfgProcessOccurrence.AssignProduct(A Product Occurrence : ProductOccurrence)
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
A Product Occurrence |
In |
|
ProductOccurrence |
Product to assign as a ProductOccurrence |
Example
let MyPrcOcc(MfgProcessOccurrence)
let MyPrdOcc(ProductOccurrence)
set MyPrcOcc = Occ1 //[Occ1 from Argument List ,given by user selection]
set MyPrdOcc = Occ2 //[Occ2 from Argument List ,given by user selection]
MyPrcOcc->AssignProduct(MyPrdOcc)
MfgProcessOccurrence.AssignProductPath()
Assigns a product path to this item occurrence.
Signature
MfgProcessOccurrence.AssignProductPath(A List (should contain a path of product instances) : List)
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
A List (should contain a path of product
instances) |
In |
|
List |
Product path to assign as list of VPMInstance |
Example
let MyPrcOcc(MfgProcessOccurrence)
let MyList(list)
let MyPrdInst(VPMInstance)
set MyPrcOcc = Occ1 //[Occ1 from Argument List ,given by user selection]
set MyPrdInst = Inst //[Inst from Argument List ,given by user selection]
MyList[1] = MyPrdInst
MyPrcOcc->AssignProductPath(MyList)
MfgProcessOccurrence.CreateAssignmentFilter()
Creates a MBOM assignment filter connection between a process reference and
a product occurrence.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
A Product Occurrence |
In |
|
ProductOccurrence |
- |
Example
let I(Integer)
let MyPrcOcc(MfgProcessOccurrence)
let MyPrdOcc(ProductOccurrence)
set MyPrcOcc = Occ1 //[Occ1 from Argument List ,given by user selection]
set MyPrdOcc = Occ2 //[Occ2 from Argument List ,given by user selection]
set I = MyPrcOcc->CreateAssignmentFilter(MyPrdOcc)
MfgProcessOccurrence.CreatePartialScope()
Creates a partial scope link between a MBOM occurrence and a product
occurrence.
Signature
MfgProcessOccurrence.CreatePartialScope(A Product Occurrence : ProductOccurrence, CheckModeOnly : Boolean, ProductFromCrossingScope : VPMReference, MBOMFromCrossingScope : DELFmiFunctionReference, ListOfChildrenMBOMFromExistingAssignments : List, ListOfProductfromExistingAssignments : List, ListOfReAssignmentStatus : List, A Product Context Reference : VPMReference, A MBOM Context Reference : DELFmiFunctionReference) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
A Product Occurrence |
In |
|
ProductOccurrence |
- |
CheckModeOnly |
In |
|
Boolean |
- |
ProductFromCrossingScope |
Out |
|
VPMReference |
- |
MBOMFromCrossingScope |
Out |
|
DELFmiFunctionReference |
- |
ListOfChildrenMBOMFromExistingAssignments |
Out |
|
List |
- |
ListOfProductfromExistingAssignments |
Out |
|
List |
- |
ListOfReAssignmentStatus |
Out |
|
List |
- |
A Product Context Reference |
In |
|
VPMReference |
- |
A MBOM Context Reference |
In |
|
DELFmiFunctionReference |
- |
Example
let MyMBOMOcc(MfgProcessOccurrence)
let MyPrdOcc(ProductOccurrence)
let BooleanPartialScope(Boolean)
let CheckModeOnly(Boolean)
let oProductFromCrossingScope(VPMReference )
let oMBOMFromCrossingScope(DELFmiFunctionReference)
let oListOfChildrenMBOMFromExistingAssignments(List)
let oListOfProductfromExistingAssignments(List)
let ListOfReAssignmentStatus(List)
let iContextReferenceForPrd(VPMReference)
let iContextReferenceForMBOM(DELFmiFunctionReference)
set MyMBOMOcc = Occ1 //[Occ1 from Argument List ,given by user selection]
set MyPrdOcc = Occ2 //[Occ2 from Argument List ,given by user selection]
set BooleanPartialScope = MyMBOMOcc->CreatePartialScope(MyPrdOcc,CheckModeOnly,oProductFromCrossingScope,oMBOMFromCrossingScope,oListOfChildrenMBOMFromExistingAssignments,oListOfProductfromExistingAssignments,oListOfReAssignmentStatus,iContextReferenceForPrd,iContextReferenceForMBOM)
MfgProcessOccurrence.CreateProcessGroup()
Creates a group of items.
Signature
MfgProcessOccurrence.CreateProcessGroup() : GroupOfProcessInstance
ReturnType
GroupOfProcessInstance
Example
Let MyPrcsGroup (GroupOfProcessInstance)
Let MyPrcsOcc (MfgProcessOccurrence)
set MyPrcsOcc = Occ //[Occ from Argument List ,given by user selection]
Set MyPrcsGroup = MyPrcsOcc.CreateProcessGroup()
For more information, see Example of Use: Managing Process Groups.
MfgProcessOccurrence.CreateScope()
Creates a scope link between a product and this item occurrence.
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
A Product Occurrence |
In |
|
ProductOccurrence |
Product as ProductOccurrence |
Example
let MyPrcOcc(MFgProcessOccurrence)
let MyPrdOcc(ProductOccurrence)
set MyPrcOcc = Occ1 //[Occ1 from Argument List ,given by user selection]
set MyPrdOcc = Occ2 //[Occ2 from Argument List ,given by user selection]
MyPrcOcc->CreateScope(MyPrdOcc)
MfgProcessOccurrence.CreateScopeToProduct()
Creates a scope link between a product and this item occurrence.
Signature
MfgProcessOccurrence.CreateScopeToProduct(A PLM Core Reference : PLMCoreReference)
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
A PLM Core Reference |
In |
|
PLMCoreReference |
Product as PLMCoreReference |
Example
let MyPrcOcc(MFgProcessOccurrence)
let MyPrdRef(PLMCoreReference )
set MyPrcOcc = Occ1 //[Occ1 from Argument List ,given by user selection]
set MyPrdRef = Occ2 //[Occ2 from Argument List ,given by user selection]
MyPrcOcc->CreateScopeToProduct(MyPrdRef)
MfgProcessOccurrence.CreateScopeWithContext()
Creates a full scope link between a MBOM occurrence and a product
occurrence.
Signature
MfgProcessOccurrence.CreateScopeWithContext(A Product Occurrence : ProductOccurrence, CheckModeOnly : Boolean, ProductFromCrossingScope : VPMReference, MBOMFromCrossingScope : DELFmiFunctionReference, ListOfChildrenMBOMFromExistingAssignments : List, ListOfProductfromExistingAssignments : List, ListOfReAssignmentStatus : List, A Product Context Reference : VPMReference, A MBOM Context Reference : DELFmiFunctionReference) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
A Product Occurrence |
In |
|
ProductOccurrence |
- |
CheckModeOnly |
In |
|
Boolean |
- |
ProductFromCrossingScope |
Out |
|
VPMReference |
- |
MBOMFromCrossingScope |
Out |
|
DELFmiFunctionReference |
- |
ListOfChildrenMBOMFromExistingAssignments |
Out |
|
List |
- |
ListOfProductfromExistingAssignments |
Out |
|
List |
- |
ListOfReAssignmentStatus |
Out |
|
List |
- |
A Product Context Reference |
In |
|
VPMReference |
- |
A MBOM Context Reference |
In |
|
DELFmiFunctionReference |
- |
Example
let MyMBOMOcc(MfgProcessOccurrence)
let MyPrdOcc(ProductOccurrence)
let BooleanScope(Boolean)
let CheckModeOnly(Boolean)
let oProductFromCrossingScope(VPMReference )
let oMBOMFromCrossingScope(DELFmiFunctionReference)
let oListOfChildrenMBOMFromExistingAssignments(List)
let oListOfProductfromExistingAssignments(List)
let ListOfReAssignmentStatus(List)
let iContextReferenceForPrd(VPMReference)
let iContextReferenceForMBOM(DELFmiFunctionReference)
set MyMBOMOcc = Occ1 //[Occ1 from Argument List ,given by user selection]
set MyPrdOcc = Occ2 //[Occ2 from Argument List ,given by user selection]
set BooleanScope = MyMBOMOcc->CreateScopeWithContext(MyPrdOcc,CheckModeOnly,oProductFromCrossingScope,oMBOMFromCrossingScope,oListOfChildrenMBOMFromExistingAssignments,oListOfProductfromExistingAssignments,oListOfReAssignmentStatus,iContextReferenceForPrd,iContextReferenceForMBOM)
MfgProcessOccurrence.GetListOfAssignmentFiltersAndStatus()
Returns a list of status, alias, and occurrence of the filter target
product on the item reference.
Signature
MfgProcessOccurrence.GetListOfAssignmentFiltersAndStatus(A List (should contain integer correspnding to status) : List, A List (should contain Product Name Alias) : List, A List ( should contain filtered product occurrences) : List) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
A List (should contain integer correspnding to
status) |
Out |
|
List |
- |
A List (should contain Product Name
Alias) |
Out |
|
List |
- |
A List (should contain filtered product
occurrences) |
Out |
|
List |
- |
Example
let I(Integer)
let MyPrcOcc(MfgProcessOccurrence)
let StatusList(List)
let AliasList(List)
let FilteredProdList(List)
set MyPrcOcc = Occ1 //[Occ1 from Argument List ,given by user selection]
set I = MyPrcOcc->GetListOfAssignmentFiltersAndStatus(StatusList,AliasList,FilteredProdList)
MfgProcessOccurrence.GetListOfFilteredProductOccurrences()
Returns the list of filtered product occurrences as per the filtering
rule.
Signature
MfgProcessOccurrence.GetListOfFilteredProductOccurrences(A List ( should contain assignable product occurrences) : List) : List
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
A List ( should contain assignable product
occurrences) |
In |
|
List |
- |
Example
let MyPrcOcc(MfgProcessOccurrence)
let FilteredProdList(List)
let AssignableProdList(List)//[List to be given by user]
set MyPrcOcc = Occ1 //[Occ1 from Argument List ,given by user selection]
set FilteredProdList = MyPrcOcc->GetListOfFilteredProductOccurrences(AssignableProdList)
MfgProcessOccurrence.InsertPredecessor()
Inserts an item reference as a predecessor of this item occurrence.
Signature
MfgProcessOccurrence.InsertPredecessor(Manufactured Item Reference : DELFmiFunctionReference) : MfgProcessOccurrence
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Manufactured Item Reference |
In |
|
DELFmiFunctionReference |
Item reference to insert as DELFmiFunctionReference |
Example
let MyPrcsOcc (MfgProcessOccurrence)
let MyPrcsRef(DELFmiFunctionReference)
set MyPrcsRef = Ref //[Ref from Argument List ,Provided by User either using new or selecting existing process]
set MyPrcsOcc = Occ //[Occ from Argument List ,given by user selection]
set MyPrcsOcc =MyPrcsOcc-> InsertPredecessor(MyPrcsRef)
MfgProcessOccurrence.RemoveAllProcessGroups()
Removes all Groups.
Signature
MfgProcessOccurrence.RemoveAllProcessGroups()
Example
let MyPrcsOcc(MfgProcessOccurrence)
set MyPrcsOcc = Occ//[Occ from argument list,given by a user selection]
MyPrcsOcc.RemoveAllProcessGroups()
For more information, see Example of Use: Managing Process Groups.
MfgProcessOccurrence.RemoveAssignmentFilter()
Removes the MBOM assignment filter connection between a process reference
and a product occurrence.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
A Product Occurrence |
In |
|
ProductOccurrence |
- |
Example
let I(Integer)
let MyPrcOcc(MfgProcessOccurrence)
let MyPrdOcc(ProductOccurrence)
set MyPrcOcc = Occ1 //[Occ1 from Argument List ,given by user selection]
set MyPrdOcc = Occ2 //[Occ2 from Argument List ,given by user selection]
set I = MyPrcOcc->RemoveAssignmentFilter(MyPrdOcc)
MfgProcessOccurrence.RemoveAssignmentFilterFromAlias()
Removes the MBOM assignment filter connection between a process reference
and a product occurrence from a product occurrence alias.
Signature
MfgProcessOccurrence.RemoveAssignmentFilterFromAlias(A Product Occurrence Alias : String) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
A Product Occurrence Alias |
In |
|
String |
The alias may be retrieved from the EKL
GetListOfAssignmentFiltersAndStatus. |
Example
let I(Integer)
let MyPrcOcc(MfgProcessOccurrence)
let MyPrdOccAlias(String)
set MyPrcOcc = Occ1 // [Occ1 from Argument List ,given by user selection]
set MyPrdOccAlias = Alias // [Alias from Argument List]
set I = MyPrcOcc->RemoveAssignmentFilterFromAlias(MyPrdOccAlias)
MfgProcessOccurrence.RemoveNextProcess()
Removes the next item according to the precedence link.
Signature
MfgProcessOccurrence.RemoveNextProcess(Next manufactured item to remove)
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Next manufactured item to remove |
In |
|
MfgProcessOccurrence |
None |
Example
let MyPrcsOcc1(MfgProcessOccurrence)
let MyPrcsOcc2(MfgProcessOccurrence)
set MyPrcsOcc1 = Occ1//[Occ1 from argument list,given by a user selection]
set MyPrcsOcc2 = Occ2//[Occ2 from argument list,given by a user selection]
MyPrcsOcc1.RemoveNextProcess(MyPrcsOcc2)
MfgProcessOccurrence.RemovePredecessor()
Removes the predecessor item according to the data requirement
link.
Signature
MfgProcessOccurrence.RemovePredecessor(Predecessor)
Example
let MyPrcsOcc1(MfgProcessOccurrence)
let MyPrcsOcc2(MfgProcessOccurrence)
set MyPrcsOcc1 = Occ1//[Occ1 from argument list,given by a user selection]
set MyPrcsOcc2 = Occ2//[Occ2 from argument list,given by a user selection]
MyPrcsOcc1.RemovePredecessor(MyPrcsOcc2)
MfgProcessOccurrence.RemoveProcessGroup()
Removes a Group.
Signature
MfgProcessOccurrence.RemoveProcessGroup(Group : GroupOfProcessInstance)
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Group |
In |
|
GroupOfProcessInstance |
None |
Example
Let MyPrcsGroup(GroupOfProcessInstance)
Let MyPrcsOcc (MfgProcessOccurrence)
set MyPrcsOcc = Occ //[Occ from Argument List ,given by user selection]
MyPrcsOcc.RemoveProcessGroup(MyPrcsGroup)
For more information, see Example of Use: Managing Process Groups.
MfgProcessOccurrence.RemoveProcessOutput()
Removes the item output of this item occurrence.
Example
let MyPrcsOcc(MfgProcessOccurrence)
set MyPrcsOcc = Occ//[Occ1 from argument list,given by a user selection]
MyPrcsOcc.RemoveProcessOutput()
MfgProcessOccurrence.RemoveScope()
Removes the scope link between the reference of the input product
occurrence and the reference of this item occurrence.
Signature
MfgProcessOccurrence.RemoveScope()
Example
Let MyOcc(MfgProcessOccurrence)
set MyOcc = Occ //[Occ from Argument List ,given by user selection]
MyOcc.RemoveScope()
MfgProcessOccurrence.RemoveScopeWithContext()
Removes the scope link on the MBOM occurrence.
Signature
MfgProcessOccurrence.RemoveScopeWithContext(CheckModeOnly : Boolean, Product Reference : VPMReference, ListOfChildrenMBOMFromExistingAssignments : List, ListOfProductfromExistingAssignments : List, A Product Context Reference : VPMReference, A MBOM Context Reference : DELFmiFunctionReference) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
CheckModeOnly |
In |
|
Boolean |
- |
Product Reference |
Out |
|
VPMReference |
- |
ListOfChildrenMBOMFromExistingAssignments |
Out |
|
List |
- |
ListOfProductfromExistingAssignments |
Out |
|
List |
- |
A Product Context Reference |
In |
|
VPMReference |
- |
A MBOM Context Reference |
In |
|
DELFmiFunctionReference |
- |
Example
let MyMBOMOcc(MfgProcessOccurrence)
let BooleanScope(Boolean)
let CheckModeOnly(Boolean)
let oProductRef(VPMReference )
let oListOfChildrenMBOMFromExistingAssignments(List)
let oListOfProductfromExistingAssignments(List)
let iContextReferenceForPrd(VPMReference)
let iContextReferenceForMBOM(DELFmiFunctionReference)
set MyMBOMOcc = Occ1 //[Occ1 from Argument List ,given by user selection]
set BooleanScope = MyMBOMOcc->RemoveScopeWithContext(CheckModeOnly,oProductRef,oListOfChildrenMBOMFromExistingAssignments,oListOfProductfromExistingAssignments,iContextReferenceForPrd,iContextReferenceForMBOM)
MfgProcessOccurrence.SetProcessOutput()
Sets the item output reference to this item
occurrence.
Note:
When setting the item output to product, the input reference
should be of type VPMReference.
Signature
MfgProcessOccurrence.SetProcessOutput(A PLM Core Reference : PLMCoreReference) : MfgProcessOccurrence
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
A PLM Core Reference |
In |
|
PLMCoreReference |
Output reference as PLMCoreReference |
Example
let MyRef(PLMCoreReference)
let MyPrcsOcc(MfgProcessOccurrence)
set MyPrcsOcc = Occ//[Occ From Argument List,Given by User Selection]
set MyRef = Ref//[Ref From Argument List,Given by User Selection]
set MyPrcsOcc =MyPrcsOcc->SetProcessOutput(MyRef)
MfgProcessOccurrence.UnassignProduct()
Unassigns the product occurrence assigned to this item
occurrence.
Signature
MfgProcessOccurrence.UnassignProduct()
Example
let MyPrcOcc(MfgProcessOccurrence)
let MyPrdOcc(ProductOccurrence)
set MyPrcOcc = Occ1 //[Occ1 from Argument List ,given by user selection]
set MyPrdOcc = Occ2 //[Occ2 from Argument List ,given by user selection]
MyPrcOcc->UnAssignProduct(Occ2)
SetQuantityOnContinuousItem()
Method sets the attribute V_ContQuantity value on Continuous Item types viz.
Continuous Provided Materials, Continuous Manufactured Materials and Continuous Service
Parts.
Signature
MfgProcessOccurrence.SetQuantityOnContinuousItem (Quantity)
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Quantity |
Input |
|
String |
The Quantity to be set on the Continuous Item. This should
be a real value with or without a unit. The quantity on the selected
continuous Item will be stored with the unit selected by the user in the
‘Preferences’ even if the unit is not specified. |
The unit, if specified along with the input quantity can be in the following formats:
- The NLS unit (example: 5kg, 5mm, 5m2, 5m3)
- The internal name of the units (example: 5KILOGRAM, 5MM, 5METER2, 5METER3)
The table below shows the NLS units and internal name of the units that can be used for
the 4 magnitudes (length, mass, area and volume) that we’re supporting.
| Magnitude |
Unit |
Internal name of the unit |
NLS Unit |
| Length |
Millimeter |
MM |
mm |
| Meter |
METER |
m |
| Centimeter |
CM |
cm |
| Kilometer |
KM |
km |
| Inch |
INCH |
in |
| Foot |
FOOT |
ft |
| Micrometer |
micron |
micron |
| Yard |
YARD |
yard |
| Mile |
MILE |
mile |
| Nanometer |
NANOMETER |
nm |
| Hectometer |
HECTOMETER |
hm |
| Nautical mile |
NAUTICAL_MILE |
nmi |
| Decimeter |
DECIMETER |
dm |
| Angstrom |
ANGSTROM |
ang |
| Centimillimeter |
CENTIMILLIMETER |
cmm |
| Thousandth of an inch |
THOUSANDTH_OF_AN_INCH |
mil |
| Fathom |
FATHOM |
ftm |
| Furlong |
FURLONG |
fur |
| Chain |
CHAIN |
chn |
| Femtometre |
FEMTOMETER |
fm |
| Mass |
Kilogram |
KILOGRAM |
kg |
| Gram |
GRAM |
g |
| Milligram |
MG |
mg |
| Tonne |
TONNE |
T |
| Pound |
POUND |
lb |
| Ounce |
OUNCE |
oz |
| Slug |
SLUG |
slug |
| Slinch |
SLUG12 |
slinch |
| Gravity tonne |
GRAVITY_TON |
gravT |
| Kilogram force square second per meter |
KGFxS2_M |
kgfxs2_m |
| Kilogram force square second per millimeter |
KGFxS2_MM |
kgfxs2_mm |
| Kilogram force square second per centimeter |
KGFxS2_CM |
kgfxs2_cm |
| Pound force square second per inch |
LBFxS2_IN |
lbfxs2_in |
| Pound force square second per foot |
LBFxS2_FT |
lbfxs2_ft |
| Hectogram |
HECTOGRAM |
hg |
| Dalton |
DALTON |
Da |
| KiloDalton |
KILODALTON |
kDa |
| Nanogram |
NANOGRAM |
ng |
| Picogram |
PICOGRAM |
pg |
| Microgram |
MICROGRAM |
micg |
| Troy Ounce |
TROYOUNCE |
ozt |
| Carat |
CARAT |
ct |
| Short Ton |
SHORTTON |
sht |
| Long Ton |
LONGTON |
lgt |
| Area |
Square meter |
METER2 |
m2 |
| Square millimeter |
MM2 |
mm2 |
| Square centimeter |
CM2 |
cm2 |
| Square inch |
INCH2 |
in2 |
| Square foot |
FOOT2 |
ft2 |
| Square yard |
YARD_SQUARE |
yd2 |
| Square kilometer |
KM2 |
km2 |
| Square hectometer |
HECTOMETER2 |
hm2 |
| Acre |
ACRE |
ac |
| Square mile |
SQUARE_MILE |
mi2 |
| Circular Mil |
CIRCULARMIL |
cmil |
| Hectare |
HECTARE |
ha |
| Volume |
Cubic meter |
METER3 |
m3 |
| Cubic millimeter |
MM3 |
mm3 |
| Cubic centimeter |
CM3 |
cm3 |
| Cubic inch |
INCH3 |
in3 |
| Cubic foot |
FOOT3 |
ft3 |
| Liter |
LITER |
L |
| US Gallon |
gal |
gal |
| Barrel |
brl |
brl |
| cubic yard |
YARD_CUBE |
yard3 |
| Cubic decimeter |
CUBIC_DECIMETER |
dm3 |
| US Fluid ounce |
US_Fluid_Ounce |
FO |
| Milliliter |
MILLILITER |
mL |
| Microliter |
MICROLITER |
micL |
| Centiliter |
CENTILITER |
cL |
| Deciliter |
DECILITER |
dL |
| Cubic mile |
MILE3 |
mi3 |
| Nanoliter |
NANOLITER |
nL |
| US Peck |
US_PECK |
pk |
| US wet Pint |
US_WET_PINT |
pt |
| US wet Quart |
US_WET_QUART |
qt |
| UK Bushel |
UK_BUSHEL |
BU_UK |
| US Bushel |
US_BUSHEL |
BU_US |
| US Cup |
US_CUP |
cup |
| STERE |
STERE |
st |
| US Tablespoon |
US_TABLESPOON |
tbsp |
| US Teaspoon |
US_TEASPOON |
tsp |
ReturnType
String
The return strings below are possible:
Quantity is set successfully: the set quantity is successful
The unit type is not good: the unit is given along with the quantity
and it doesn’t match the selected Continuous Item type’s magnitude.
The quantity should be a positive value: the input argument is a
non-positive value.
Only Continuous Item types are allowed: the selected Item is not a
Continuous Item type.
Set quantity failed as selected Item doesn't have an Instance: the
selected Item doesn’t have an Instance (example – if the selected Item is a root).
Set quantity failed: the API fails due to some other generic
error.
Example 1
let ProcessOcc(MfgProcessOccurrence)
let Quantity(String)
let status(String)
set ProcessOcc = Occ //[Occ from Argument List,given by user selection]
Quantity = 3.0 //[Can be specified with or without a unit]
status = ProcessOcc.SetQuantityOnContinuousItem(Quantity)
Message(status)
Example 2
let ProcessOcc(MfgProcessOccurrence)
let status(String)
set ProcessOcc = Occ //[Occ from Argument List,given by user selection]
let Quantity = “3.5KILOGRAM”
status = ProcessOcc.SetQuantityOnContinuousItem(Quantity)
Message(status)
SetAsRequiredQuantityOnContinuousItem()
Method restores the quantity as ‘As Required’ by removing the quantity extension on
the instance.
Signature
MfgProcessOccurrence. SetAsRequiredQuantityOnContinuousItem ()
ReturnType
Integer
The two return integers below are possible:
0: Set quantity as required failed
1: Set quantity as required successful
Example
let ProcessOcc(MfgProcessOccurrence)
let status(Integer)
set ProcessOcc = Occ//[Occ from Argument List,given by user selection]
set status = ProcessOcc. SetAsRequiredQuantityOnContinuousItem ()
Message("status :", status)
GetQuantityOnContinuousItem()
Method gets the value of the attribute V_ContQuantity from Continuous Item types
viz. Continuous Provided Materials, Continuous Manufactured Materials and Continuous Service
Parts.
Signature
MfgProcessOccurrence.GetQuantityOnContinuousItem ()
ReturnType
String
The return integers below are possible:
- Quantity with the unit selected in the Preferences (which is the NLS unit) will be returned if everything is OK.
Only Continuous Item types are allowed: the selected Item is not a
Continuous Item type.
Get quantity failed as selected Item doesn't have an Instance: the
selected Item doesn’t have an Instance (example – if the selected Item is a root).
Get quantity failed: the API fails due to some other generic
error.
Example
let ProcessOcc(MfgProcessOccurrence)
let QuantityWithUnit(String)
set ProcessOcc = Occ//[Occ from Argument List,given by user selection]
set QuantityWithUnit = ProcessOcc.GetQuantityOnContinuousItem()
Message("Quantity :", QuantityWithUnit)
|