Author Topic: Write DCL codes to temporary file  (Read 1322 times)

0 Members and 1 Guest are viewing this topic.

Coder

  • Swamp Rat
  • Posts: 827
Write DCL codes to temporary file
« 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\";}
 }"
« Last Edit: December 29, 2017, 04:43:58 AM by Coder »

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Write DCL codes to temporary file
« Reply #1 on: December 29, 2017, 06:33:34 AM »
Maybe this helps:
Code: [Select]
(vl-prin1-to-string "1'6\"") => "\"1'6\\\"\""

Coder

  • Swamp Rat
  • Posts: 827
Re: Write DCL codes to temporary file
« Reply #2 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.