Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
Newbie question: How can I center 2 parts in an Assembly ... at a fixed offset distance?
john_smith077
Member Posts: 175 ✭✭✭
Hello
1. How can I align the centers of Part A and Part B in the X dimension?
2. How can I fix the sparation distance between the two edges to a specific distance? (e.g. 2mm)
Note: I have applied a Planar Mate to the back face of Part A and Part B.
Background
Part of my problem is that I have two 45 degree chamfers facing each other, rather than two parallel faces...
Many thanks
J
PS My apologies for the novice question, but I am stuck!
PPS Is there any way to insert an image into these forum posts without them going full-width?
0
Comments
If so how do you set it up?
In truth I would like a to be able to set up a global set of variables that I can use in any Part Studio, as well as in any Assembly.
[Should I enter this as a separate question?]
J
Then edit the offset as needed
*Edit* Opps I see this was answered while I was answering too
So instead you would add a mate connector in the partstudio and use your variable defined offset there. Then fasten it in the assembly
They didn't say when grobal variables will be coming out. But they showed off a demo at the live event. They talked like it could be any update now.
So to get clear, as things stand there is no way to even share a master set of Variables between different Part Studios, yes?
J
there are a few methods, but the simplest one would be to use the "superderive" featurescript and check the "import variables" option.
You will need to import at least one object from the partsudio. If you only want the variables, then create blank sketch or a plane to import.
SuperDerive | SuperDerive (onshape.com)
this is something I do often in Onshape, and it works great.
You can see how many variables I'm using by the size of the scroll bar
Import in partstudios is very inefficient though. since it needs to load the entire partstudio each update.
but if you create one 'master variable partstudio' with only a single importable feature (like a sketch) then it will speed things up.
But like I said, this will all be obsolete once global variables comes out. Hopefully in the next month or two? ? ?