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.
Search
-
Featurescript: passing by reference.
I keep getting stung by passing by reference. I have a multi dimension array which I am recursively parsing but the only way I can get it to work is if every item is in a box. e.g as a trivial example ... var x=new box([new box(1), new box(2), new box( [new box(3), new box(4)] ) ]); output(x); clear(x); output(x); function… -
Re: Featurescript: passing by reference.
-
Re: Featurescript: passing by reference.
Ah, that explains a lot. My structure isn't changing, just the values so I can pass the arrays by value and put the values in boxes. Not perfect but I can manage with that. Thanks. var x=[new box(1), new box(2), [new box(3), new box(4)] ]; clear(x); output(x); function clear(x is array) { for (var y in x) { if (y is array)… -
Re: Featurescript: passing by reference.
-
Re: Featurescript: passing by reference.
5 results