Change origin in STEP file
Pauli Lindholm
I have a general problem: I have STEP files whose origin is wrong from a usage point of view.
I need to create a program to move the origin. Is it possible with Eyeshot?
0
Comments
Can you do this with Eyeshot ? Yes
Do you need to create a program just for that ? No, any software that can read and write STEP should be able to do so (from those I know they all can)
Thanks for the answer.
I don't have the other program. The other person exports the original STEP file but he does not know at that time what origin I need. My idea is to do it with Eyeshot and same time I learn to use Eyeshot. :-)
Here's a very simple read and write file for step
As for the change in origin well you don't change an origin, you move object to place them where you want relative to the origin.
You would then transform the position of all the entities in the Design1.Entities. Theses are object of type "Entity"
and you have 4 main way to move them :
1 - the transform. This is big one. It allows every transformation your can think of, rotation, translation, mirror, scale...
https://documentation.devdept.com/2023/topic_0000000000002B19.html
2 - the translate. This just move in x,y,z the entity (there is other override for different parameter options depending on your needs)
https://documentation.devdept.com/2023/topic_0000000000002B1E.html
3 - the rotate. pretty self explanatory, again couple override with different parameter options
https://documentation.devdept.com/2023/topic_0000000000002B1E.html
4 - the scale.
https://documentation.devdept.com/2023/topic_0000000000002B23.html
Thank you very much. :-)
Please sign in to leave a comment.