i want to insert a QR-code specific to the drawing.
Is the information Specific to the Part which is in the drawing or the drawing template, do you have any pictures?
imagine any general dwg file, i want to generate a QR-code specific to this file and insert into any corner so it can be readable in the future digitally. (similar to the functionality by Autocad QR-code add-on and camstudio ImageConvert plugin)
The QR Code is basically another form of a hyperlink. So long as the file location you want to reference is accessible that way you should be able to use a QR generator. I just tried it, but had to make a shortcut of a file and then grab the target of the shortcut to get the whole file address. It did generate a valid code (using QR Code Generator - Create QR codes here ). The target would have all the information necessary so if you just changed the filename for other files in the same directory it would be easy enough to generate the correct path to feed into the code generator.
So, it seems like in addition to the filename showing on the drawing you want to provide a hotlink to it. That's interesting. The most I've seen is a full path and filename shown on a drawing. By the same token, you could provide a QR code for the eDrawing associated with the drawing as well. Very interesting indeed.
yeah, thanks for the answer but i jus hoping to generate and insert QR internally in the solidworks software.
I'm looking to do this too, I ask that you post the answer here yourself if you manage to do so. I will post if I come across something too.
Can you insert QR codes as the logo/picture int he drawing?
Thanks for the suggestion, but my boss prefers not to depend upon an external service for this, as he wants to implement this in the long run. However, if you know of some open source code in VBA or VB.NET or C# that I can use to code a macro that would be great.
Barcodes would work too.
There is no source I know of that can create QR code or Bar Code in the sketch format.
Alright, even I struggled finding something. Eventually, I found this piece of open source code that essentially is a URL image grabbing code which uses Google's online API QR Code service. The code says that it is in VB.NET, but is listed in the asp forums.
Deepak, can you tell me how to create a new macro using VB.NET in SolidWorks?
You would need Visual Studio for making the program. You can download the Express version which is free.
Here is link to How to generate QR Code in vb net Again this would generate the QR code in form of a picture and not sketch.
Can I just open up the macro editor in SolidWorks and edit this? Also, in case this can be done ONLY using Visual Studio, is there a way to link an existing solidworks macro with this piece of code?
No you need to create a new program using Visual Studio as I'm not sure of this can be done in VBA.
Retrieving data ...