Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

QRCODE?!?!!??!!!!

10 REPLIES 10
Reply
Message 1 of 11
bcsurvey
696 Views, 10 Replies

QRCODE?!?!!??!!!!

I don't know what I'm doing wrong, but I obtained the lisp "qrcode" from http://www.swisscad.com/products.php?lang=en&product=qrcode but it seems that it's not creating the qrcode.dwg block as I'm getting an error in the ACAD text box saying "cant find file in search path".  It then lists all my support file paths. 

 

I've searched the net for a fix or better lisp, but what amazes me is that there is next to nothing on these forums on the topic, and this lisp is about a year and a half old!

 

Thanks

Civil 3D 2019 (6.1)
Windows 10 Pro (21H2)
(i7-11850H @ 2.50 GHz)
32GB RAM
NVIDIA RTX A2000
10 REPLIES 10
Message 2 of 11
bcsurvey
in reply to: bcsurvey

Is this lisp trying to insert block "qrcode" before it's even been created?

Civil 3D 2019 (6.1)
Windows 10 Pro (21H2)
(i7-11850H @ 2.50 GHz)
32GB RAM
NVIDIA RTX A2000
Message 3 of 11
troma
in reply to: bcsurvey

The lisp forum is over here:
http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/bd-p/130

Mark Green

Working on Civil 3D in Canada

Message 4 of 11
Jeff_M
in reply to: bcsurvey

You might find this thread of interest:

http://www.theswamp.org/index.php?topic=44091.msg493463

Jeff_M, also a frequent Swamper
EESignature
Message 5 of 11
bcsurvey
in reply to: Jeff_M

Thanks Jeff, I did come across that site in my searches, but what I was looking for was a complete lisp package that I could use.  It seems that the other posters on this site don't have a problem with the code (which looks to be the same as what I've been trying), but I can't get it to work as intended and don't know why.

 

I'm beginning to feel the heat telling me I need to increase my KSA's as they relate to lisp, vba, ect. and this may be part of that road (any tutorial sites you could recommend?).  But for now, could you tell me if there's something on my end that's causing the routine to fail (see attached)?

 

Civil 3D 2019 (6.1)
Windows 10 Pro (21H2)
(i7-11850H @ 2.50 GHz)
32GB RAM
NVIDIA RTX A2000
Message 6 of 11
dgorsman
in reply to: bcsurvey

All of the QR code generators I've seen for CAD rely on an internet call to generate an image, which is connected to a block definition, which is then inserted into the drawing.  Haven't looked at the code, but I suspect the block and/or downloaded image is being placed in a hard-coded directory (perhaps user local TEMP folder?) which isn't in the standard search paths.  Try searching the "standard" temporary file repositories on your computer for the indicated block.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 7 of 11
Anonymous
in reply to: bcsurvey

I know a good QR Code generator site which may be helpful.

Message 8 of 11
bcsurvey
in reply to: Anonymous

My problem seems to be where the "block" is being stored or if it's even being created.  The lisp text seems to call for the block before it's even been created.  I'm not familiar with this, so I can't say if this is normal or not.  The code's been around for a while so I wouldn't think that it would have any syntax errors, especially since a coworker claims to have gotten it to work . . .

Civil 3D 2019 (6.1)
Windows 10 Pro (21H2)
(i7-11850H @ 2.50 GHz)
32GB RAM
NVIDIA RTX A2000
Message 9 of 11
Jeff_M
in reply to: bcsurvey

I don't know how your co-worker got it to work. Evidently something has changed in the generator used by the lisp. This is the first line of text retrived from the code generator:

"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">"

 

This is the line of code in the lisp which it uses to verify a valid file was obtained:

((eq (substr QR 1 6) "111111");response OK

which is checking if the first line's first 6 characters are 111111. Obviously this is not the case since the first 6 characters are <!DOCT so the command ends and no block is created.

 

Edit! I looked at the entire string returned from the php web page, looks like it's been removed or taken off of public access:

<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\"><html><head><title>403 Forbidden</title></head><body><h1>Forbidden</h1><p>You don't have permission to access /tests/getqrcod

Jeff_M, also a frequent Swamper
EESignature
Message 10 of 11
bcsurvey
in reply to: Jeff_M

Thanks for translating that Jeff.  I'd sooner be able to read Chinese than determine what was going on in there!

 

So would swapping in a viable website fix things?

 

Civil 3D 2019 (6.1)
Windows 10 Pro (21H2)
(i7-11850H @ 2.50 GHz)
32GB RAM
NVIDIA RTX A2000
Message 11 of 11
Jeff_M
in reply to: bcsurvey


@bcsurvey wrote:

 

So would swapping in a viable website fix things?

 


I'm sure it would. But I suspect that this lisp was written based on specific PHP code for that specific website. So finding another link that gives the same output may not be such an easy task. But since I don't use these QRcodes, I really have no idea if one exists or not. You might try writing the original author of the lisp. Although he didn't include an email address in the code, a quick Google search found him on Twitter, Facebook, LinkedIn and a contact page at Swisscad.com

Jeff_M, also a frequent Swamper
EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report