-
Is there a getAllVariables()? Specifically Configuration Variables.
Is there a way of accessing a list (map) of all (configuration) variables in a Part Studio? Perhaps a way of accessing the input of the build(config) function? Basically a getAllVariables() is what I'm after, in the spirit of getAttributes(...qEverything()...)
-
opFillet availability in sketches?
I saw in a post a couple of years old, that opFillet is not available in sketches. Has that changed in the last two years? I'm working on a project to generate digital wood joints, and many joints consist of two parts joined with complementary geometry. Frequently, I use the same sketch to generate the complementary…
-
Choosing inputs based on Lookup tables
Suppose I have a parameter definition.table based on the following lookup table: "Color" "Reds" "Light Red" "Dark Red" "Blues" "Light Blue" "Dark Blue" Is there a way of having definition.table determine whether or not a second parameter shows up in the feature UI, based on whether the user selected "Reds" or "Blues"? I…
-
holes to points in circular pattern
i want to do holes. i created points in a circular pattern as the center for the holes. no i have difficulties defining the locations and the scope in fs for the holes. const anzahl = dimensions.Rotation; for (var i = 0; i < anzahl; i += 1) { const t= rotationAround(rotationAxis, (2*PI* radian) * (i/anzahl) ); const…
-
Call skEllipse(Id (array), string, map) does not match skEllipse(Sketch, ..., ...)
Im have some difficulties with my first Loop. I'm trying to create ellipses on different sketches. heres the code I want the ellipses to be on different sketch heights, but they are all on the same heigth. Any suggestions?
-
LOFT_SELECT_PROFILES error
I'm trying to create a loft from a defined face to an created point. I always get the error LOFT_SELECT_PROFILES. //Loft var top = (normal * definition.Height) + origin; const vertexID = id + "topVertex"; opPoint(context,vertexID,{point : top}); var topVertex = qCreatedBy(vertexID, EntityType.VERTEX); var profiles =…
-
Computing transform for use with Instantiator
I'm writing a feature with two primary inputs: a face on which to add the whole-lie feature, and a set of points specifying locations to instantiate them. I'm having some trouble figuring out how to combine the two into a transform for the effect I'm looking for when calling addInstance(). My current effort uses…
-
F1 Style Cambered Aerofoil Feature Script
I've been using Onshape for a while now, I lecture in Aerodynamics at Northumbria University in Newcastle, UK and actively use Onshape as part of the modules I teach across different Engineering disciplines. Recently I've been working on a slightly larger project with students to design an open-wheeled F1 style car and…
-
thickness of a cuboid
After selecting 2 vertex to create cuboid, How can I get the cuboid thickness by query?
-
Can we use FS to set the "Exclude from BOM" property.
Hi folks. I have a part studio that uses configurations to create a laminated material. I have the configuration table set a sensible PN and name description for just the first layer of the laminate but I'd like to exclude all the other layers from the BOM. Rather than set many values in a table for each config option I…
-
area of each face
How can I get the area of each faces of a box? It gives me the correct number of the faces but I cannot get each area of the faces. evarea is giving me the total area of all the faces.
-
Getting the value
-
wrong type Number- what does it mean?
-
How to improve the onshape featurescript manual
As the shopworn cliche has it, a picture is worth a thousand words. Now it is scandalous that the manual for a highly visual system like onshape cad lacks so much as a single illustration. One is left to try to picture in his mind the concepts being explained in the manual as best he can. This will never do if onshape…
-
PLANE_OFFSET_BOUNDS
can somebody explain why I am getting this error?
-
array parameter - how to use
Can somebody explain or sample on how to use this?
-
query question
how to query a transient?
-
Editing interface labels
I am writing a rather complex FeatureScript feature that takes in a length as an input, stored in definition.length. Depending on a few options (enums), I would like the label of this input to either read "Edge length", or "Short edge length", or "Long edge length", while still storing the value in definition.length. I…
-
qParallelPlanes
How to use qParallelPlanes ? Will it give me plane/face of the part parallel to the ref plane selected?
-
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?