qr code code generation by python

qr code code generation by python

thavasimanis
Participant Participant
227 Views
1 Reply
Message 1 of 2

qr code code generation by python

thavasimanis
Participant
Participant

Is there any possible way to generate the QRCODE for the sheet number by python code.

 

\\

# Import QRCode from pyqrcode
import pyqrcode
import png
from pyqrcode import QRCode# String which represents the QR code
s = "C-03-STN-56789.dwg"

# Generate QR code
dn = pyqrcode.create(s)

# Create and save the svg file naming "myqr.svg"
dn.svg("myqr.svg", scale = 😎

# Create and save the png file naming "myqr.png"
dn.png('myqr.png', scale = 6)

\\

 

If it is possible pls explain.

 

Thanks and Regards

STM

0 Likes
228 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

Yes, sure. Simply place the generated image on the sheet. Try it out in the user interface, see how it works, and then reproduce the same steps programmatically.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes