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.
New Feature: Codes
Link to Codes.
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.
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
-
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.
0 -
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.
0 -
@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.
0 -
I like the API workaround. Definitely doable.
0 -
@DavisParker That's a useful reference point, thanks. Do you read those with a regular phone or a dedicated scanner?
0 -
@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.
0
Categories
- All Categories
- 10.2K Community Support
- 4.6K General
- 194 Account and subscriptions
- 353 Data management
- 1.6K Product Feedback
- 215 New in Onshape
- 15 Onshape Labs
- 76 CAM Studio
- 35 PCB Studio
- 107 Simulation
- 209 Onshape Mobile
- 315 App Store & Partners Apps
- 8.2K Using Onshape
- 1.8K Drawings
- 2.3K FeatureScript
- 324 Learning Center
- 254 Education Community



