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

(macro)qrcode to string

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
moraschini
250 Views, 3 Replies

(macro)qrcode to string

Hello everybody,
i want build a macro with the variable write inside a qrcode everytime different print on the drow from cad.

 

{0}ARS{1}17103{2}1{3}560x370{4}26/03/24{5}10{8}PH;1;8;B;+4;SI;;{9}MX;GB;AL;11/03/24{10}6060;9.263;13.44;SMART;6{11}.;17103/1;.;.;BO-17103{12}629616{13}53378{14}P1;.;.;.;.{15}P2;.;.;.;.{16}P3;.;.;.;.{18}2{33}FN 0940;FN 0941;FN 0942;FN 0943;FN 0944;FN 0945;FN 0946;FN 0947;FN 0948;FN 0949{AL}cliente=ARS
matrice=17103
barra=1

this is what my qrcode of test contain, but when i scan it at the 244th character the macro go to error.

in my opinion the 'string' variable can contain a maximum of 244 character.
do someone know a way to baypass this problem?

 

thanks in advance for the help

 

3 REPLIES 3
Message 2 of 4
icse
in reply to: moraschini

Can you share the macro?

 

Did you try to split the string?

Tags (1)
Message 3 of 4
psx2
in reply to: moraschini

hi,

i tryed this and work fine

 

String test = "String Test = {0}ARS{1}17103{2}1{3}560x370{4}26/03/24{5}10{8}PH;1;8;B;+4;SI;;{9}MX;GB;AL;11/03/24{10}6060;9.263;13.44;SMART;6{11}.;17103/1;.;.;BO-17103{12}629616{13}53378{14}P1;.;.;.;.{15}P2;.;.;.;.{16}P3;.;.;.;.{18}2{33}FN 0940;FN 0941;FN 0942;FN 0943;FN 0944;FN 0945;FN 0946;FN 0947;FN 0948;FN 0949{AL}cliente=ARS"
print $test

 

Message 4 of 4
moraschini
in reply to: moraschini

hello guys, i think the problem is into the qr scanner reader speed and it give me the mistake in the macro, i solve it with an external program

 

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

Post to forums  

Autodesk Design & Make Report