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.
featurescript
Discussion List
-
Changing name of part to it's length using Beam FeatureScript
I tend to use the Beam FeatureScript alot in my projects, and thanks to the new BOM update its way easier to indicate parts in drawings. So instead of having the parts being generated with the name "Part 1" etc. I want to have the name of the profile and the length in the name. I have done the profile name part sucessfully…
-
Onshape 'Copy Hell' for documents and FeatureScript
Note: I've resubmitted this as a 'New Idea'. https://forum.onshape.com/discussion/8792/onshape-copy-hell-for-documents-and-featurescript-or-we-need-pull-requests#latest So I just went looking for a feature script that I had read about (Pocket Holes). I did a search for pocket hole and came up with more than 20 results.…
-
Boolean add
Hello everyone, I want to create a feature script to create simple joint automatically, I want to "glue" a few parts together but I don't know how to identify the loop-created entities and how to use them in the op boolean There is also something about the deleted sketch that I can't suppress If someone has an answer I'll…
- Boolean in UI
-
Separation Line in UI
is it possible to have a space or a separation line in UI?
-
UI Label
is it possible to have a 2nd line label in UI?
-
For loop for annotation creation in FS
My plan: I just wanted to create quick new version of the "Part Number" property example FS. When I looked at the code I was suprised by the extreme repetition in the code. I think it could be solved with a few small lists. But it seems that the limitation is annotation creation that does not accept for loops. annotation {…
-
ENUM LIST
can i add something in the enum list using user input in the precondition? is it possible?
-
Function Lesson
I badly needed lesson to fully understand how to do this. Is there a tutorial or lesson out there ?
-
another function question
lets say a feature that gives 'data' whatever the user pick line & line = data plane = data how to do an export function to get 'data' usable to other fs?
-
Get Lines of a Sketch and angle between 2 lines with coincident vertice.
I couldn't find an evLine that works with an sketch. var sketch1 = newSketchOnPlane(context, id + "sketch1", { "sketchPlane" : newPlane }); skRectangle(sketch1, "rectangle1", { "firstCorner" : vector(-1/2,-1/2) * inch, "secondCorner" : vector(1/2, 1/2) * inch }); I want to implement something like an sketchFillet and it…
-
Can Featurescript pull data from Google Docs?
I used to have a VB program in Solidworks that would popup a dialog window. In that window I would use a dropdown box to pick the Project name, and a commodity type and then the program would create a prefix and then pull a sequential number from an Access database to create the part number. Is it possible to go something…
-
Shortcut for copying all
What is the shortcut key to copy all in feature studio? Where can I find the list of all shortcut keys?
-
how to check if a string includes a substring?
how to check if a string includes a substring?
- RealBoundSpec Question
- coordsystem question
-
Guide curve or more profiles for lofting.
I am lofting a changing profile P(t) where t is a parameter tmin < t < tmax. I can generate the profile at any t so any number of intermediate profiles are possible. I could also generate the guide curves for the profiles. However is there any benefit to using guide curves if I can just generate more intermediate profiles…
-
SELECTING FROM THE FEATURE TREE
Is it possible to select a derived feature in the feature tree without user selecting it?
-
How to find all intersections points of an edge chain with a plane
For example I have the loop of a face by var loop = qLoopEdges(def.face); and I have a plane p var p = plane(....); and I would like to find all the intersection points of this loop with the plane. Is there an inbuilt function to do this? More precisley if I have selected the sketch face in grey I would like to find the…
-
EXPORTING VALUE
How can I export this value?
-
How do I select an adjoining part in FS
I have a part studio with multiple parts, I want to be able to select 2 faces on one part and then also work on the part that adjoins it as below: The mock up is available at https://cad.onshape.com/documents/1d8686fa8d2943b37843e397/w/4b929d003a5a139e2f77286e/e/e0979796b001bdae18a9981c I can easily get all parts by using:…
-
Is there an interactive query explorer?
It would be useful to help my understanding of the various qXXXX() query functions to be able to use the UI to explore what they did. I envision a FS with a dropdown menu of most of the query functions (qLoopEdges, qVertexAdjacent, qConvexConnectedFaces etc. etc.) and some input fields. I could then select a function from…
-
CAPTURING USER INPUT
how can i capture user input from the ui and make it as attribute?
-
How do I correct holes that are on the wrong axis?
Thanks to some previous help here, I have managed to cut some holes using the hole tool but depending on the orientation of the part the holes end up incorrectly positioned. Not actually an issue currently as I will always work in one plane but I would love to make the feature universal for future proofing. Correct holes:…
-
SKETCH PLANE
can i query what coordsystem is the sketch created?
-
Are sketch operations like "offset" or "split" available in featurescript?
Are sketch operations like "offset" or "split" available in featurescript?
-
In Precondition, how do I set a default value for a Boolean?
I can set a default a default for an integer or float with something like: isInteger(definition.numberOfHoles, { (unitless) : [1, 10, 1000] } as IntegerBoundSpec); How do I set the default for a Boolean? Is there a "BooleanBoundSpec"?
-
Questions about units
I've more or less finished my first real feature script. Thanks for all the help! I had excellent help from the forum. I have questions about values with units. I think everything in the database has meters as the length unit. Other units are assigned as conversions from meters. When I print values via "debug()", the…