Jump to content

Spaces in a script


Recommended Posts

I'm trying to use this script but the space in "pdf_solid fills" is being read as a carriage return. Is there a way to deal with this?

 

 

-LAYER
off
pdf_solid fills
LIMITS
0,0
11,17

 

 

 

Command: _SCRIPT
Enter script file name <O:\Motiva\2022\22022020.00 - USMF 00454 SRU2 & 3 TGTU1 IPF Upgr (DE)\Working\Instr-Elect\05_Drawings\01_Working\SHARED SmartPlant Instrumentation\214SC-13 TB12-DEMO.scr>: "\\olson-fs01\users\mgooch\DWG_BACKUP\TGTU1_CHECK\STRIP_PREPARATION_SCRIPT.SCR"
Command: -LAYER
Current layer:  "RED LINE"
Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile/Xref]: off
Enter name list of layer(s) to turn off or <select objects>: pdf_solid
No matching layer names found.
Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile/Xref]: fills
Invalid option keyword.
Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile/Xref]:
 

Link to comment
Share on other sites

Have you tried putting the layer name in quotes? Use "pdf_solid fills" in the script instead of the literal name.

 

If that doesn't work, check back with us.

  • Like 2
Link to comment
Share on other sites

  • 1 month later...

I think with scripts just like DCL files you have to put a slash in front of the quote for it to register properly.

 

(write-line " : edit_box {label = \"CASE TYPE\"; key = \"case\"; alignment = centered; edit_width = 50; allow_accept = true;}" fo)

would make a line in dcl file 

 : edit_box {label = "CASE TYPE"; key = "case"; alignment = centered; edit_width = 50; allow_accept = true;}

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...