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.
How Do I Subtract a Number from My Variable
3966_cad
Member Posts: 10 EDU
I am trying to iterate an skCircle to space them out evenly, but I keep on running into an error:
"Can not subtract ValueWithUnits (map) and number"
I know what the error means, but I can't figure out how to make it work.
I would appreciate any help you can offer me.
"Can not subtract ValueWithUnits (map) and number"
for (var i = 0 * inch; i < definition.length; i += 1) { var iss = i - 0.5; skCircle(sketch2, "circle" ~ i, { "center" : vector((iss), 0.5 * inch), "radius" : 0.6299 * inch }); }Here is the link to the full file.
I know what the error means, but I can't figure out how to make it work.
I would appreciate any help you can offer me.
Tagged:
0
Comments
and
and
respecively.