Can someone help me with opPlane?`
Dylan_Stewart
Member, Developers Posts: 107 PRO
I am trying to just simply offset a plane from the "Front" plane a certain distance to place a sketch on inside of the code.
https://cad.onshape.com/documents/5f58f9dbb29fa769e39cafa1/w/011aa0a6c11a7d0d90dbdc77/e/6b550df6cc30fd5281c6ecd6
Here is a link of what I am trying to accomplish %100 with code.
The outside squares will be controlled with the same variables and all 3 will be controlled with a 'height' variable.
The middle box will control the distance of the outside boxes.
I'm just trying to get a better understanding on how opPlane works...
Thank you!!
https://cad.onshape.com/documents/5f58f9dbb29fa769e39cafa1/w/011aa0a6c11a7d0d90dbdc77/e/6b550df6cc30fd5281c6ecd6
Here is a link of what I am trying to accomplish %100 with code.
The outside squares will be controlled with the same variables and all 3 will be controlled with a 'height' variable.
The middle box will control the distance of the outside boxes.
I'm just trying to get a better understanding on how opPlane works...
Thank you!!
Digital Engineering
0
Best Answer
-
Generally the most maintainable way of making sketch geometry in specific place is to create a Plane in the right position and base everything off of that, creating sketches with newSketchOnPlane.
Here's a public example document doing what you want:
https://cad.onshape.com/documents/ef8c84dbdfc79365f476d7c3/w/7c9985115ed7f3ca732c0076/e/9bcaef4b1c4e68727b926ce6
5
Answers
-
Generally the most maintainable way of making sketch geometry in specific place is to create a Plane in the right position and base everything off of that, creating sketches with newSketchOnPlane.
Here's a public example document doing what you want:
https://cad.onshape.com/documents/ef8c84dbdfc79365f476d7c3/w/7c9985115ed7f3ca732c0076/e/9bcaef4b1c4e68727b926ce6
5 -

