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.

Pattern of sketches containing text with increasing values

I am trying to create a circular pattern of (embossed) text on a surface, with each instance displaying a different value in increasing order. A simple example would be a clock with hours values increasing around the dial. My final project will have much more than 12 values but the dial will serve here as an illustration for my problem.

So I did the folowing steps :

  • create a unitless variable "#num" initialized at 0,
  • create a second variable with same name defined as "#num+1",
  • create a sketch text with value "toString(#num)" with "convert to expression" enabled, it correctly displays "1" on sketch,
  • create the circular feature pattern including the second variable feature and the sketch displaying the "1", with "Apply per instance" enabled.

Unfortunately the circular pattern repeats the "1" value around the dial. So I started to search for public projects with a similar aim and found this project which creates a circular pattern of roman numbers. At first I thought that the custom feature used in the project was responsible for this correct behavior, but after copying the project and gradually removing the unwanted features (including the custom feature converting to roman numbers) I easily obtained what I wanted (see my version of the project here).

So I turned back to my project and tried to find what was wrong, but I am right now confused because I don't see what goes wrong in my version. Even when I repeat the same steps in the same order I am completely unable to obtain something different from a circular pattern of "1". However, when I add a sketch to display the value after the circular pattern, Onshape displays "12", indicating that the "#num" value was correctly updated per instance.

Do you have suggestions to obtain the correct result ?

Best Answer

  • bladecbladec Member Posts: 9
    edited February 17 Answer ✓

    This is a known bug. I forked the Text Path custom feature and hacked in a "fix" which seems to work. You can find the discussion here.

    Edit:

    Actually looks like it's fixed in the next release of Text Path version R3.2

    https://cad.onshape.com/documents/4e187c2b2f7f4974f4e2b612/v/8dd54734e7d3d0592ea33e7e/e/baeb80e186f64d9ff71a5cd9

Answers

  • bladecbladec Member Posts: 9
    edited February 17 Answer ✓

    This is a known bug. I forked the Text Path custom feature and hacked in a "fix" which seems to work. You can find the discussion here.

    Edit:

    Actually looks like it's fixed in the next release of Text Path version R3.2

    https://cad.onshape.com/documents/4e187c2b2f7f4974f4e2b612/v/8dd54734e7d3d0592ea33e7e/e/baeb80e186f64d9ff71a5cd9

  • lorris_charrierlorris_charrier Member Posts: 4

    Wow that was a quick and spot on answer, thank you very much. I worked like a charm at the first try, including on my more complex real project.

Sign In or Register to comment.