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.

New Feature: Codes

DavisParker
DavisParker OS Professional Posts: 21 ✭✭

Link to Codes.

Note Studio - image.png

This started as the code element for my Label Feature and grew into a feature of its own. It puts text on a part as a QR code, a Data Matrix, or a Code 128 barcode, and makes it as a sketch, a split face, an extrusion raised off the part or cut into it, or an engraving that uses the bit settings from my Engrave feature.

The big difference from the existing QR Code feature is speed. That one builds a body for every dark module and booleans them together, which was slow in my testing. This one traces the outline of each group of modules into a single sketch, so the same code has fewer round trips to the kernel. The encoders were written from the standards and checked against independent implementations.

Note Studio - image(1).png

Engraving plunges a dot at each module and runs one groove along the finder patterns, so it works for dot peen style marks too. If only we could read part numbers directly this would be a powerful feature on any part. Hope this is useful!

Comments

  • hen_top
    hen_top Member Posts: 4 ✭

    Tracing each group of modules into one sketch is a smart way around the per-module booleans. Is there a minimum module size you'd recommend for the cut-in version to still scan on a resin print? On my Form 4, fine features around 0.3 mm get fragile.

  • EvanReese
    EvanReese Member, Mentor Posts: 3,112 PRO

    This is really awesome! Thanks for sharing. You're probably aware, but the workaround for reading part numbers is to do it in Editing Logic and cache it in a hidden array parameter and add a button to refresh it. It won't update live if the part number changes, but it can at least get it once, and be updated manually when you want to.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • DavisParker
    DavisParker OS Professional Posts: 21 ✭✭

    @hen_top I don't have any real experience with resin printers. At my day job we have data matrices laser engraved in a 10 x 10 mm square, which works out to roughly a 0.6 mm module size for our part numbers.

    @EvanReese Yeah, I'm doing that in the Label Feature now. We normally encode the part revision too, so it's annoying to have to open it that often. I might see if I can use the API to make sure they're all updated before a bulk release.

  • EvanReese
    EvanReese Member, Mentor Posts: 3,112 PRO

    I like the API workaround. Definitely doable.

    Evan Reese
    The Onsherpa | Reach peak Onshape productivity
    www.theonsherpa.com
  • hen_top
    hen_top Member Posts: 4 ✭

    @DavisParker That's a useful reference point, thanks. Do you read those with a regular phone or a dedicated scanner?

  • DavisParker
    DavisParker OS Professional Posts: 21 ✭✭

    @hen_top We have a handheld scanner that links to the computer for when scanning is part of a production process, but the codes all scan on my phone too. If it's just a part number, it opens in my notes app with that text.