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.
string
Discussion List
-
toString in Description?
I'm trying to give a tooltip for a UI parameter using the description and I'd like it to show the range. I know if I enter a value outside of the boundsRange it will show the range automatically, but it would be nice to have some hint of what that range is without guessing. It seems like creating a const or inlining the…
-
How Can I Remove a Character from a String
I have a string that needs the last character removed. I can't seem to figure out how to do it. With the following expression, I can turn it into an array and remove the last element, but I can't figure out how to get it back to a string. resize(splitIntoCharacters(#Description),length(#Description)-2,1) I am trying to do…
-
How to Sort Array of Strings?
I have an array of strings that I would like to lexicographically sort using the sort (entities is array, compareFunction is function) function, but I'm not sure how to make the comparator function. As far as I can tell, there isn't a built-in string comparator, and I would very much like to avoid hard-coding an ASCII…
-
String Parameter won't reference a Text Config Variable
Hey Guys, I'm trying to use a custom feature to assign materials to parts. But I'm getting tripped up by the string parameter. I can't seem to configure the parameter using a text config variable? Presumably because "#" becomes part of a string and loses it's ability to signify another variable? Here is the annotation in…
-
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…
-
how to check if a string includes a substring?
how to check if a string includes a substring?
-
How can I create string variables?
I have a featurescript feature that takes a string as a precondition. Is it possible to define a variable that is a string that I can pass into this feature? I've tried setting the value of a variable to be something quoted in double quotes and single quotes, neither of these is accepted.
-
Having troubles with: skCircle(Sketch, Id (array), map) does not match skCircle(..., string, ...)
the id: id+'circle1'+keys debugs to: Id : [ "FIZxwPCJn00T9Nq_1" , "circle1" , "0" ] I presume the issue is that it is an array of strings however this is valid for a sketch so I am puzzled. The link is: https://cad.onshape.com/documents/95877be3b17f49277e87a2c3/w/b503830fd20472014beb1221/e/4c4431103f44e823aca947dd the…