Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:

1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
2. Need support? Ask a question to our Community Support category.
3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

# skRectangle - Question

Member, Developers Posts: 206 PRO
How can I create a 2d rectangle using a 2 selected points that will work in any plane?

• Onshape Employees, Developers, HDM Posts: 414
Given only two points, there are many different rectangles that can be created between those corners. In order to know which one to create, you first need:
1) A plane normal (i.e. which direction does the plane of the rectangle face), and
2) A horizontal direction (i.e. within that plane, which way do you travel from the first point to the next corner?)

Do you have those two things? Alternatively, is is possible to instead select 3 points of the rectangle?

• Member, Developers Posts: 206 PRO
edited June 2018
I have 2 points and a face which is use to create a plane where the rectangle is going to be sketch using the 2 points selected.
I can get 3 points too if its needs to have. but a face needs to be selected too .
• Member Posts: 1,415 EDU
Given only two points, there are many different rectangles that can be created between those corners. In order to know which one to create, you first need:
1) A plane normal (i.e. which direction does the plane of the rectangle face), and
2) A horizontal direction (i.e. within that plane, which way do you travel from the first point to the next corner?)

Do you have those two things? Alternatively, is is possible to instead select 3 points of the rectangle?

@kevin_o_toole_1
Wouldn't it be possible with two points and a horizontal direction?
MB - I make FeatureScripts: view FS (My FS's have "Official" beside them)