davidetwo
Computer
- Dec 7, 2004
- 2
Hi all!
I hope you can help me about a problem on programming solidworks.I'm sorry if my english is not clear: i'm italian.
I need to retrieve the "center of mass" from a partdoc or a subassembly in an assembly document.
Possibilities are two:
1 - Select a component or a subassembly in an assembly document and retrieve center of mass and the mass.
2 - Select more than one part or subassembly and get the "common center of mass" of the objects.
I tried to use examples on the API-help of SW and on the solidworks site's but at least i was able to get the center of mass on selection of one component.The data i have retrieved are similar to those who are retrieved from the solidworks toolsmassprops, but it can be ok!
The problem is the multiple selection:i get points that are totally wrong.
I hope you understand and that someone can help me to solve this problem.
Thank you!Bye
I hope you can help me about a problem on programming solidworks.I'm sorry if my english is not clear: i'm italian.
I need to retrieve the "center of mass" from a partdoc or a subassembly in an assembly document.
Possibilities are two:
1 - Select a component or a subassembly in an assembly document and retrieve center of mass and the mass.
2 - Select more than one part or subassembly and get the "common center of mass" of the objects.
I tried to use examples on the API-help of SW and on the solidworks site's but at least i was able to get the center of mass on selection of one component.The data i have retrieved are similar to those who are retrieved from the solidworks toolsmassprops, but it can be ok!
The problem is the multiple selection:i get points that are totally wrong.
I hope you understand and that someone can help me to solve this problem.
Thank you!Bye