Skip to content
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 correct translation and rotation of part in step file #1364

Open
leoghizoni opened this issue Aug 22, 2024 · 0 comments
Open

How to get correct translation and rotation of part in step file #1364

leoghizoni opened this issue Aug 22, 2024 · 0 comments

Comments

@leoghizoni
Copy link

leoghizoni commented Aug 22, 2024

I'm trying to implement a function to retrieve the translation and rotation of the parts in an assembly step file. I found the function read_step_file_with_names_colors(filename) inside DataExchange.py with the locations commented, and implemented in my code. When I get the numbers, they match perfectly with the parameters shown in a CAD program e.g. FreeCAD.
However, the positions are exactly the same for different parts, both in FreeCAD data and in my output, which I know not to be true, as they are shown in FreeCAD in different locations. I've read something in the internet about the vertices of a part actually being in the correct positions, but I have no idea how to implement that.
Is there a way to actually getting the correct position of a part in the "world" of the assembly?
Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants