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.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectStrComputeServicesRepresents a structure service object.Structure service object extracts properties on structure objects. Methods ofthis interface are computing the mass properties of the main body (PartBody) ofeach 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:iProductThe selected structure objectoXThe x coordinate of the center of gravityoYThe y coordinate of the center of gravityoZThe 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 doubleReturns the length to cut for a member object.Parameters:iProductThe 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 doubleReturns the mass for a structure object.Parameters:iProductThe 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 CATBSTRReturns the material name for a structure object.Parameters:iProductThe selected structure objectoNameThe 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 doubleReturns the surface for a structure object.Parameters:iProductThe selected structure object
- Parameters:
i_product (Product) –
- Return type:
float