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.
Best Of
Re: ⚠️How to Simulate Assembly Rail Collisions
@Derek_Van_Allen_BD For a garage doors, you won't need collision detection, just a chain of revolute mates and tangent mates.
I learned this technique from @NeilCooke I believe.
Animate Garage Door
- In a part studio, create a single edge path by using the Fit spline tool set to Edges. This will let you create one continuous path.
Make sure the top edge extends well beyond the rail so that the helper parts have something to travel on. - In the assembly, use parallel mate to lock the first door panel to the rail.
- Use the tangent mate to make one corner of the panel tangent to the continuous path.
- Add the next panel to the previous one using a revolute, then tangent mate the loose end to the path.
- Once you are at the top, use helper surfaces (Pushers) as if they were more panels until you get to the flat portion of rail. The reason for this is because Onshape doesn't currently allow you to animate the tangent mate. This way, you can push the tangent object with a slider mate that is animated.
- Add a slider mate to the final pusher and set limits 0 to 10ft or however large your garage is.
Here is where you could add the collision technique if you want, but not really required since I know it's ~10ft. - Right click the slider mate → Animate.
Re: ⚠️How to Simulate Assembly Rail Collisions
.
Circular Rail
- Have each rail object start at the end of the next rail object via a rotated mate connector from the original part studio of the bracket.
- Limit the revolute mate to a min rotation of 0 for each mate.
- Place an additional revolute mate between the last bracket and the first one, and give it a limit of 360 deg.
⚠️How to Simulate Assembly Rail Collisions
There's probably a tech tip or post on this, but I thought I would share anyways.
You can simulate collisions on a rail with dynamic limits by:
Linear Rail
- Have each rail object start at the end of the next rail object.
- Limit their slider mates to a slide min of 0.
- Place one parallel (Or another slider?) mate at the end of the last rail object to the end of the rail with a min or max z limit (it depends on the direction of the mates).
Alternatively, instead of a min slider limit where they all reference each other, you could probably have 2 parallel mates per end of a rail object, but this would take more time to set up.
Re: Tangent connector
And the latest version (with tip from @MDesign 😉 thanks !)
https://cad.onshape.com/documents/98d0f9b674e3365a7227ea2b/w/25454ae53d9b621dd1e74906/e/6a5a00938cd4a1595aa96afe
Re: How to make a revolving joint have high resistance so that it won't move by the weight of a phone
Here's what I was thinking to prevent things getting lose or moving. the near side hole has lil bit of plastic bulged in so that the bolt can thread into it (this is where the head of the bolt would be). the far side hole is smooth and slides over bolt as wing nut is tightened.. The radial texture on both parts leg and base prevent slippage even when wing nut is super tight.
MDesign
Re: This boolean subtract with offset is not solving - help!
Just the regular boolean tool, just check the "offset" box…
possible to turn of the tangent arc automatic switching when using line?
hello,
some months ago onshape introduced the quick seketching where if you draw a line and then pass over the last point of the drawed line with the mouse it will switch to tagent arc and then again if we pass again over it goes back to line again. this is super annoying for me, i almost never use tangent arc and it is driving me crazy, as sometimes i go over a point by simply moving the mouse and it goes to this. I understand that it can be interesting for some people but would like to turn it off (the switching, so i always stay on line) is this possible?
Re: Optics: Custom Feature
Whelp, I went ahead and "fixed" it:
Colors work with Final! Code for doing this is below:
if (definition.keep && (definition.rayGrouping == RayGroupLevel.Rays))
{
opCreateCompositePart(context, id + "composite", { "bodies" : rayChainBody, "closed" : true });
setProperty(context, {
"entities" : qCreatedBy(id + "composite", EntityType.BODY),
"propertyType" : PropertyType.NAME,
"value" : "Light ray"
});
// Check if the ray hits the target or not.
result.hitsTarget = rayHitsTarget(context, rayChainBody, definition.targetFaces, definition.highlightTargetFaces);
if (definition.colorByTarget && !isQueryEmpty(context, definition.targetFaces))
{
if (result.hitsTarget && definition.colorHits)
{
setProperty(context, {
"entities" : qCreatedBy(id + "composite", EntityType.BODY),
"propertyType" : PropertyType.APPEARANCE,
"value" : color(0.1, 0.5, 0.2)
});
}
else if (!result.hitsTarget && definition.colorMisses)
{
setProperty(context, {
"entities" : qCreatedBy(id + "composite", EntityType.BODY),
"propertyType" : PropertyType.APPEARANCE,
"value" : color(1.0, 0.1, 0.2)
});
}
}
}
The above replaces the block at L629. There's no dialog to turn it on/off, I didn't know if you would want the above feature, nor if you did how you'd like the dialog to be done. (Sorry for dropping the code mod here, it would be awesome if OS had some kind of push request like Gitlab!)










