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.
How to improve the onshape featurescript manual
Comments
-
In addition to improve the manual by adding images and more examples:1) A compilation of FeatureScript examples is being created from the community on GitHub https://github.com/dcowden/featurescript2) Something that would be very helpful is to also have the FeatureScript code of the std document in a GitHub repository.This, for example, would facilitate the search for code examples in the std document, since currently a search must be done in each tab of the std documentThis is a method that we have used for some time, in a private repository on GitHub, with very good resultsUn saludo,
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común3 -
In the standard library (or any document with FeatureScript), you can search globally in all tabs by hitting the magnifying glass at the top of the page or pressingemagdalenaC2C said:2) Something that would be very helpful is to also have the FeatureScript code of the std document in a GitHub repository.This, for example, would facilitate the search for code examples in the std document, since currently a search must be done in each tab of the std documentctrl-shift-F(orcmd-shift-Fon a mac)1 -
ok, thanks
In any case we will continue with our current method, because we also have our own code in FeatureScript in the same repository
Un saludo,
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común1 -
Seems reasonable, I just figured I would let you know.
@robert_carpenter114
On the documentation, we've got lots of improvement requests that we continue to work on. I think 2D images could certainly helpful in places. If you submit an improvement request here, and others vote on it, that will substantially increase the likelihood that we prioritize this.
Is there some concept in particular that you wish was better illustrated? For many cases, the operation can be complex, and the best solution is not a 2D image but a 3D working example.0 -
Ok I take it all back. The second part of the excellent Featurescript Tutorial on the Onshape Featurescript Main Page makes everything clear.
https://cad.onshape.com/FsDoc/tutorials/add-sketch-geometry.html
In particular it illuminates the distinction between Queries and Geometric Objects which was crucial to helping me 'get it' finally:NOTE
FeatureScript has two completely separate ways of representing entities and geometry:Queries, like
endPointsare objects which specify criteria for finding a particular entity or set of entities in the Part Studio. These are just specifications, and they contain no information about the geometric or topological properties of any entities. Depending on the context it is evaluated in, aQuerymay resolve to zero, one, or many entities.Geometric objects, like
endPosition, contain data about geometric positions and orientations (includingVectors,Planes,CoordSystems, and more). These are just data, and are not contextually associated with any entities in the Part Studio.
This design gives Onshape Part Studios and features the robust tools needed to maintain fully parametric references.
To get geometric information from a query, use an evaluation function, found in the evaluate module.
0 -
It would be nice if they didn't write the whole thing in wingdings...
I dont find it comprehinsive at all. Feels like a lot of missing information.
i just cant tell when i need to use certain functions in order to read/use a query properly.0



