CheeseMaker13
Aerospace
- Sep 25, 2012
- 42
Hi Guys,
I'm currently writing a script to extract Inertial Data from a product of numerous parts.
The problem I'm coming up against is that I need to run CATIA.StartCommand ("Measure Inertia") and once I've got all the data from the Parameters fields (E.g. "Gx = oProduct.Parameters.Item("Gx").Value") in VBA I need to then close it, select the next part and run the command again.
Currently, without closing the Inertia Window, I get a load of Gx Parameters and it picks the first that it finds.
Is there a way to either:
A) Close the Measure Inertia window.
B) Extract CofG, Volume and Stock Size data (Volume, Gx, Gy, Gz, BBLx, BBLy, BBLz) without using the Inertia Window.
I've researched A) to death including trying to hit enter to close the window.
B) I'm going to attempt now but I have a feeling I've attempted that before.
Thanks!!
I'm currently writing a script to extract Inertial Data from a product of numerous parts.
The problem I'm coming up against is that I need to run CATIA.StartCommand ("Measure Inertia") and once I've got all the data from the Parameters fields (E.g. "Gx = oProduct.Parameters.Item("Gx").Value") in VBA I need to then close it, select the next part and run the command again.
Currently, without closing the Inertia Window, I get a load of Gx Parameters and it picks the first that it finds.
Is there a way to either:
A) Close the Measure Inertia window.
B) Extract CofG, Volume and Stock Size data (Volume, Gx, Gy, Gz, BBLx, BBLy, BBLz) without using the Inertia Window.
I've researched A) to death including trying to hit enter to close the window.
B) I'm going to attempt now but I have a feeling I've attempted that before.
Thanks!!