pycatia.structure_interfaces.str_compute_services

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357

Warning

The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.

class pycatia.structure_interfaces.str_compute_services.StrComputeServices(com_object)

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
StrComputeServices

Represents a structure service object.
Structure service object extracts properties on structure objects. Methods of
this interface are computing the mass properties of the main body (PartBody) of
each Structure Object (Member and Plate)
get_center_of_gravity(i_product: Product, o_x: float, o_y: float, o_z: float) None

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Sub GetCenterOfGravity(Product iProduct,
double oX,
double oY,
double oZ)

Retreive the center of gravity for a structure object.

Parameters:

iProduct
The selected structure object
oX
The x coordinate of the center of gravity
oY
The y coordinate of the center of gravity
oZ
The z coordinate of the center of gravity
Parameters:
  • i_product (Product) –

  • o_x (float) –

  • o_y (float) –

  • o_z (float) –

Return type:

None

get_length(i_product: Product) float

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func GetLength(Product iProduct) As double

Returns the length to cut for a member object.

Parameters:

iProduct
The selected structure object
Parameters:

i_product (Product) –

Return type:

float

get_mass(i_product: Product) float

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func GetMass(Product iProduct) As double

Returns the mass for a structure object.

Parameters:

iProduct
The selected structure object
Parameters:

i_product (Product) –

Return type:

float

get_material_name(i_product: Product) str

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func GetMaterialName(Product iProduct) As CATBSTR

Returns the material name for a structure object.

Parameters:

iProduct
The selected structure object
oName
The name of the material
Parameters:

i_product (Product) –

Return type:

str

get_surface(i_product: Product) float

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func GetSurface(Product iProduct) As double

Returns the surface for a structure object.

Parameters:

iProduct
The selected structure object
Parameters:

i_product (Product) –

Return type:

float

get_volume(i_product: Product) float

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func GetVolume(Product iProduct) As double

Returns the volume for a structure object.

Parameters:

iProduct
The selected structure object
Parameters:

i_product (Product) –

Return type:

float

get_wet_area(i_product: Product) float

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func GetWetArea(Product iProduct) As double

Returns the wet area for a structure object.

Parameters:

iProduct
The selected structure object
Parameters:

i_product (Product) –

Return type:

float