Set the current primary resource usage that the resource position acts on. This
initializes the primary resource usage for all the calls to Resource position in the
script. The current primary resource usage could be changed by a next call to the
method.
AddOrUpdateSubResourceRelativePosition
Adds or updates a relative subresource position.
Signature
MyOperationOrSystem.AddOrUpdateSubResourceRelativePosition(MySubResourceOcc,lRelativePosition) : Integer
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperationOrSystem |
In |
|
ProdSystemOccurrence
|
System or operation occurrence. |
MySubResourceOcc |
In |
|
ObjectType
|
The subresource that must be positioned. It
can be either:
- A resource (in this case,
ObjectType is
ResourceOccurrence)
- A product directly or indirectly aggregated under the
resource (in this case,
ObjectType is
ProductOccurrence)
|
lRelativePosition |
In |
|
List
|
The Relative position of the
subresource to be positioned. This list should contain 12
reals: the first nine reals represent a 3x3 rotation matrix,
the last three reals represent translation coordinates.
|
ReturnType
Integer
Return values:
0: the position for the subresource occurrence is
successfully set on the operation/system.
1: the operation/system is not valid.
2: there is an unexpected failure.
Example
let MyOperationOrSystem(ProdSystemOccurrence)
let MySubResourceOcc(ProductOccurrence)
let lRelativePosition(List)
let oResult(Integer)
// Build lRelativePosition
lRelativePosition = List(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1000.0)
// Apply relative position to MySubResourceOcc
oResult = MyOperationOrSystem.AddOrUpdateSubResourceRelativePosition (MySubResourceOcc, lRelativePosition)
AddRelativeResourcePosition
Adds a relative resource position
in the context of the root
session.
Signature
MyOperationOrSystem.AddRelativeResourcePosition(MyResourceOcc,lAbsolutePosition,MyReferentialOcc,eReferentialType,eApplicability,sPosture) : Integer
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperationOrSystem |
In |
|
ProdSystemOccurrence
|
System or operation occurrence. |
MyResourceOcc |
In |
|
ResourceOccurrence
|
The resource that must be positioned. This
resource must implement the operation or the system (directly or
indirectly). |
lAbsolutePosition |
In |
|
List
|
Relative position of the
resource to be positioned. This list should contain 12 reals:
the first nine reals represent a 3x3 rotation matrix, the
last three reals represent translation coordinates.
|
MyReferentialOcc |
In |
|
ObjectType
|
Referential to be used for this resource. It
can be either:
- the implemented item (in this case,
ObjectType is
MfgProcessOccurrence)
- an assigned resource (in this case,
ObjectType is
ResourceOccurrence)
-
NULL.
|
eReferentialType |
In |
|
ResourcePositionReferential
|
Referential type to be used for this
resource. The following values are valid:
BuildUp
ImplementedManufacturedItem
Layout
UserDefined
FromPrevious.
|
eApplicability |
In |
|
ResourcePositionApplicability
|
Applicability to apply to the resource. The
following values are valid: |
sPosture |
In |
|
String
|
Posture or home position to apply to the
positioned resource. The value must exit on the positioned
resource. |
ReturnType
Integer
Return values:
0: the position for the resource occurrence is
successfully defined on the operation/system.
1: unexpected failure.
2: an inconsistency is detected and the position is
rejected.
Example
let MyOperationOrSystem(ProdSystemOccurrence)
let MyResourceOcc(ResourceOccurrence)
let lRelativePosition(List)
let MyReferentialOcc(ResourceOccurrence)
let eReferentialType(ResourcePositionReferential)
let eApplicability(ResourcePositionApplicability)
let sPosture(String)
let iResult(Integer)
eReferentialType = "UserDefined"
eApplicability = "Operation"
sPosture = "Stand Relax"
lRelativePosition = List(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1000.0)
// MyOperationOrSystem, MyResourceOcc, and MyReferentialOcc are needed to be valuated before using this API
iResult = MyOperationOrSystem.AddRelativeResourcePosition(MyResourceOcc,lRelativePosition,MyReferentialOcc,eReferentialType,eApplicability,sPosture)
eReferentialType = "BuildUp"
eApplicability = "System"
// sPosture is optional
iResult = MyOperationOrSystem.AddRelativeResourcePosition(MyResourceOcc,lRelativePosition,NULL,eReferentialType,eApplicability)
AddRelativeResourcePositionInScope
Adds a relative resource position in the context of the frist upper scope.
Signature
MyOperationOrSystem.AddRelativeResourcePositionInScope(MyResourceOcc,lAbsolutePosition,MyReferentialOcc,eReferentialType,eApplicability,sPosture) : Integer
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperationOrSystem |
In |
|
ProdSystemOccurrence
|
System or operation occurrence. |
MyResourceOcc |
In |
|
ResourceOccurrence
|
The resource that must be positioned. This
resource must implement the operation or the system (directly or
indirectly). |
lAbsolutePosition |
In |
|
List
|
Relative position of the
resource to be positioned. This list should contain 12 reals:
the first nine reals represent a 3x3 rotation matrix, the
last three reals represent translation coordinates.
|
MyReferentialOcc |
In |
|
ObjectType
|
Referential to be used for this resource. It
can be either:
- the implemented item (in this case,
ObjectType is
MfgProcessOccurrence)
- an assigned resource (in this case,
ObjectType is
ResourceOccurrence)
-
NULL.
|
eReferentialType |
In |
|
ResourcePositionReferential
|
Referential type to be used for this
resource. The following values are valid:
BuildUp
ImplementedManufacturedItem
Layout
UserDefined
FromPrevious.
|
eApplicability |
In |
|
ResourcePositionApplicability
|
Applicability to apply to the resource. The
following values are valid: |
sPosture |
In |
|
String
|
Posture or home position to apply to the
positioned resource. The value must exit on the positioned
resource. |
ReturnType
Integer
Return values:
0: the position for the resource occurrence is
successfully defined on the operation/system.
1: unexpected failure.
2: an inconsistency is detected and the position is
rejected.
Example
let MyOperationOrSystem(ProdSystemOccurrence)
let MyResourceOcc(ResourceOccurrence)
let lRelativePosition(List)
let MyReferentialOcc(ResourceOccurrence)
let eReferentialType(ResourcePositionReferential)
let eApplicability(ResourcePositionApplicability)
let sPosture(String)
let iResult(Integer)
eReferentialType = "UserDefined"
eApplicability = "Operation"
sPosture = "Stand Relax"
lRelativePosition = List(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1000.0)
// MyOperationOrSystem, MyResourceOcc, and MyReferentialOcc are needed to be valuated before using this API
iResult = MyOperationOrSystem.AddRelativeResourcePositionInScope(MyResourceOcc,lRelativePosition,MyReferentialOcc,eReferentialType,eApplicability,sPosture)
eReferentialType = "BuildUp"
eApplicability = "System"
// sPosture is optional
iResult = MyOperationOrSystem.AddRelativeResourcePositionInScope(MyResourceOcc,lRelativePosition,NULL,eReferentialType,eApplicability)
AddResourcePosition
Adds an absolute resource position
in the context of the root
session.
Signature
MyOperationOrSystem.AddResourcePosition(MyResourceOcc,lAbsolutePosition,MyReferentialOcc,eReferentialType,eApplicability,sPosture)
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperationOrSystem
|
In |
|
ProdSystemOccurrence |
System or operation occurrence. |
MyResourceOcc
|
In |
|
ResourceOccurrence |
The resource that must be positioned. This
resource must implement the operation or the system (directly or
indirectly). |
lAbsolutePosition |
In |
|
List
|
Absolute position of the resource to be
positioned. This list should contain 12 reals: the first
nine reals represent a 3x3 rotation matrix, the last three
reals represent translation coordinates.
|
MyReferentialOcc
|
In |
|
ObjectType |
Referential to be used for this resource. It
can be either:
- the implemented item (in this case,
ObjectType is
MfgProcessOccurrence)
- an assigned resource (in this case,
ObjectType is
ResourceOccurrence)
-
NULL.
|
eReferentialType
|
In |
|
ResourcePositionReferential |
Referential type to be used for this
resource. The following values are valid:
BuildUp
ImplementedManufacturedItem
Layout
UserDefined
FromPrevious.
|
eApplicability
|
In |
|
ResourcePositionApplicability |
Applicability to apply to the resource. The
following values are valid: |
sPosture |
In |
|
String
|
Posture or home position to apply to the
positioned resource. The value must exit on the positioned
resource. |
ReturnType
Integer
Return values:
0: the position for the resource occurrence is
successfully set on the operation/system.
1: unexpected failure.
2: an inconsistency is detected and the position is
rejected.
Example
let MyOperationOrSystem(ProdSystemOccurrence)
let MyResourceOcc(ResourceOccurrence)
let lAbsolutePosition(List)
let MyReferentialOcc(ResourceOccurrence)
let eReferentialType(ResourcePositionReferential)
let eApplicability(ResourcePositionApplicability)
let sPosture(String)
let iResult(Integer)
eReferentialType = "UserDefined"
eApplicability = "Operation"
sPosture = "Stand Relax"
lAbsolutePosition = List(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1000.0)
// MyOperationOrSystem, MyResourceOcc, and MyReferentialOcc are needed to be valuated before using this API
iResult = MyOperationOrSystem.AddResourcePosition(MyResourceOcc,lAbsolutePosition,MyReferentialOcc,eReferentialType,eApplicability,sPosture)
eReferentialType = "BuildUp"
eApplicability = "System"
// sPosture is optional
iResult = MyOperationOrSystem.AddResourcePosition(MyResourceOcc,lAbsolutePosition,NULL,eReferentialType,eApplicability)
AddResourcePositionInScope
Adds an absolute resource position in the context of the first upper scope.
Signature
MyOperationOrSystem.AddResourcePositionInScope(MyResourceOcc,lAbsolutePosition,MyReferentialOcc,eReferentialType,eApplicability,sPosture)
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperationOrSystem
|
In |
|
ProdSystemOccurrence |
System or operation occurrence. |
MyResourceOcc
|
In |
|
ResourceOccurrence |
The resource that must be positioned. This
resource must implement the operation or the system (directly or
indirectly). |
lAbsolutePosition |
In |
|
List
|
Absolute position of the resource to be
positioned. This list should contain 12 reals: the first
nine reals represent a 3x3 rotation matrix, the last three
reals represent translation coordinates.
|
MyReferentialOcc
|
In |
|
ObjectType |
Referential to be used for this resource. It
can be either:
- the implemented item (in this case,
ObjectType is
MfgProcessOccurrence)
- an assigned resource (in this case,
ObjectType is
ResourceOccurrence)
-
NULL.
|
eReferentialType
|
In |
|
ResourcePositionReferential |
Referential type to be used for this
resource. The following values are valid:
BuildUp
ImplementedManufacturedItem
Layout
UserDefined
FromPrevious.
|
eApplicability
|
In |
|
ResourcePositionApplicability |
Applicability to apply to the resource. The
following values are valid: |
sPosture |
In |
|
String
|
Posture or home position to apply to the
positioned resource. The value must exit on the positioned
resource. |
ReturnType
Integer
Return values:
0: the position for the resource occurrence is
successfully set on the operation/system.
1: unexpected failure.
2: an inconsistency is detected and the position is
rejected.
Example
let MyOperationOrSystem(ProdSystemOccurrence)
let MyResourceOcc(ResourceOccurrence)
let lAbsolutePosition(List)
let MyReferentialOcc(ResourceOccurrence)
let eReferentialType(ResourcePositionReferential)
let eApplicability(ResourcePositionApplicability)
let sPosture(String)
let iResult(Integer)
eReferentialType = "UserDefined"
eApplicability = "Operation"
sPosture = "Stand Relax"
lAbsolutePosition = List(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1000.0)
// MyOperationOrSystem, MyResourceOcc, and MyReferentialOcc are needed to be valuated before using this API
iResult = MyOperationOrSystem.AddResourcePositionInScope(MyResourceOcc,lAbsolutePosition,MyReferentialOcc,eReferentialType,eApplicability,sPosture)
eReferentialType = "BuildUp"
eApplicability = "System"
// sPosture is optional
iResult = MyOperationOrSystem.AddResourcePositionInScope(MyResourceOcc,lAbsolutePosition,NULL,eReferentialType,eApplicability)
GetAllPositionedResources
Retrieves the list of resources that are positioned on an operation/system, and
their corresponding values. The positions are absolute.
Signature
MyOperationOrSystem.GetAllPositionedResources(ListResourceOccs,ListAbsolutePositions,ListReferentialOccs,ListReferentialTypes,ListApplicabilites,PostureNameList) : Integer
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperationOrSystem
|
In |
|
ProdSystemOccurrence |
System or operation occurrence. |
ListResourceOccs
|
Out |
|
ResourceOccurrence |
List of positioned resource occurrences.
|
ListAbsolutePositions
|
Out |
|
List
|
List of absolute positions. Each item in
this list is also a list containing 12 reals: the first nine
reals represent a 3x3 rotation matrix, the last three reals
represent translation coordinates.
|
ListReferentialOccs
|
Out |
|
List
|
List of user defined referential occurrences
(resource, item, or null). |
ListReferentialTypes
|
Out |
|
List
|
List of referential types. Each item is a
ResourcePositionReferential. |
ListApplicabilites
|
Out |
|
List
|
List of applicability types. Each item is a
ResourcePositionApplicability. |
PostureNameList |
Out |
|
List
|
List of posture or home position names applied
to each positioned resource. |
ReturnType
Integer
Return values:
0: the resource position lists (empty or filled) are
successfully returned.
1: the operation/system is not valid.
2: there is an unexpected failure.
Example
let MyOperationOrSystem(ProdSystemOccurrence)
let ListResourceOccs(List)
let ListAbsolutePositions(List)
let ListReferentialOccs(List)
let ListReferentialTypes(List)
let ListApplicabilites(List)
let ListPostures(List)
let iResult(Integer)
// MyOperationOrSystem is needed to be valuated before using this API
// ListPostures is optional
iResult = MyOperationOrSystem.GetAllPositionedResources(ListResourceOccs,ListAbsolutePositions,ListReferentialOccs,ListReferentialTypes,ListApplicabilites,ListPostures)
GetAllRelativeResourcePositions
Retrieves the list of resources that are positioned on an operation/system and
their corresponding values stored in the context of the root session. Positions are
relative.
Signature
MyOperationOrSystem. GetAllRelativeResourcePositions(ListResourceOccs,ListRelativePositions,ListReferentialOccs,ListReferentialTypes,ListApplicabilites,PostureNameList) : Integer
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperationOrSystem
|
In |
|
ProdSystemOccurrence
|
System or operation occurrence. |
ListResourceOccs
|
Out |
|
ResourceOccurrence |
List of positioned resource occurrences.
|
ListRelativePositions
|
Out |
|
List
|
List of relative
positions. Each item in this list is also a list
containing 12 reals: the first nine reals represent a 3x3
rotation matrix, the last three reals represent translation
coordinates.
|
ListReferentialOccs |
In |
|
List
|
List of user-defined referential occurrences
(resource, item, or null). |
ListReferentialTypes |
Out |
|
List
|
List of referential types. Each item is a
ResourcePositionReferential. |
ListApplicabilites |
Out |
|
List
|
List of applicability types. Each item is a
ResourcePositionApplicability. |
PostureNameList |
Out |
|
List
|
List of posture or home position names applied
to each positioned resource. |
ReturnType
Integer
Return values:
0: the resource position lists (empty or filled) are
successfully returned.
1: the operation/system is not valid.
2: there is an unexpected failure.
5: additional usage. All relative positions positions
in the context of the root session are retrieved. There are others
positions in the context of the first upper scope. Use
GetAllRelativeResourcePositionsInScope (..) to
retrieve them.
Example
let MyOperationOrSystem(ProdSystemOccurrence)
let ListResourceOccs(List)
let ListRelativePositions(List)
let ListReferentialOccs(List)
let ListReferentialTypes(List)
let ListApplicabilites(List)
let ListPostures(List)
let iResult(Integer)
// MyOperationOrSystem is needed to be valuated before using this API
// ListPostures is optional
iResult = MyOperationOrSystem.GetAllRelativeResourcePositions(ListResourceOccs,ListRelativePositions,ListReferentialOccs,ListReferentialTypes,ListApplicabilites,ListPostures)
GetAllRelativeResourcePositionsInScope
Retrieves the list of resources that are positioned on an operation/system and
their corresponding values in the context of the first upper scope. Positions are
relative.
Signature
MyOperationOrSystem. GetAllRelativeResourcePositionsInScope(ListResourceOccs,ListRelativePositions,ListReferentialOccs,ListReferentialTypes,ListApplicabilites,PostureNameList) : Integer
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperationOrSystem
|
In |
|
ProdSystemOccurrence
|
System or operation occurrence. |
ListResourceOccs
|
Out |
|
ResourceOccurrence |
List of positioned resource occurrences.
|
ListRelativePositions
|
Out |
|
List
|
List of relative
positions. Each item in this list is also a list
containing 12 reals: the first nine reals represent a 3x3
rotation matrix, the last three reals represent translation
coordinates.
|
ListReferentialOccs |
In |
|
List
|
List of user-defined referential occurrences
(resource, item, or null). |
ListReferentialTypes |
Out |
|
List
|
List of referential types. Each item is a
ResourcePositionReferential. |
ListApplicabilites |
Out |
|
List
|
List of applicability types. Each item is a
ResourcePositionApplicability. |
PostureNameList |
Out |
|
List
|
List of posture or home position names applied
to each positioned resource. |
ReturnType
Integer
Return values:
0: the resource position lists (empty or filled) are
successfully returned.
1: the operation/system is not valid.
2: there is an unexpected failure.
4: Additional API usage. All relative positions
expressed in the context of the first upper scope are retrieved.
However, there are extra positions expressed in the context of the root
session. Use GetAllRelativeResourcePositions (...)
Example
let MyOperationOrSystem(ProdSystemOccurrence)
let ListResourceOccs(List)
let ListRelativePositions(List)
let ListReferentialOccs(List)
let ListReferentialTypes(List)
let ListApplicabilites(List)
let ListPostures(List)
let iResult(Integer)
// MyOperationOrSystem is needed to be valuated before using this API
// ListPostures is optional
iResult = MyOperationOrSystem.GetAllRelativeResourcePositionsInScope(ListResourceOccs,ListRelativePositions,ListReferentialOccs,ListReferentialTypes,ListApplicabilites,ListPostures)
GetAllSubResourceRelativePositions
Retrieves the list of subresources that are positioned on an operation/system and
their corresponding values. Positions are relative.
Signature
MyOperationOrSystem. GetAllSubResourceRelativePositions(ListSubResourceOccs,ListRelativePositions) : Integer
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperationOrSystem
|
In |
|
ProdSystemOccurrence
|
System or operation occurrence. |
ListSubResourceOccs
|
Out |
|
List |
List of positioned subresource
occurrences. Each subresource can either be:
- A resource (in this case, its type is
ResourceOccurrence)
- A product directly or indirectly aggregated under
the resource (in this case, its type is
Productoccurrence).
|
ListRelativePositions
|
Out |
|
List
|
List of relative positions. Each item in
this list is also a list containing 12 reals: the first nine
reals represent a 3x3 rotation matrix, the last three reals
represent translation coordinates.
|
ReturnType
Integer
Return values:
0: the subresource (empty or filled) and subresource
positon (empty or filled) are successfully returned.
1: the operation/system is not valid.
2: there is an unexpected failure.
Example
let MyOperationOrSystem(ProdSystemOccurrence)
let ListSubResourceOccs(List)
let ListRelativePositions(List)
let oResult(Integer)
// Get subresources and their relative positions defined on MyOperationOrSystem
oResult = MyOperationOrSystem.GetAllSubResourceRelativePositions (ListSubResourceOccs, ListRelativePositions)
GetBuildupRelativePosition
For a system or operation, retrieves
the position of the buildup, which is the root item relative to the assigned
resource.
Signature
MySysOperation.GetBuildupRelativePosition(ReferentialResourecOcc,RelativeTransformation) : Integer
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MySysOperation |
In |
|
ProdSystemOccurrence
|
System or operation occurrence. |
ReferentialResourecOcc |
Out |
|
ResourceOccurrence |
Resource occurrence assigned to the system or
operation the position is relative to. |
RelativeTransformation |
Out |
|
List
|
Position of root product relative to the
resource occurrence. This list contains 12 reals: the first
nine reals represent a 3x3 rotation matrix, the last three
reals represent translation coordinates.
|
ReturnType
Integer
Return values:
0: the position is successfully set.
1: unexpected failure.
4: no position is defined for this system or
operation.
5: Incorrect usage: You are attempting to retrieve the
buildup position, stored in the context of the root item, using an API
that operates on the first upper-scoped item. Use
GetBuildupRelativePositionInScope (..)
Example
let MySystemOperation(ProdSystemOccurrence)
let ReferentialOcc (ResourceOccurrence)
let lRelativePosition(List)
let iResult(Integer)
// MySystemOperation
iResult = MySystemOperation.GetBuildupRelativePosition(ReferentialOcc,lRelativePosition)
GetBuildupRelativePositionInScope
For a system or operation, retrieves the position of the buildup, which is the
first upper-scoped item relative to the assigned resource.
Signature
MyOperationOrSystem.GetBuildupRelativePositionInScope(ReferentialResourceOcc,lRelativePosition) : Integer
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperationOrSystem |
In |
|
ProdSystemOccurrence
|
System or operation occurrence. |
ReferentialResourecOcc |
Out |
|
ResourceOccurrence |
Resource occurrence assigned to the system or
operation the position is relative to. |
lRelativePosition |
Out |
|
List
|
Position of first upper scoped item relative
to the resource occurrence. This list contains 12 reals: the
first nine reals represent a 3x3 rotation matrix, the last
three reals represent translation coordinates.
|
ReturnType
Integer
Return values:
0: The position is successfully set.
1: Unexpected failure.
4: No position is defined for this system or
operation.
5: Incorrect usage: You are attempting to retrieve the
buildup position, stored in the context of the root item, using an API
that operates on the first upper-scoped item. Use
GetBuildupRelativePosition (..)
Example
let MySystemOperation(ProdSystemOccurrence)
let MyReferentialOcc(ResourceOccurrence)
let lRelativePosition(List)
let iResult(Integer)
lRelativePosition = List(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1000.0)
// MySystemOperation and MyReferentialOcc needed to be valuated before using this API
iResult = MySystemOperation.GetBuildupRelativePositionInScope (MyReferentialOcc,lRelativePosition)
GetPartPositionRelativeToParentItem
Gets the position of the specified manufactured item relative to its direct
parent.
Signature
MyOperation.GetPartPositionRelativeToParentItem(lManufacturedItemOcc,lRelativePosition) : Integer
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperation
|
In |
|
ProdSystemOccurrence
|
-
|
lManufacturedItemOcc |
In |
|
List |
-
|
lRelativePosition |
In |
|
List
|
-
|
ReturnType
Integer
Return values:
0: The position is successfully retrieved
1: Unexpected failure.
2: No part position is retrieved
5: Incorrect usage: You are attempting to retrieve the
part position—stored in the context of the first upper scope item—using
an API that relies on the parent item. Use
GetRelativePositionForManufacturedItems (..)
Example
let MySystemOperation(ProdSystemOccurrence)
let MyReferentialOcc(ResourceOccurrence)
let lRelativePosition(List)
let iResult(Integer)
lRelativePosition = List(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1000.0)
// MySystemOperation and MyReferentialOcc needed to be valuated before using this API
iResult = MySystemOperation.GetBuildupRelativePositionInScope (MyReferentialOcc,lRelativePosition)
GetPositionedManufacturedItems
Retrieves manufactured items for which position is set on the specified
operation.
Signature
MyOperation.GetPositionedManufacturedItems(lManufacturedItems)
Example
let MyOperation(ProdSystemOccurrence)
let lManufacturedItems(List)
// MyOperation is needed to be valuated before using this API
iResult = MyOperation.GetPositionedManufacturedItems(lManufacturedItems)
GetPositionPrimaryResourceUsageList
Provides the list of primary resource usages on the specified operation. Each
item of the list can be used with
SetPositionCurrentPrimaryResource.
Signature
MyOperation.GetPositionPrimaryResourceList(MyPrimaryResourceOccList)
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperation |
In |
|
ProdSystemOccurrence
|
Operation on which the resource position is
defined. |
MyPrimaryResourceOccList |
Out |
|
List
|
Primary resource usage occurrence list defined
for the header operation. |
ReturnType
Integer
Return values:
0: the output list contains at least one item.
1: unexpected error
2: the output list is empty.
3: the operation is not consistent with the capable
resource model.
Example
//let MyOperation(ProdSystemOccurrence)
let MyPrimaryResourceOccList(List)
let iResult(Integer)
// MyOperation needed to be valuated before using this API
iResult = MyOperation. GetPositionPrimaryResourceUsageList (MyPrimaryResourceOccList)
let PrimaryResource (ResourceOccurrence)
let i (Integer)
i = 1
for i while i <= MyPrimaryResourceOccList.Size()
{
PrimaryResource = MyPrimaryResourceOccList[i]
Notify( " PrimaryResource usage [ #/ # ] : ", i,MyPrimaryResourceOccList.Size(), PrimaryResource.Name )
}
GetPositionSecondaryResourceUsageList
Provides the list of secondary resource usages on the specified operation for a
given primary resource usage.
Signature
MyOperation.GetPositionSecondaryResourceList(MyPrimaryResourceUsage , MySecondaryResourceOccList)
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperation |
In |
|
ProdSystemOccurrence
|
Operation on which the resource position is
defined. |
MyPrimaryResourceUsage |
In |
|
ResourceOccurrence |
Primary resource occurrence usage defined for
the header operation. |
MySecondaryResourceOccList |
Out |
|
List
|
Secondary resource usage occurrence list
defined for the header operation. |
ReturnType
Integer
Return values:
0: the output list contains at least one item.
1: unexpected error
2: the output list is empty.
3: the operation, or resource, is not consistent with
the capable resource model.
Example
//let MyOperation(ProdSystemOccurrence)
//let MyPrimaryResourceUsage (ResourceOccurrence)
let iResult(Integer)
let MySecondaryResourceOccList(List)
// MyOperation and MyPrimaryResourceUsage needed to be valuated before using this API
iResult = MyOperation. GetPositionSecondaryResourceUsageList (MyPrimaryResourceUsage , MySecondaryResourceOccList)
let SecondaryResource (ResourceOccurrence)
let i (Integer)
i = 1
for i while i <= MySecondaryResourceOccList.Size()
{
SecondaryResource= MySecondaryResourceOccList [i]
Notify( " SecondaryResource usage [ #/ # ] : ", i, MySecondaryResourceOccList.Size(), SecondaryResource.Name)
}
GetRelativePositionForManufacturedItems
Gets the position of the specified manufactured item relative to the first uppor
scope.
RemoveAllPartPositions
Removes all manufactured items and corresponding positions set on this operation
occurrence.
Signature
MyOperation.RemoveAllPartPositions()
Example
let MyOperation(ProdSystemOccurrence)
// MyOperation is needed to be valuated before using this API
iResult = MyOperation.RemoveAllPartPositions()
RemoveAllResourcePositions
Removes all resource positions defined on the specified operation/system.
Signature
MyOperationOrSystem.RemoveAllResourcePositions() : Integer
ReturnType
Integer
Return values:
0: the resource positions defined on the
operation/system are successfully removed.
1: unexpected failure.
4: false. There is no position to remove.
Example
let MyOperationOrSystem(ProdSystemOccurrence)
let iResult(Integer)
// MyOperationOrSystem is needed to be valuated before using this API
iResult = MyOperationOrSystem.RemoveAllResourcePositions()
RemoveBuildupRelativePosition
Removes the buildup position defined on this operation/system.
Signature
MySysOperation.RemoveBuildupRelativePosition() : Integer
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MySysOperation |
In |
|
ProdSystemOccurrence
|
System or operation occurrence. |
ReturnType
Integer
Return values:
0: the buildup position defined on the operation/system
is successfully removed.
1: unexpected failure.
4: false. There is no position to remove.
Example
let MySystemOperation(ProdSystemOccurrence)
let iResult(Integer)
// MySystemOperation
iResult = MySystemOperation. RemoveBuildupRelativePosition ()
RemovePositionForManufacturedItems
Removes positions for the specified manufactured items
RemoveResourcePosition
Removes a single resource position.
Signature
MyOperationOrSystem.RemoveResourcePosition(MyResourceOcc)
Example
let MyOperationOrSystem(ProdSystemOccurrence)
let MyResourceOcc(ResourceOccurrence)
let iResult(Integer)
// MyOperationOrSystem and MyResourceOcc are needed to be valuated before using this API
iResult = MyOperationOrSystem.RemoveResourcePosition(MyResourceOcc)
RemoveSubResourceRelativePosition
Removes a single subresource position.
Signature
MyOperationOrSystem.RemoveSubResourceRelativePosition(MySubResourceOcc): Integer
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperationOrSystem
|
In |
|
ProdSystemOccurrence |
System or operation occurrence where the
resource positions are defined. |
MySubResourceOcc
|
In |
|
ObjectType |
List of positioned subresource
occurrences. Each subresource can either be:
- A resource (in this case, its type is
ResourceOccurrence).
- A product directly or indirectly aggregated under
the resource (in this case, its type is
ProductOccurrence).
|
ReturnType
Integer
Return values:
0: the position of the subresource defined on the
operation/system is successfully sremoved.
1: the operation/system is not valid.
2: there is an unexpected failure.
Example
let MyOperationOrSystem(ProdSystemOccurrence)
let MySubResourceOcc(ProductOccurrence)
let oResult(Integer)
// Remove the position of MySubResourceOcc defined on MyOperationOrSystem
oResult = MySystemOperation.RemoveSubResourceRelativePosition(MySubResourceOcc)
SetBuildupRelativePosition
For a system or an operation, set or updated the position for the buildup, which
is the root item relative to the assigned
resource.
Signature
MySysOperation.SetBuildupRelativePosition(ReferentialResourecOcc,RelativeTransformation) : Integer
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MySysOperation |
In |
|
ProdSystemOccurrence
|
System or operation occurrence. |
ReferentialResourecOcc |
In |
|
ResourceOccurrence |
Resource occurrence assigned to the system or
operation the position is relative to. |
RelativeTransformation |
In |
|
List
|
Position of root product relative to the
resource occurrence. This list contains 12 reals: the first
nine reals represent a 3x3 rotation matrix, the last three
reals represent translation coordinates. |
ReturnType
Integer
Return values: Integer
0: the position is successfully set or replaced.
1: wrong argument, the resource is not assigned to the
system or operation. The position is not set or replaced.
Example
let MySystemOperation(ProdSystemOccurrence)
let MyReferentialOcc(ResourceOccurrence)
let lRelativePosition(List)
let iResult(Integer)
lRelativePosition = List(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1000.0)
// MySystemOperation and MyReferentialOcc needed to be valuated before using this API
iResult = MySystemOperation.SetBuildupRelativePosition(MyReferentialOcc,lRelativePosition)
SetBuildupRelativePositionInScope
For a system or an operation, set or update the position of the buildup, which is
the first upper-scoped item relative to the assigned resource.
Signature
MyOperationOrSystem.SetBuildupRelativePositionInScope(ReferentialResourecOcc,lRelativePosition) : Integer
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperationOrSystem |
In |
|
ProdSystemOccurrence
|
System or operation occurrence. |
ReferentialResourecOcc |
In |
|
ResourceOccurrence |
Resource occurrence assigned to the system or
operation the position is relative to. |
lRelativePosition |
In |
|
List
|
Position of the first upper scoped item
relative to the resource occurrence. This list contains 12
reals: the first nine reals represent a 3x3 rotation matrix,
the last three reals represent translation
coordinates. |
ReturnType
Integer
Return values:
0: the position is successfully set or replaced.
1: wrong argument, the resource is not assigned to the
system or operation. The position is not set or replaced.
Example
let MySystemOperation(ProdSystemOccurrence)
let MyReferentialOcc(ResourceOccurrence)
let lRelativePosition(List)
let iResult(Integer)
lRelativePosition = List(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1000.0)
// MySystemOperation and MyReferentialOcc needed to be valuated before using this API
iResult = MySystemOperation.SetBuildupRelativePositionInScope (MyReferentialOcc,lRelativePosition)
SetPartPositionRelativeToParentItem
Sets the position for the specified manufactured item relative to its direct
parent.
Notes:
- The added items should be under the first upper scope.
- When the operation occurrence implements one or more Manufactured Items:
The list i_ListManufacturedItemOccs must include only items that are
actually implemented by the operation. The Position is then
automatically applied to all of these implemented items.
It is
sufficient to include just one of the implemented items in
i_ListManufacturedItemOccs; the system will automatically position
all associated items.
- When the operation occurrence does not implement any Manufactured Items:
The Position is applied to all items in i_ListManufacturedItemOccs.
Signature
MyOperation.SetPartPositionRelativeToParentItem(lManufacturedItemOcc,lRelativePosition)
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
i_MyOperation |
In |
|
ProdSystemOccurrence
|
-
|
lManufacturedItemOcc |
In |
|
List |
-
|
lRelativePosition |
In |
|
List
|
-
|
ReturnType
Integer
Return values:
0: The position is successfully applied
1: Unexpected failure.
2: The position is not applied
Example
let MyOperation(ProdSystemOccurrence)
let lManufacturedItemOcc(List)
let lRelativePosition(List)
let iResult(Integer)
lRelativePosition = List(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1000.0)
// MyOperation and lManufacturedItemOcc are needed to be valuated before using this API
iResult = MyOperation. SetPartPositionRelativeToParentItem (lManufacturedItemOcc,lRelativePosition)
SetPositionCurrentPrimaryResource
Sets the current primary resource usage for all calls to Resource positions in
the script. This current resource usage can be changed by a next call to the method.
This is valid only in a model supporting resource usages.
Signature
MyOperation.SetPositionCurrentPrimaryResource(MyPrimaryResourceOcc)
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperation |
In |
|
ProdSystemOccurrence
|
Operation on which the resource position is
defined. |
MyPrimaryResourceUsage |
In |
|
ResourceOccurrence |
Primary resource occurrence usage defined for
header operation |
ReturnType
Integer
Return values:
0: the primary resource usage is successfully set on
the operation or system.
1: unexpected error
2: the primary resource as usage is not associated with
the operation.
Example
let MyOperation(ProdSystemOccurrence)
let MyPrimaryResourceOcc (ResourceOccurrence)
let MyResourceOcc(ResourceOccurrence)
let lAbsolutePosition(List)
let MyReferentialOcc(ResourceOccurrence)
let eReferentialType(ResourcePositionReferential)
let eApplicability(ResourcePositionApplicability)
let sPosture(String)
let iResult(Integer)
eReferentialType = "UserDefined"
eApplicability = "HeaderOperation"
sPosture = "HomePosition1"
lAbsolutePosition = List(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1000.0)
// MyOperation, MyPrimaryResourceOcc ,MyResourceOcc, and MyReferentialOcc are needed to be valuated before using this API
// HomePosition1 must be a home position name valid for MyResourceOcc
iResult = MyOperation.SetPositionCurrentPrimaryResource(MyPrimaryResourceOcc)
iResult = MyOperation.AddResourcePosition(MyResourceOcc,lAbsolutePosition,MyReferentialOcc,eReferentialType,eApplicability,sPosture)
SetRelativePositionForManufacturedItems
Sets the position for the specified manufactured item relative to the first upper
scope.
Signature
MyOperation.SetRelativePositionForManufacturedItems(lManufacturedItemOcc,lRelativePosition)
Arguments
| Name |
Input or Output |
Required |
Type |
Comment |
MyOperation |
In |
|
ProdSystemOccurrence
|
- |
lManufacturedItemOcc |
In |
|
List
|
- |
lRelativePosition |
In |
|
List
|
- |
Example
let MyOperation(ProdSystemOccurrence)
let lManufacturedItemOcc(List)
let lRelativePosition(List)
let iResult(Integer)
lRelativePosition = List(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1000.0)
// MyOperation and lManufacturedItemOcc are needed to be valuated before using this API
iResult = MyOperation.SetRelativePositionForManufacturedItems(lManufacturedItemOcc,lRelativePosition)
|