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.

Copy and Paste a sketch along with its constraints

Is there a way to copy a fully defined sketch in one part studio and paste the sketch into another part studio without losing the constraints?

Answers

  • robert_scott_jr_robert_scott_jr_ Member Posts: 544 ✭✭✭

    Hello Chip. Right click on the sketch in the feature tree to bring up the dialog and select copy sketch. In another part studio right click on a face, plane or mate connector and select paste sketch from the dialog. The pasted sketch will be 'floating' and will not become fully defined until you anchor it, either by intersecting it with a fixed point (such as the origin) or via dimensions. Transform tool would be the choice for dragging the sketch to a new location. - Scotty

  • chip_brettellchip_brettell Member Posts: 4 PRO

    Hi Scotty, thanks for the reply to my question. I copied a fully defined sketch and pasted it into a new sketch, as you explained. The sketch comes in undefined, with all blue lines. I used the transfer tool and move the sketch to the origin and it still is not defined. Any idea what I might be doing wrong? I even tried it with a pretty simple sketch…

    Thanks agin,

    Chip

  • michael_hills168michael_hills168 Member Posts: 15 EDU

    I assume that by "transfer tool" you mean "transform tool". Of the methods Robert mentioned, that's the hardest one to make work.

    It's quicker to just select the point that you want to lock to the origin and the origin and press the 'i' key or click the coincident toolbar button. Or just drag that point onto the origin until it turns orange and drop it there. If there's no point that you want on the origin, use other constrains or use the dimension tool to specify a vertical and horizontal distance between a point and the origin.

    If you really want to fully constrain the sketch using the transform tool… Select all the entities in your sketch. It should all turn orange. Right click on any of the orange lines and select "Transform sketch entities". If you just drag the arrows on the manipulator to position the sketch where you want it in relation to the origin, it might not lock on. It will only lock on if the manipulator is lined up with the origin. So, the first step is to drag the circle at the base of the arrows of the manipulator to a point in your sketch that you want to line up with the origin. Then drag the arrows on the manipulator until the sketch locks on to the origin (or some other feature). You need to lock on vertically and horizontally before clicking your mouse button to accept or it won't be fully defined.

  • chip_brettellchip_brettell Member Posts: 4 PRO

    I appreciate your help, Thanks you.

    I've tried all of the above and still the sketch remains unconstrained. I get the sketch transformed to the origin without it getting wonky, but I can still grab a line or curve and distort the sketch by dragging.

    It's okay, I can manually redefine the constraints. I just seems that there should be a way and I'm not finding it…

  • joshtargojoshtargo Member Posts: 324 EDU

    was it fully constrained only to elements within the sketch, or was it also constrained to elements outside the sketch, like an object or context?

Sign In or Register to comment.