-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get the center of gravity coordinates of parts? #14
Comments
Just cloned the repo and run the tests. That test does not fail here. |
You mean the last method in your test file? |
I think you're talking about this pycatia/tests/test_measurable.py Line 216 in 1cb3dde
This isn't the last test and while I commented in the code that it failed all the tests do pass (this test is commented out). I wrote these tests sometime ago so I'd forgotten about it and your posts confused me. I'll have a look at this and see if i can solve it. |
I'm really talking about this. I set part_body as reference but couldn't get the center. |
This works for me.
|
Does this method not apply in the products documentation? |
I want to get the center of gravity coordinates of each part in an assembly, and judge the relationship between each part through some algorithms. And I'm sorry that I didn't tell you that I used Visual Basic 6.0 to do CATIA development. Thank you for your reply. You don't need to help me. Let me find a way for myself. If I solve it, I'll let you know at the first time. |
I've just pushed some updates to the Master branch that'll help you do what I think you want. Take a look at example_10.py. |
I think I still need your help. This is my code written in VB: Part1 is a part body, I can get the volume of part1 in this way. But I use GetCOG to get the center of gravity coordinates and return null values. I don't know where the problem is. |
Where is your python code? VB code is no help to me. |
I'm closing this as it doesn't seem to be related to pycatia. |
I found that your test failed in your test file. Did you find any new methods?Appreciate
The text was updated successfully, but these errors were encountered: