Page 1 of 1
How to calculate the transform of a new plane?
Posted: Fri May 28, 2021 3:34 pm
by peterbrinkhuis
I am creating a reference plane after a user closes my PMP. I would like to know the transformation matrix of the plane before it’s being created because you cannot create the plane while the PMP is open.
I create the plane from an edge and a point:
I know the start direction of the edge. This will become the normal of the plane. But how do I calculate the x-axis and y-axis before the plane is created? Which coordinate transformation will SolidWorks use?
Re: How to calculate the transform of a new plane?
Posted: Wed Jun 23, 2021 4:59 pm
by Bugzuki
Not sure I understand your question, but here is an answer to what I think you are asking.
The plane in your images would be perpendicular to the edge. There would be no x and y axis dimensions for it's definition since it would go infinitely in both directions. The blue box you see in the second image is just a temporary outline of a section of the existing plane so you can visualize it. You can resize it however you want to without actually changing the plane in any way. Since it is an infinite entity the center is not necessarily centered on the edge or the point.
Re: How to calculate the transform of a new plane?
Posted: Thu Jun 24, 2021 2:53 am
by Eddy Alleman
This question was also asked on CadOverflow and was continued there:
https://www.cadoverflow.com/t/how-to-ca ... -plane/142
Basically the OP wants to create a workplane before creating a PMP and when the PMP is open transform it to the wanted location as chosen in the PMP.
The reason for this workaround is that Solidworks crashes when creating a workplane with an open PMP.
Eddy