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.
Need to use a variable to define the entity count of a linear sketch pattern
neobobkrause
Member Posts: 105 EDU
The pattern constraint on a sketch can accept a numeric entity count value. However it won't accept a value based on a variable reference.
It might also be worth mentioning that I was able to use a variable reference to define the entity count of a linear shape pattern.
It might also be worth mentioning that I was able to use a variable reference to define the entity count of a linear shape pattern.
2
Comments
Wait, what happened? The variable value was 5. When I entered the variable reference the entity count of the pattern changed to 5. But when I looked at the entity count definition I found a hard-coded value of 5. Use of a variable reference now back to generating an error. Investigating further.
The workaround I was pointed to is to do any patterning as a feature rather than in the sketch. In my case I was doing a variable-defined number of slots around an axis. Using Face Pattern it's possible to set this to a variable.
I agree that this needs to work in sketches as well.
Ouch!