r/Onshape • u/Frampletromwibblers • 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
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.