Hello, I use Excel to generate a command line, for example:
(command "_LAYER" "Set" "Lr" "")
(command "_pline"
"4293844.94655824,6464709.35884033"
"4293871.50985613,6464714.4801052"
"4293874.94059668,6464749.51132796"
"4293887.35573975 ,6464761.66805067"
"4293891.95050141,6464779.47564397"
"4293884.57943171,6464815.71203962"
"4293873.10892738,6464846.31504404"
"4293906.73077449,6464834.74021752"
"4293922.08926636,6464845.30119566"
"4293920.30047758,6464870.47740859"
"4293924.2467919,6464886.61884031"
"4293917.80485123,6464907.873494"
"4293895.89458314,6464945.85822177"
"4293939.54984154,6464936.07812323"
"4293949.0026027,6464950.25090965"
"4293950.75882769,6464970.38492446"
"4293963.06120433,6464989.95379304"
"4293965.92739128,6465011.21750709"
"")
in Autocad it works fine but in nanoCAD it generates the following error:
Command: "")
Invalid Keyword or Command. Ingrese (') para comando o (?) para expresión matemática: "")
¿Cómo puedo modificar mi texto para que funcione en nanoCAD?
Muchas gracias
nota:
uso líneas de comando similares para ingresar texto, bloques, puntos y otros elementos gráficos.


1 reply to this topic
#1
Posted 31 July 2022 - 12:39 PM
#2
Posted 15 August 2022 - 06:58 PM
Hello!
Can you, please, try:
(command "_.layer" "_.new" "test" "_.set" "test" "")
(princ (strcat "\nActive layer is: " (getVar "CLAYER")))
(command "_pline"
"4293844.94655824,6464709.35884033"
"4293871.50985613,6464714.4801052"
"4293874.94059668,6464749.51132796"
"4293887.35573975,6464761.66805067"
"4293891.95050141,6464779.47564397"
"4293884.57943171,6464815.71203962"
"4293873.10892738,6464846.31504404"
"4293906.73077449,6464834.74021752"
"4293922.08926636,6464845.30119566"
"4293920.30047758,6464870.47740859"
"4293924.2467919,6464886.61884031"
"4293917.80485123,6464907.873494"
"4293895.89458314,6464945.85822177"
"4293939.54984154,6464936.07812323"
"4293949.0026027,6464950.25090965"
"4293950.75882769,6464970.38492446"
"4293963.06120433,6464989.95379304"
"4293965.92739128,6465011.21750709"
"")
Can you, please, try:
(command "_.layer" "_.new" "test" "_.set" "test" "")
(princ (strcat "\nActive layer is: " (getVar "CLAYER")))
(command "_pline"
"4293844.94655824,6464709.35884033"
"4293871.50985613,6464714.4801052"
"4293874.94059668,6464749.51132796"
"4293887.35573975,6464761.66805067"
"4293891.95050141,6464779.47564397"
"4293884.57943171,6464815.71203962"
"4293873.10892738,6464846.31504404"
"4293906.73077449,6464834.74021752"
"4293922.08926636,6464845.30119566"
"4293920.30047758,6464870.47740859"
"4293924.2467919,6464886.61884031"
"4293917.80485123,6464907.873494"
"4293895.89458314,6464945.85822177"
"4293939.54984154,6464936.07812323"
"4293949.0026027,6464950.25090965"
"4293950.75882769,6464970.38492446"
"4293963.06120433,6464989.95379304"
"4293965.92739128,6465011.21750709"
"")
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users