TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Coder on December 29, 2017, 04:40:54 AM

Title: Write DCL codes to temporary file
Post by: Coder on December 29, 2017, 04:40:54 AM
Hello everyone.

I am trying to write the codes of DCL to temporary file and everything work very good til now but I am facing a problem in converting the labels ( 14 and 26 ) to inches to show them in buttons with inch value.

Thanks in advance.

Code: [Select]
": boxed_row { label = \"Specs\";
 : button { label = \"14\";  key = \"wid\";}
 : button { label = \"26\";  key = \"hgt\";}
 }"
Title: Re: Write DCL codes to temporary file
Post by: roy_043 on December 29, 2017, 06:33:34 AM
Maybe this helps:
Code: [Select]
(vl-prin1-to-string "1'6\"") => "\"1'6\\\"\""
Title: Re: Write DCL codes to temporary file
Post by: Coder on December 29, 2017, 06:56:06 AM
Maybe this helps:
Code: [Select]
(vl-prin1-to-string "1'6\"") => "\"1'6\\\"\""
Great, thank you so much.