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 do I control my 3d printer from my phone
In case you have a raspberry pi lying around, octoprint and octoapp (phone) are a nice solution
Re: How to determine if an edge is a line or an arc
Thank you @MichealPascoe!
qGeometry does not really work as I need all edges of the face. As of now I was only using lines and circles/arcs to create my faces, but eventually I could see those faces becoming more complex. evCurveDefinition, however, definitely does the trick along with canBeLine and canBeCircle to do the identification.
@jelte_steur814
Thanks for that info, sounds interesting , but also a little too advance for me for now, but I will definitely be looking into it further down the line. I have realized that I didn't really understand how maps worked in FS and which was also causing my confusion in the use most of the functions.
Since I work better with examples
var edges = qLoopEdges(definition.face);
var queryArray = evaluateQuery(context, edges);
for (var i = 0; i < size(queryArray); i += 1)
{
var curvetype = evCurveDefinition(context, {
"edge" : queryArray[i] });
if (canBeLine(curvetype))
{
//…
}
else if (canBeCircle(curvetype))
{
//…
}
else if (canBeEllipse(curvetype))
{
//…
}
}
Onshape + Operators (Free Tutorial!)
.
Did you know you can use operators directly within a part studio?
Here's a re-post of some useful info I put together a while back. Looks like the tables aren't supported in the forum update. Original post is (here) in case your eyes hurt from these tables.
Also, if you would rather watch a video tutorial on operators see: Lesson 2 starting at time 11:54
Ternary conditional operators are extremely helpful for creating variable patterns and models. They are a short hand version of the "if then statement" that you can use directly in the Onshape input boxes within features or variables. Here is a quick guide on how to use them:
In this tutorial gif, you can see how to change the quantity of a pattern based on the diameter variable. If the diameter is less than 2in, use qty of 6. If the diameter is not less than 2in, use qty of 4.
.
Logical Operators
Description | Operator |
equal | == |
greater than | > |
less than | < |
.
Modifiers
not | ! |
and | && |
or | || |
.
Operator Combinations
less than or equal | <= |
greater than or equal | >= |
not equal | != |
not less than | !< |
not greater than | !> |
.
Ternary Conditional Operator Examples
Return one value or different value depending on if the statement is true or false. | |
logical statement ? value returned if statement is true : value returned if statement is false | |
1 == 1 ? 999 : 555 | this returns the value 999 because 1 does equal 1 |
1 == 2 ? 999 : 555 | this returns the value 555 because 1 does not equal 2 |
1 != 1 ? 999 : 555 | this returns the value 555 because 1 does equal 1 |
1 != 2 ? 999 : 555 | this returns the value 999 because 1 does not equal 2 |
1 < 1 ? 999 : 555 | this returns the value 555 because 1 is not less than 1 |
1 < 2 ? 999 : 555 | this returns the value 999 because 1 is less than 2 |
1 <= 1 ? 999 : 555 | this returns the value 999 because 1 is less than or equal to 1 |
1 <= 2 ? 999 : 555 | this returns the value 999 because 1 is less than or equal to 2 |
1 <= 0 ? 999 : 555 | this returns the value 555 because 1 is not less than or equal to 0 |
.
Combined Logical Statement Examples
Use modifiers to combine multiple statements | |
(1 == 1) && (2 == 2) | This statement returns true only if both statements are true |
(1 == 1) || (2 == 2) | This statement returns true if either of the statements is true |
.
Nested Ternary Conditional Operator Examples
Place statements within parenthesis to nest them | |
1 == 1 ? 999 : (1 == 2 ? 444: 333) | Returns 999 |
1 == 5 ? 999 : (1 == 2 ? 444: 333) | Returns 333 |
1 == 5 ? 999 : (1 == 1 ? 444: 333) | Returns 444 |
.
Re: Struggling with animation
I have been playing with this. The Ball mate seems to be correct; when I "run" the mate connector in the edit mode, it moves the ball joint as I think it should.
The problem seems to be where the TieRodEnd is Fixed to the Acherman arm. As soon as I activate that connection, the animates fail. With that connection suppressed, each Rotate connector seems to animate correctly. Unfortunately, without the TieRodEnd fixed, the rotates do not move the next piece in the mechanism.
Still working on it, but additional help seems to be needed.
Thanks, Bill
Logic Driven Feature (New Custom Feature!) 🆕 [Extrude, Revolve, Sweep, and more..!]
.
Logic Driven Feature
.
The Logic Driven Feature can be many different features: (Extrude, Revolve, Sweep, etc..)
It allows you to control it's suppression based on logic.
This feature also contains the
Query Finder for selection automation.
The feature can be suppressed by equations that result in true or false or binary (1 or 0), allowing many different combinations of control from multiple inputs. This feature can also be suppressed by selecting dependency features from the feature tree; if those features are suppressed, then this feature is suppressed.
List of Logic Driven Features within this feature: (More to be added)
- Extrude
- Revolve
- Sweep
- Mirror
- Transform
- Boolean
- Fillet
- Delete part
- Delete face
- Move face
- Derive
.
Why?
— Have you ever wanted to control a feature's suppression from multiple configurations? This features allows you to do that, and much more.
— This feature is equipped with the Query Finder, allowing you to automate your selections.
— Why have a list of sub features instead of one feature per feature? This way, you only have to add one feature to your tool bar.
.
If this custom feature isn't exactly what your looking for, you can always reach out to CADSharp for custom automation and workflows.
We specialize in custom features and custom apps to help automate your daily Onshape work.
www.cadsharp.com
.
.
How to use operators and equations:
https://forum.onshape.com/discussion/comment/93059#Comment_93059…
.
Drive feature suppression with multiple configurations at a time:
.
How to use the feature?
.







