AnsweredAssumed Answered

How to get the transform of a weldment body?

Question asked by Peter Brinkhuis on Nov 22, 2019

I'm automating creating drawing sheets for weldment bodies and I've hit a snag.


I lay every straight body flat, so the front view is a horizontal line. But I can't figure out how to do this for a diagonal body. I'm looking for the MathTransform or a coordinate system to lay this body horizontally.


Bodies don't have a transform. I can't use the weldment profile sketch because not every weldment body has a sketch. I basically only have the bottom left and top right corner. But you can't create a coordinate system from one vector because it leaves out the rotation around that vector.


I have already drawn in the coordinate system in the bottom left corner. When I create a transform using that system, the transform works  Now I just need to find a way to get that one using code.




Diagonal weldment body

Goal (the transformation is not perfect, hence the strange dimension)


I have attached the file I'm working with (made in SW2017). 


Any ideas?