When I run scripts in ACAD, unknown commands error

When I run scripts in ACAD, unknown commands error

davidzFY14
Explorer Explorer
720 Views
9 Replies
Message 1 of 10

When I run scripts in ACAD, unknown commands error

davidzFY14
Explorer
Explorer

Hello. as the image showed, in AutoCAD Magyar (Hungarian), script does not work well.

How to run it correctly?

0 Likes
Accepted solutions (1)
721 Views
9 Replies
Replies (9)
Message 2 of 10

tramber
Advisor
Advisor

Well, it is obviously a problem that language with no accent don't have !

just put FOLIA instead of FÔLIA or any accent.

You know ?

In French, if i write the word "line" in my language, "LIGNE", it is ok if i write "Lïgné", for exmple. It is ok in the command palette wich must be kind of interpretor.

But if i write with accents in the script then i got :

lïgné Commande inconnue "LA¯GNA©"

 

Conclusion : remove accents in the script


EESignature

0 Likes
Message 3 of 10

davidzFY14
Explorer
Explorer

Hi friend, thanks for your reply.

I just try to modify it and remove the accents in the script, then run the script, but it shows FOLIA is unknown commands.

  02.png

So script won't be run correctly if it have  commands with accents in it?

0 Likes
Message 4 of 10

davidzFY14
Explorer
Explorer
Hi friend, thanks for your reply.
I just try to modify it and remove the accents in the script, then run the script, but it shows FOLIA is unknown commands.
So script won't be run correctly if it have commands with accents in it?
0 Likes
Message 5 of 10

tramber
Advisor
Advisor

You must remove the "-" too 😁😉

Did i forget to tell U ? 😎

 

[Edit] FOLIA is a command; -FOLIA is a command with no dialog box so you can train and improve your script

But with script, "-" is not required and not understood[edit]

 

Scripts have some laws. But you got them now 


EESignature

0 Likes
Message 6 of 10

davidzFY14
Explorer
Explorer

yes, I tried but it still didn't work.

the script runs well in English version.  

03.png

davidzFY14_1-1652263277911.png

Just want to use this script to set the drawing size, so it doesn't work for Language Hungarian

 

0 Likes
Message 7 of 10

tramber
Advisor
Advisor
Accepted solution

I am sorry and a bit surprised.

Don't know if it helped.

Don't know why FOLIA (that i don't know) doesn't work...


EESignature

0 Likes
Message 8 of 10

JTBWorld
Advisor
Advisor

Add underscore _ before the English command names and command arguments and it will work for other languages too. Example _-LAYER


Jimmy Bergmark
JTB World - Software development and consulting for CAD and license usage reports
https://jtbworld.com

0 Likes
Message 9 of 10

cadffm
Consultant
Consultant

 


@tramber wrote:

You must remove the "-" too 

But with script, "-" is not required and not understood


I disagree 100%, why are you writing that?

Any (not)working sample for us?

 

 

-

 

 

@davidzFY14 

Check your setting here

Sebastian

0 Likes
Message 10 of 10

tramber
Advisor
Advisor

Well,

You are right... i don't know why i had that in mind...

I wrote so many of them, a time ago !

Maybe an habit to remove them, i don't know.

I didn't check and thought about -PAN, and i told myself that maybe I was saying something stupid.

Pleased to an answer in this thread, i thought too fast that it could be a reason.

 

Anyway, i am experienced with accents, we got some in French, and could verify what i said on that.

Sorry for what i said on : -

😁


EESignature

0 Likes