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.
Variable array
Discussion List
-
Variable Array
I have been trying to make a variable array, but did not succeed. Can anyone tell me how to do it?
-
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…
-
Featurescript to select the variable
Is it possible to use featurescript to select the #variable array? I have a #Variable array that I would like to select using UI booleans.
-
How to add elements to a vector/matrix?
Is it possible to add elements to an existing vector in FeatureScript? Let's say I have var x = zeroVector(3) I would like to do something like this: x[4]=1 and get x=[0 0 0 1] What is the proper way of getting this done?
-
Arrays in Featurecript
In the php scripting language I can create a two dimensional array as follows: $FlangePN10["15"] = array("OD" => 80,"THK" => 12, "NumHoles"=>4, "BHD"=>11,"PCD"=>55,"ID"=22); $FlangePN10["20"] = array("OD" => 90,"THK" => 14, "NumHoles"=>4, "BHD"=>11,"PCD"=>65,"ID"=28); $FlangePN10["25"] = array("OD" => 100,"THK" => 14,…