Weight Analysis

Some parts have weight attributes with values that can change as they are being operated. This package lets you manage such weight attributes.

You can use the first two methods to manage the computed weight and the four other ones to manage the declared weight.

This page discusses:

Create or Update Computed Weight (Desktop Client)

CreateOrUpdateComputedWeight() is an EKL method that starts a weight computation (if you did not compute it yet), or updates the computed weight (if the weight is not up to date).

This method is available on the desktop client, and applies to the VPMReference types. It results in the following Boolean:

  • True: the computed weight is correctly defined on the VPMReference, and is up to date.
  • False: the computed weight is not correctly defined.

    Example: You do not have the rights to edit the VPMReference (from a P&O perspective).

In the product properties, a Computed characteristics extension type is created.

Retrieve Computed Weight Data (Desktop Client)

Inheritance Path

ObjectType
 Feature
  PLMEntity
   PLMCoreReference
    VPMReference
     WCGEquivalentComputedExt

Attributes

Name Type Comment
V_WCG_Mass Real Represents the weight of the object (in kg).
V_WCG_COGx Real Represents the x value (in m) of the center of gravity (local axis of the object).
V_WCG_COGy Real Represents the y value (in m) of the center of gravity (local axis of the object).
V_WCG_COGz Real Represents the z value (in m) of the center of gravity (local axis of the object).
V_WCG_Comment String Adds a comment.

This attribute is writable.

V_WCG_Moment_X_axis Real Represents the moment of inertia along the x-axis (in kg.m2).
V_WCG_Moment_Y_axis Real Represents the moment of inertia along the y-axis (in kg.m2).
V_WCG_Moment_Z_axis Real Represents the moment of inertia along the z-axis (in kg.m2).
V_WCG_Product_Inertia_X_Y_axis Real Represents the product of inertia regarding the x and y-axis (in kg.m2)
V_WCG_Product_Inertia_X_Z_axis Real Represents the product of inertia regarding the x and z-axis (in kg.m2)
V_WCG_Product_Inertia_Y_Z_axis Real Represents the product of inertia regarding the y and z-axis (in kg.m2)
V_WCG_Surface Real Represents the surface of the object (in m2).
V_WCG_Volume Real Represents the volume of the object (in m3).

Example

Message("#",myWeight.V_WCG_COGx)

Create Declared Weight Extensions (Desktop Client)

CreateDeclaredWeightExtensions() is an EKL method that creates the two following declared weight extensions on the VPMReference (if you did not define them yet):

  • WCGEquivalentDeclaredWeightExt
  • WCGEquivalentDeclaredInertiaExt

This method is available on the desktop client, and applies to the VPMReference types. It results in the following Boolean:

  • True: the extensions are correctly defined on the VPMReference.
  • False: the extensions are not correctly defined.

    Example: You do not have the rights to edit the VPMReference (from a P&O perspective).

Note: If you use a business rule to declare weight extensions on a VPMReference, reopen the product to see the weight extension attributes.

Create Declared Weight Extensions (Server)

CreateDeclaredWeightExtension() is an EKL method that creates the two following declared weight extensions on the VPMReference (if you did not define them yet):

  • WCGEquivalentDeclaredWeightExt
  • WCGEquivalentDeclaredInertiaExt

This method is available on the server. It results in the following Boolean:

  • True: the extensions are correctly defined on the VPMReference.
  • False: the extensions are not correctly defined.

    Example: You do not have the rights to edit the VPMReference (from a P&O perspective).

Note: If you use a business rule (server-side scope) to declare weight extensions on a VPMReference, reopen the product to see the weight extension attributes.

Important: You must have access to the Weight and Balance Analyst (KPK) role to create declared weight extensions on the server side.

Signature

VPMReference.CreateDeclaredWeightExtensions() : Boolean

ReturnType

Boolean

Retrieve or Define Declared Weight Data (Desktop Client)

The declared weight data correspond to user values defined for any entity of the product structure.

It includes data related to the weight and its tolerance.

These data are available on the desktop client, and are saved in an extension called WCGEquivalentDeclaredWeightExt, which is attached to the VPMReference.

Inheritance Path

ObjectType
 Feature
  PLMEntity
   PLMCoreReference
    VPMReference
     WCGEquivalentDeclaredWeightExt

Attributes

Name Type Comment
V_WCG_Declared_Mass Real Represents the declared weight of the object (in kg). This attribute is writable.
V_WCG_Declared_Mass_Margin Real Represents the declared weight error margin of the object (in kg). This attribute is writable.

Example

Message("#",myWeight.V_WCG_Declared_Mass)
myWeight.V_WCG_Declared_Mass=40

Retrieve or Define Declared Inertia Data (Desktop Client)

Inheritance Path

ObjectType
 Feature
  PLMEntity
   PLMCoreReference
    VPMReference
     WCGEquivalentDeclaredInertiaExt

Attributes

Name Type Comment
V_WCG_Declared_COGx Real Represents the declared x value (in m) of the center of gravity (local axis of the object).

This attribute is writable.

V_WCG_Declared_COGy Real Represents the declared y value (in m) of the center of gravity (local axis of the object).

This attribute is writable.

V_WCG_Declared_COGz Real Represents the declared z value (in m) of the center of gravity (local axis of the object).

This attribute is writable.

V_WCG_Declared_Comment String Adds a comment.

This attribute is writable.

V_WCG_Declared_Moment_X_axis Real Represents the declared moment of inertia along the x-axis (in kg.m2).

This attribute is writable.

V_WCG_Declared_Moment_Y_axis Real Represents the declared moment of inertia along the y-axis (in kg.m2).

This attribute is writable.

V_WCG_Declared_Moment_Z_axis Real Represents the declared moment of inertia along the z-axis (in kg.m2).

This attribute is writable.

V_WCG_Declared_Product_Inertia_X_Y_axis Real Represents the declared product of inertia regarding the x and y-axis (in kg.m2).

This attribute is writable.

V_WCG_Declared_Product_Inertia_X_Z_axis Real Represents the declared product of inertia regarding the x and z-axis (in kg.m2).

This attribute is writable.

V_WCG_Declared_Product_Inertia_Y_Z_axis Real Represents the declared product of inertia regarding the y and z-axis (in kg.m2).

This attribute is writable.

V_WCG_Declared_Surface Real Represents the declared surface of the object (in m2).

This attribute is writable.

V_WCG_Declared_Volume Real Represents the declared volume of the object (in m3).

This attribute is writable.

Example

Message("#",myWeight.V_WCG_Declared_COGx)
myWeight.V_WCG_Declared_COGx=30.5