Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

Too small variable field

sergei_nesterovsergei_nesterov Member Posts: 40 ✭✭
edited April 17 in Product Feedback
I create a variable and enter a very long formula. The program gives me an error, but since the field is very small, I can't view the entire formula, which makes it difficult to find the error. The same problem exists in sketch mode when setting the feature size. Therefore, I ask you to make the fields where you can enter formulas changeable depending on the size of the formula (the content of the field). 

Comments

  • Ethan_KEthan_K Member, Onshape Employees Posts: 52
    One solution to this that sometimes makes sense is to break your formula into smaller logical 'chunks'. For instance, I see you are taking a floor() of some dimension, which means you are probably determining some number of x to place along y. So in this situation, you may consider making an intermediate variable in the feature list to represent num_x, for instance. In general, it is best to break apart long functions into smaller logical steps - this also helps find duplicate logic, so you can just reuse the same intermediate variable instead of rewriting that part of the formula each time. I agree, though, that the length of the text field is a bit small!
Sign In or Register to comment.