-
face of the bounding box
I would like to change the face of the bounding box. can I use any part face to move/change the bounding box face? or is it possible?
-
Call user created scripts in another script
If I have written one script called custom_axis, and am now writing a new script. How could I call custom_axis in this new script? I have tried entering custom_axis in the hopes ti appears in the drop down list, but it doesn't. How could I do this? Thanks Lee Hesketh
-
Colors in Featurescript
Hey Onshape people- I'm working on a project for competitive robotics and it would be pretty sweet if I could set the color of a part/extrude in featurescript. The standard documentation doesn't seem to have functionality for it and a quick search didn't turn up anything, but any help that you can provide would be much…
-
Selection-Driven Array Parameter?
I noticed this new parameter type while editing a FS today. How exactly is it used as compared to a standard array parameter? @ilya_baran, @Jake_Rosenfeld? I know queries were already supported by array parameters, so what does the new "Driven query" setting get me? Standard Array Parameter: annotation { "Name" :…
-
query Parts
can I query for how many numbers of parts in featurescript?
-
area or volume of a part
can I query the volume of a part?
-
Can you control a mate animation using featurescript?
For example, I'd like to have nonlinear ration speeds, and very long, complex animation movement involving multiple mates, controlled by featurescript calculations. Is any of that possible?
-
error message
what does it mean?
-
PATTERN_NOT_ON_BODY
What does it mean?
-
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.…