camahiahua
Automotive
- Nov 16, 2010
- 4
Hi everyone,
Does anybody knows hot to get the inertia matrix of a CATPart but referred to a certain Axis System. I Just can obtain the Inertia Matrix referred to the principal Axis System of the CATPart. This is the code I have been using in order to accoplish this.
Set Document = CATIA.ActiveDocument
Set TheSPAWorkbench = Document.GetWorkbench("SPAWorkbench")
Set Inertias = TheSPAWorkbench.Inertias
Set Inertia = Inertias.Add(MyPart)
Dim Matrix(8)
Inertia.GetInertiaMatrix Matrix
Is there a way to obtain this or I have somehow to do the transformation manually???
Thanks in Advance
Does anybody knows hot to get the inertia matrix of a CATPart but referred to a certain Axis System. I Just can obtain the Inertia Matrix referred to the principal Axis System of the CATPart. This is the code I have been using in order to accoplish this.
Set Document = CATIA.ActiveDocument
Set TheSPAWorkbench = Document.GetWorkbench("SPAWorkbench")
Set Inertias = TheSPAWorkbench.Inertias
Set Inertia = Inertias.Add(MyPart)
Dim Matrix(8)
Inertia.GetInertiaMatrix Matrix
Is there a way to obtain this or I have somehow to do the transformation manually???
Thanks in Advance