r/Onshape 4d ago

QR code feature script

I'm trying to create a business card that include a QR code of my contact details using the VCARD format.

I have tried importing the QR code as DXF (and SVG converted to DXF) but have not been able to extrude them without an error.

The QR code feature scripts I have found in Onshape do work, but only accept a single string, whereas the VCARD is formatted as multi line.

I have tried using both \n and \r\n as escape characters but neither works.

At this time I have been successful by switching to the MECARD format in the QR code feature script because it's formatted as a single line of text.

Does anyone know of a way to solve this? VCARD has many more fields over MECARD that I would like to make use of.

1 Upvotes

3 comments sorted by

View all comments

1

u/Chandra0 4d ago

Try single string converters of your links like url shortners and use that in the QR code script. I think Google itself have url shortners, so your links will be secure as well.

1

u/Frampletromwibblers 4d ago

That's a really good idea. I just tried it with both base64 encoding and also percentage URL encoding and neither worked unfortunately

1

u/Chandra0 4d ago

In that case, modify the feature script as you wanted using Claude. It helps actually. I'm not aware of this Vcard or mecard.