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: Excel spreadsheet
No, there is no way to connect a spreadsheet to a drawing.
Link tab just lets you keep your google doc in an Onshape tab so it is easy to find/edit.
You will need to copy the information out of the spreadsheet and paste into a table in drawings.
Link tab just lets you keep your google doc in an Onshape tab so it is easy to find/edit.
You will need to copy the information out of the spreadsheet and paste into a table in drawings.
Re: Given a mate connector how do you find the owner body for it?
qAdjacent and qOwnerBody don't work because the mate connector is actually its own body, with BodyType.MATE_CONNECTOR.
One option is to loop through every part, and check if (evaluateQuery(qIntersection(myConnector, qMateConnectorsOfParts(part))) == []).
However, it's worth noting that mate connectors created live in the feature dialog (by selecting position that's not a previously-created mate connector feature) do NOT have owner parts. Those mate connectors will disappear when the feature dialog closes and will not be inserted with the part into an assembly.
So for this case I would actually suggest adding a separate "Part" field to specify the part. If you'd like, you can add an editing logic function which auto-populates that field with something like qClosestTo(qAllModifiableSolids(), evMateConnector(...).origin) when a mate connector is selected, but still lets the user override that if another part is needed.
One option is to loop through every part, and check if (evaluateQuery(qIntersection(myConnector, qMateConnectorsOfParts(part))) == []).
However, it's worth noting that mate connectors created live in the feature dialog (by selecting position that's not a previously-created mate connector feature) do NOT have owner parts. Those mate connectors will disappear when the feature dialog closes and will not be inserted with the part into an assembly.
So for this case I would actually suggest adding a separate "Part" field to specify the part. If you'd like, you can add an editing logic function which auto-populates that field with something like qClosestTo(qAllModifiableSolids(), evMateConnector(...).origin) when a mate connector is selected, but still lets the user override that if another part is needed.
Re: Feature script is it possible to cut and paste code between two scripts in the same work space.
You can use the shortcut ctrl-c (cmd-c on mac) to copy code, and then use ctrl-v (cmd-v on mac) to paste it.
Re: Upvoting improvement request
The advantage of it being in the forums is that everybody sees it and adds their vote if they like the idea.
Re: Problem with extrude
Thicken should do it, or you can create a Plane over the part, sketch the profile and extrude up to face.
Re: Problem with fillet
You have added the fillet to the blue surface - hide it first from the Part List (bottom left).
Re: Impossibility hidden connector / impossibilité de caché un connecteur
Do they belong to the feature "Transform 1"? Shift P to hide.
Re: How do I get my pierce and sweep to work when threading?
@gabriel_francis261
I don't always recommend putting a thread on a part because of how expensive it can be for regeneration times. However, if the part is 3D printed or plays a critical role for how parts fit together a thread feature is needed.
There is a custom feature for creating threads that you can add to your toolbar. This is a great feature and has several standard thread sizes.
https://cad.onshape.com/documents/6b640a407d78066bd5e41c7a/w/4693805578a72f40ebfb4ea3/e/f8aea9e5c33e02eab0854a4f#_ga=2.232152220.2018415010.1590505462-1556897280.1583850809
I made an example of how I like to model threads if you don't want to use the custom feature. Here is a link.
https://cad.onshape.com/documents/bdfddb378ebfbb4843a92e38/w/4c86b4c902f5126fec13dd53/e/650b3e9aef9fb16aa804fb07
In this example, I used a construction surface to place the helix on. This is so the thread can start before the solid part, the same way a thread would be cut on a lathe.

Next I added in the chamfers and undercut.

Modeled the thread profile.

Sweep remove.

Let us know how you made out. Good Luck!
I don't always recommend putting a thread on a part because of how expensive it can be for regeneration times. However, if the part is 3D printed or plays a critical role for how parts fit together a thread feature is needed.
There is a custom feature for creating threads that you can add to your toolbar. This is a great feature and has several standard thread sizes.
https://cad.onshape.com/documents/6b640a407d78066bd5e41c7a/w/4693805578a72f40ebfb4ea3/e/f8aea9e5c33e02eab0854a4f#_ga=2.232152220.2018415010.1590505462-1556897280.1583850809
I made an example of how I like to model threads if you don't want to use the custom feature. Here is a link.
https://cad.onshape.com/documents/bdfddb378ebfbb4843a92e38/w/4c86b4c902f5126fec13dd53/e/650b3e9aef9fb16aa804fb07
In this example, I used a construction surface to place the helix on. This is so the thread can start before the solid part, the same way a thread would be cut on a lathe.

Next I added in the chamfers and undercut.

Modeled the thread profile.

Sweep remove.

Let us know how you made out. Good Luck!
Re: How do I get my pierce and sweep to work when threading?
Looks like your sketch of the triangle is parallel to your path starting point when it should be perpendicular or normal to.