Create a Line
You can create the line.
Access the Part Design workbench, create any sketch in the yz plane, then extrude this sketch to create a pad. If need be, refer to the Part Design User's Guide.
Create a line intended to be used as an inertia
axis. To do so, click Formula
,
select Line in New Parameter of type scrolling
list, then click New Parameter of type.

Determine the Inertia Axis of the Pad
You can determine the intertia axis.
Select the line you have created (PartBody.1\Line.1).
Click Add Formula and add the formula
below in the editor:
PartBody.1\Line.1
= inertiaAxis(3,PartBody)
Click OK in the Formulas dialog box.
The inertia axis is displayed in the geometry area.
Back to
.
Create three length type parameters: X, Y and Z.

Retrieve the Coordinates
You can retrieve the coordinates.
Retrieve the coordinates of the point located at
the intersection of the inertia axis and the 'yz plane'. To do so,
create the formulas below:
X=intersect(Geometrical Set.1\Line.1,
'yz plane').coord(1)
Y=intersect(Geometrical Set.1\Line.1,
'yz plane').coord(2)
Z=intersect(Geometrical Set.\Line.1,
'yz plane').coord(3)
You get the intersect function from the Wireframe
constructors and the point.coord method from the Measures
item of the dictionary.
Check the value displayed in the specification tree
as well as in the Formulas dialog box.
|