Qr code generator for solidworks drawing

Hey Dan,

Here’s how to solve the issue:

Edit the macro and go in Tools>References


Uncheck the missing references and check the ones refering to 2022

Thank you. I couldn’t figure out how people got to the references window.

I looked at the help file and the only thing it said was “show the references window” I was like, “HOW!!?”

lol

Thank you for sharing your QR code generator macro! It’s impressive that you’ve crafted a solution tailored to your needs, especially without a programming background. I’ll definitely give it a try. Hopefully, others in the community can help enhance it further. Great job!

1 Like

Thanks for sharing the qr generator!

My sketch picture dialog stays open. API says something about “This method does not support drawing documents” for the below code line
Part.SketchManager.InsertSketch2 True

Using this line of code instead seems to exit the sketch picture dialog.
Part.EditSheet 'exit edit sheet format

If you want to insert a couple QR codes without macro closing run it as vbModeless and comment out the unload
UserForm1.Show vbModeless
'Unload Me

1 Like

Hi everybody,

I stumbled on this page whilst reading through older threads i have missed.

I’m interested in looking at the code of this macro. What QR code generator is used here?

Does anyone have the downloadable macro? It seems to have disapeared during the data migration to the new website or do i just miss it by not looking at the right spot?

Thanks Omur for sharing this!

Eddy

1 Like

I edited the original post and attached the original macro file. Looks like I had downloaded it at the time so I had a local copy.

3 Likes

Thank you Jim!

1 Like

Hi all

Some additions to the source code:

  • options for insertion coordinates XY and QR code size;
  • QR code have some colors;
  • QR code transparency on/off;
  • insertion of the drawing file name into text and generation code;
  • folder c:\temp replaced with the macro folder
  • some small things

QR Code Generator v0.2.zip (254.6 KB)

4 Likes

Hi,

would you be able kindly explain me how to set this macro to achieve the same?

I am getting a message: Cannot save C:\…….\QrCodeInsert.swp

thanks

Arek

You must unzip the archive containing the three files into any writable folder, create a macro button and assign the Main.main procedure to it.

Create button:

Customize macro:

1 Like

Cool mod. I’ve programmed it to do the same size and placement every time. Works like a charm

Hi,

thank you for you reply.

in your Zip file there is no Main.main file.

1 Like

Main.main it’s a method, no file. U can choose in after choose file in step 1.

1 Like

Hello everyone,
I haven’t been able to log in for a long time.
Hi JTok, this is a great improvement, thank you.

3 Likes

Glad to see you back Omur!

4 Likes

Hi all. New version v0.3

Changes:

  1. Added icons to the buttons.

  2. All text fields of textboxes are saved in the registry upon exit and are restored when running the macro from the registry. Comboboxes are saved too.

  3. Added QR code size adjustment in pixels

  4. Changed the TEMP folder for saving the intermediate QR code image. Previously, it was in the folder with the macro, now either in the SW backup folders, or in SW auto-recovery, or, if they are not specified in the SW settings, again in the folder with the macro (In this case, the folder with the macro must be available for writing.

  5. Added QR code generation buttons - phone (when hovering, we call), link to the site (when hovering, we go to the Internet), send email (when hovering, the mail client opens), open vcard (when hovering, it offers to save the contact):

Good luck.

QR Code Generator v0.4.zip (248.5 KB)

5 Likes

Anyone share how they are using this? Our workflow is more pc based and phones don’t have access to files on the network.

1 Like

Try to scan QR code on this drawing:

Bed.pdf (82.2 KB)

1 Like

We do something similar linking to a Dropbox folder for our production team to get the drawing they are reading on their tablet too. The folder also contains Edrawings (or rather Eparts) for downloading, but often when working with large file sizes Edrawings crashes on the tablet. This online 3D viewer you’re using, is that better at handling larger files, you think? Maybe having the file in a browser window is lighter.

Hmm, save as PDF doesn’t seem to export pictures anymore. Anyone else got this problem? Any inserted picture will be omitted from export except pasted screenshots. The only thing that works is using print to PDF.