-
Applying Material in featurescript
Can somebody point me to the right direction on how I can do this. I have a material in FS as enum . but no density , no color etc yet. and I know onshape has a material . But can I add a material properties that I can apply to a body in FS?.
-
Customized toolbar
Do we have capability in OnShape to create a customized toolbar as in CATIA? I tried featurescript but could create customized commands not the toolbar. Appreciate your help in this.
-
Duplicate part N times and alter extruded text based on string array of length N
Onshape community - as the title states I'd like to duplicate a part N times and alter extruded text on the part based on a string array of length N. My motivation: I need to create N STL files with N people's unique names engraved on the part. When saving I can request onshape to save all the unique parts as their own STL…
-
Is there a way to find the extents of an object with one command?
My ideal would be a way to 'automatically' find the smallest volume rectangular box containing the object(s) and then spit out the height, width, length, area, & volume of said box. The target objects being individual or combination of surfaces, parts, or assemblies (whatever is selected).
-
How do I get an angle?
How do I measure an angle between two faces on different parts in FeatureScript?
-
Moving a Sketch
How can I move a line from 1 plane vertex (0,0,0) to another plane with different vertex?
-
exponent
vector is giving an exponent number. can it give a rounded number?
-
Why do I get "@evBox: CANNOT_RESOLVE_ENTITIES" when the feature works fine?
This is not a problem as such as the feature works fine but I would like to understand why I get the above message. I started trying to trawl through the various links in the notice but with limited clues to hunt for I gave up! I am creating a sketch, creating sketch points, using these in the hole feature and then…
-
evlength question
when I select several lines evlength add the total length and extrude. How to keep each extrude the same length as the sketch line but able to still select multiple line.
-
How to get the "Part_Number" with FeatureScript?
Hello Everyone, I need to name my configurations parts automatically. The "Part_Name" should be "Part_Number" + "Part_Description" The reason is when I export the part as a STEP-File it should contain the Number and Description in the File Name. I managed to automatically create the "Part_Description", but I can't request…
-
why does opDeleteBodies doesnt work?
opDeleteBodies(context, id +"deleteBodies", { "entities" : entities });
-
lineAnglePlane
need explanation on how to use lineAnglePlane
-
how to use mirrorAcross
-
Beams 2.0 question
can somebody explain this code. I am getting error msg "Can not divide ValueWithUnits and undefined" I am using feature instead of sketchprofile.
-
Will there be more tutorials in the "Create a slot feature in FeatureScript" series?
* Create a slot feature * Add sketch geometry These two tutorials are an excellent start for feature script training. The intro makes it sound like there will be more up to making a full assembly utilizing the slot feature. Is that still coming?
-
User contributed featurescript documentation
One downside of the constant flow of additional features to OnShape is the featurescript documentation gets somewhat left behind. Sometime I discover something by chance (or by close study of the std features source code) and would love to be able to share that knowledge in a structured way. For example I found today that…
-
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?
-
New FeatureScript: Pocket Holes
Hi everybody, I would like to share my first FeatureScript: Pocket Holes. The feature is very straight forward: * Choose entry face * Choose exit face * Select vertices where the pocket holes will be created * Select thickness of part that will have the pocket holes You can find the FeatureScript…
-
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…