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.
Options
understanding oppattern input (invalid input error)
![christopher_mcvey](https://cad.onshape.com/images/placeholder-user.png)
ok.. tried searching for various things but my issue is that I don't understand what inputs are required in what form I think.. my featurescript is here (no laughing!) silly feature ..
I think I have everything correct but it says invalid input when I try it.. the entity to copy is a solid body, the transform is basically a do nothing placeholder and the instanceNames is an array of unique string names. some of the annotation inputs are for later functionality so they shouldn't make a difference.. but I have no idea.
![](src)
![Image: https://us.v-cdn.net/5022071/uploads/editor/db/p484nv6a8b4j.png](https://us.v-cdn.net/5022071/uploads/editor/db/p484nv6a8b4j.png)
![Image: https://us.v-cdn.net/5022071/uploads/editor/0k/yx9kl1bwpkm9.png](https://us.v-cdn.net/5022071/uploads/editor/0k/yx9kl1bwpkm9.png)
I think I have everything correct but it says invalid input when I try it.. the entity to copy is a solid body, the transform is basically a do nothing placeholder and the instanceNames is an array of unique string names. some of the annotation inputs are for later functionality so they shouldn't make a difference.. but I have no idea.
![Image: https://us.v-cdn.net/5022071/uploads/editor/db/p484nv6a8b4j.png](https://us.v-cdn.net/5022071/uploads/editor/db/p484nv6a8b4j.png)
![Image: https://us.v-cdn.net/5022071/uploads/editor/0k/yx9kl1bwpkm9.png](https://us.v-cdn.net/5022071/uploads/editor/0k/yx9kl1bwpkm9.png)
0
Best Answers
-
Options
lana Onshape Employees Posts: 703
instanceNames array has to be the same length as transforms array ( in this case 1) . If you want to create `definition.entityCount` copies, you need to provide that number of transformations1 -
Options
christopher_mcvey Member Posts: 4 ✭
lana said:instanceNames array has to be the same length as transforms array ( in this case 1) . If you want to create `definition.entityCount` copies, you need to provide that number of transformations0
Answers