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.
Can somebody explain this?
papawo
Member, Developers Posts: 206 PRO
I cannot have those inside the bracket remove in my function. how can I fix this ?
0
Best Answer
-
Jake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646Hi @papawo
The "Id" section of the documentation can explain this better than I can:
https://cad.onshape.com/FsDoc/library.html#Id
The error exists because you are jumping from:
id + "0" + "something"
to
id + "1" + "something"
back to
id + "0" + "something else"
If you post a screenshot of the section of code that is causing this trouble, we can work out a solution. It will just have to do with adjusting how you use ids rather than actually having to change any code.Jake Rosenfeld - Modeling Team5
Answers
The "Id" section of the documentation can explain this better than I can:
https://cad.onshape.com/FsDoc/library.html#Id
The error exists because you are jumping from:
id + "0" + "something"
to
id + "1" + "something"
back to
id + "0" + "something else"
If you post a screenshot of the section of code that is causing this trouble, we can work out a solution. It will just have to do with adjusting how you use ids rather than actually having to change any code.