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.

is it possible to make a circular number pattern? ie. a dial face.

Grompy989Grompy989 Member Posts: 18
I'm trying to make a 2 digit counter.  I have the design the way I want it, however I dont know how to make a circular pattern of numbers from 0-9.   Is this possible ??

Best Answer

Answers

  • Grompy989Grompy989 Member Posts: 18
    holy hell batman, you even made a video too... thanks for the info.. however the rotation isn't in the correct orientation, and the numbers are not flat to a surface.  

    think of a coin.  I need the numbers to go around the face of the coin.  and be 0-9 not 1-9.  

    but this vid definitely will be useful for another project
  • Grompy989Grompy989 Member Posts: 18
    thanks for the info.. I attempted to follow your directions. it did not work. 
  • MichaelPascoeMichaelPascoe Member Posts: 2,813 PRO
    edited February 2023

    Sure thing @johnathan_oey872. This technique is a difficult one to do. Feel free to share a link to your document and I will take a look. From here, the simplest way to pattern it flat will be to change the orientation of the number.


    To re-orient the number you will need to edit the in context mate connector that determines the text location do this:
    • Edit the Text feature.
    • Click the very small mate button to edit that implicit mate.
    • Change the origin of the mate to the start of the axis line.
    • Set Z to 0.
    • Set Y to whatever you want.
    https://cad.onshape.com/documents/aff472c3def984252e6e3fb4/w/3c972d6084bec1d9fd09e0cb/e/2e0fafe2ffeea1699f698760?renderMode=0&uiState=63ee297b8f9af21504b6b4f1



    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    ▚▞▚▞▚▞▚▞▚
    ________________________________________________________________________
  • eric_pestyeric_pesty Member, pcbaevp Posts: 2,600 PRO
    You could also add a "rotation" transform (rotating by -360/#count) to have all the digits facing "up" if desired.
  • MichaelPascoeMichaelPascoe Member Posts: 2,813 PRO
    Answer ✓

    @johnathan_oey872, I looked at the history of your document and copied it back where you gave it a try; you got very close!

    Here are the things I changed to fix it:
    • Text implicit mate location.
    • Transform angle to 360 / #qty * #count.
    • Transform axis.
    • Pattern qty to use the variable #qty.
    https://cad.onshape.com/documents/11be8f315519c158facf43ad/w/67b4d0efd161e70caadc0944/e/1fe09e3fc77596c4f4f4b5e0?renderMode=0&uiState=63ef74bf708b0b77c6bacd19




    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    ▚▞▚▞▚▞▚▞▚
    ________________________________________________________________________
  • Grompy989Grompy989 Member Posts: 18
    FINALLY !!  LOL thanks for the help... Its working now... But now, how do make them look like they are engraved, not raised !

  • dirk_van_der_vaartdirk_van_der_vaart Member Posts: 561 ✭✭✭
    Adjust the Z axis in the transform so that the number's in a bit in the green circle and than Boolean substract
  • MichaelPascoeMichaelPascoe Member Posts: 2,813 PRO

    @johnathan_oey872, adjust the implicit mate connector location inside the Text feature. Bring it down in the Z; then, after the pattern, use Boolean subtract like Dirk mentioned.


    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    ▚▞▚▞▚▞▚▞▚
    ________________________________________________________________________
  • Grompy989Grompy989 Member Posts: 18
    attempted the boolean subtract. It did not work. 
    edited text
    Z height direction to opposite
    selected each "part" for each number
    right clicked
    clicked boolean/subtract

    failed to regenerate

    what am i missing

  • Grompy989Grompy989 Member Posts: 18
    Figured it out by dumb luck....

    I needed to click the "Targets" button and select the part to change in the boolean / subtract section..


  • jmsaltzmanjmsaltzman Member Posts: 20 ✭✭

    This is amazing! Many thanks, @MichaelPascoe!

    Also (ahem) an old thread, and I found an issue: numbers greater than 9 draw strangely. When I try the example with qty=11, I get this:

    Screenshot 2025-02-27 161019.png

    The 0 from 10 is positioned with the first digit, with space for the 1. This seems like an issue with the amazing Text feature (up to date fwiw). I tried to make a clock face, starting count at 0 (vs -1) so the clock face starts counting with 1 in the right position, but it does the same thing with the 0 from 10:

    Screenshot 2025-02-27 162309.png

    I've drawn patterns like this previously using a Python script to generate an SVG which I convert to DXF and import. That works fine but THIS method is amazing for being inside Onshape (and for the incredible variable jiu jitsu).

    Any clues would be appreciated. Here's the file I put together, showing my first example.

  • S1monS1mon Member Posts: 4,056 PRO

    I would look at "text path". It should solve all of the issues much more quickly.

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • MichaelPascoeMichaelPascoe Member Posts: 2,813 PRO
    edited February 2025

    I think sketches can now handle feature patterns with text expressions? So no need for a custom feature.

    Nevermind, I just tried it. Sketches still can't handle this: https://cad.onshape.com/documents/11be8f315519c158facf43ad/w/67b4d0efd161e70caadc0944/e/dd792b0c95a5010725997…


    RENDERCAD
    rendercad.ai - Photorealistic product rendering.

    ▚▞▚▞▚▞▚▞▚
    ________________________________________________________________________
  • jnewthjnewth Member, OS Professional Posts: 112 PRO

    There's a simpler way to do this as @S1mon mentioned. Here's a version of your doc that has your dial:

    https://cad.onshape.com/documents/4fd1a079592b7f4a7b788a8e/w/be94444c984ed56c4bd0e526/e/3569728fa430422861c1bbb0

    And you can learn more about the Text feature here:
    https://forum.onshape.com/discussion/comment/101768#Comment_101768

    The doc that contains the Text feature includes a set of Clock face examples. This custom feature distributes text or sequences around a path, including closed paths (so where there's no beginning or ending).

  • jmsaltzmanjmsaltzman Member Posts: 20 ✭✭

    @S1mon your script is a dream, thank you!

    And @MichaelPascoe thank you for the expression insight!

Sign In or Register to comment.