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 a sketch/features from one part studio to another still not possible in 2020?

2»

Answers

  • glen_dewsburyglen_dewsbury Member Posts: 784 ✭✭✭✭
    Yes I agree, you're missing the zen. You can use the derive function across documents. You'll want to identify a master document with the initial sketch then use it any where you like. Not sure why you want to copy and paste from document to document when you can use existing sketches and parts from any document. Unless your getting too complicated to track in one document you can work with multiple part studios and assemblies inside one document. If what your working on is not to complex you can build all parts in one studio and then put together an assembly for motion study or multiple uses of the same part.
    https://cad.onshape.com/documents/2679577427d13b4e8513a641/w/1e9edde7e2cde1617682453f/e/40c61813a15e5397d9823bc8
    https://cad.onshape.com/documents/296a16ab7f5422287828dd13/w/808473937c84e0aa22c65eb3/e/d1bb6caef4acf06943a1fd14
    Having a separate document for every part you make is pretty old school and was because it was a requirement for older CAD systems.
  • eric_pestyeric_pesty Member Posts: 1,891 PRO
    There are other ways to deal with this too, you could have a simple part that is just the Tenon and "derive it in" to any existing part (locate with a transform or use the "super derive" to place it directly). You can then boolean add it or remove to create the geometry in your new part. I don't see a need for bringing just the sketch/feature for this use case.
  • nick_papageorge073nick_papageorge073 Member, csevp Posts: 831 PRO
    ...snip....

    However, for me a small bowl, a benchtop vice, and the plastics for a set of soldering "helping hands" all belong in different documents with their own sets of variants.  Putting all of them in the same document as variants of one another doesn't seem right to me, but it's possible I'm missing the zen of this. 

    I have the feeling from what you wrote that you have everything you ever modeled in onshape in one document, perhaps even one part studio, even though they are not related to each other. Is that correct?

    If that's the case, you are definitely doing it wrong. One document per "product". One part studio per "subassy collection of parts". One "subassy" for each part studio. Then one "top level assy" for the collection of subassy's. That will get you on the right track. As the complexity of the "product" increases, you would split it even further than this, but in the beginning this is appropriate.
  • nick_papageorge073nick_papageorge073 Member, csevp Posts: 831 PRO
    I may have missed the resolution to this, but here is my use case for copying parts of sketches between Part Studios.  I'll be first to admit there's an easy workaround, but copy and paste would be the obvious solution.

    I have a wide variety of parts that serve many different purposes, but they are modular -- you can connect any one of them to another.  It would be very convenient to paste the mortises and tenons between them.   Once again, the parts are not variants of one another, they just share a single small element.

    Today, for example, I am taking a part that was not originally modular and converting it.  Copying just a mortise and a tenon to the new part would make it easy to guarantee compatibility.

    To help visualize, here is an example of a center piece with mortises on the top and left and tenons on the bottom and right.  You could easily build a grid out of these pieces.



    In a case like this where there is a common interface between otherwise unrelated parts, you can model the interface by itself, and then bring it into every place you need it.

    In this case have one part studio that has a shape representing the mortise and the tenon. Nothing else in that part studio. (Ps did you mean sliding dovetails).

    When you want to apply that common interface to a new part, derive it inside the part. Then use "point pattern" to place it at all the locations it needs to go to. Then use boolean to ether union it for the male or subtract it for the female shape. You could make all 4 dovetails in this part in a couple minutes once you get familiar with the process. If the fit is not good between male and female, you would adjust it in the original part studio, and then when you update each part, it will get the new clearances.
  • nick_papageorge073nick_papageorge073 Member, csevp Posts: 831 PRO
    edited November 2022

    Here is what I was describing above. Its robust, because if you find out you have a fit issue when you manufacture the parts, changing it in one place will change it for each of your modular blocks. I did have to add a few steps to get the rotation of each dovetail correct. IDK if there is a more efficient way of doing that. This document uses two custom features, super derive and point pattern. Both comes in super handy on many projects.


  • eric_pestyeric_pesty Member Posts: 1,891 PRO
    Here's a much simpler way of doing it adding mate connector to the dovetail parts and using the "transform pattern" feature:



    https://cad.onshape.com/documents/c7971a04ce49f973b601aa5f/w/57799bf154d78f0f0314ea3d/e/972005ef692f2eb073fa3a5f

  • timothy_kolartimothy_kolar Member Posts: 11

    I have the feeling from what you wrote that you have everything you ever modeled in onshape in one document, perhaps even one part studio, even though they are not related to each other. Is that correct?

    The opposite actually.  But before I learned of the wonder that is Super Derivations I couldn't find a way make sure identical elements matched dimensions across different documents.  Copy and paste between documents would not have been ideal, but it would have beat doing it manually as I have been.

    However, Super Derivations solve this problem way, way, better than copy and paste ever could.  This was meant to be a minor comment about a possible cut-and-paste use case but has turned into a sublimely educational experience.
  • timothy_kolartimothy_kolar Member Posts: 11
    There are other ways to deal with this too, you could have a simple part that is just the Tenon and "derive it in" to any existing part (locate with a transform or use the "super derive" to place it directly). You can then boolean add it or remove to create the geometry in your new part. I don't see a need for bringing just the sketch/feature for this use case.
    Super Derivations completely obliviate my putative use case while simultaneously solving correctly a problem I've been working around for too long.  Thank you so much for pointing them out!
  • outstandingoutstanding Member Posts: 56 ✭✭

    However, for me a small bowl, a benchtop vice, and the plastics for a set of soldering "helping hands" all belong in different documents with their own sets of variants.  Putting all of them in the same document as variants of one another doesn't seem right to me, but it's possible I'm missing the zen of this. 
    My 2c. I see Document as the unit of versioning (and branching). This is nicely described somewhere in the Onshape tutorials.

    Thus, if the "bowl, bench top vice, and the plastics" don't share a life cycle, they should obviously not be in the same document, either.
  • jeff_mcafferjeff_mcaffer Member Posts: 66 ✭✭
    My 2c... I have a very pedestrian use case for copying (well, moving). I want to refactor my part studios. I started a doc and creates a few obvious part studios and drew a bunch of stuff. As I explored the space, I got more detailed and there were more and more parts. Soon the initial studios got cluttered and new groupings and relationships emerged -- the original studio breakdown became clumsy and counter-intuitive. To fix this I'd like to move bits around between part studios (new and pre-existing). Duplicate and prune can handle some cases but not all.

    That and I don't yet fully grasp the "appropriate" studio sizing. Should I just have stared with dozens of little studios? Either way, refactoring will still be a topic as one's first breakdown wrong more often than not. Imagine writing FeatureScript and having to predecide the set of libraries you're going to have and the only way to get something from one library to another is to retype it!

    To be clear, I totally get that this is complicated to implement but there's lots of prior art in the software development space (e.g., look at any modern IDE like VS Code)
  • quinn_jeannottequinn_jeannotte Member Posts: 2
    Hi there, I have done all the basic onshape lessons and new to Onshape.  I have experience with several other CAD over the last 35 years as it has grown.  I have mostly used CAD for CAM at my shop.  

    I found this thread and I have read it but I would like to mention why I wanted to find a solution for my needs.  I have a shape I need to create, that shape will not fit as one piece onto the bed of our 3D printer so I am making the shape in many pieces so each piece can be printed with the correct orientation on the printer then assembled together once all pieces are made.  

    The I want to create bumps and groves and alignment edges so that each of the parts will fit for sure along with the other face to ensure that things are where they should be when the glue is drying.  I do not want to copy and paste a "dead" copy of another face because one change and they will not fit together.  I want to copy and paste a "live or dynamic" sketch so that when I have to move any one reference edge bump on one part the groove in the other part will fit as it should. 

    I do not see a problem creating this, I'm not a programmer or coder but it seems pretty simple to me, just add a checkbox on the copy Sketch that asks Dynamic OR Fixed Sketch and the user can make their choice.  Another option could be a checkbox that asks Master OR Slave OR Switch so the work flow can be defined as being one way only or two way work flow.

    One last comment unrelated.  There should be a magnetic Mate connector option in the details of many mates, this can allow the mate to follow the rules of the Mate connection but when enough force is applied then the connected breaks free, the user can define the holding force of the Magnetic Mate connector.

    Just some thoughts from a guy with no job, take it or leave it....

    Thanks, I am enjoying the product but some simple things like moving an object in parts studio are really way too difficult.
    quinn@homesitedev.com

Sign In or Register to comment.