CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 1320

CAD tip CAD tip # 14045:

   
Question CAD 
 %  platform  category 
Q - question

In my AutoCAD script file (.SCR) I cannot enter a name containing a space.

A - answer In AutoCAD, you can use spaces in all prompts for name (filename, folder, layer, dimension, style, font).

However, if you enter a name at the prompt in a commandline version of a command from a running script (.SCR), the space in the name is interpreted as an end-of-line, new line, Enter.

If you need to use a space in a name entered through a script, enter the name enclosed in double-quotes, i.e. "my name" - e.g. "C:\My folder\My file.dwg" or "My layer" or "My font".

Check also your setting of the EXTNAMES variable (should be 1).

This tip applies both to script files run through the command SCRIPT, and to scripts entered through AutoCAD or AutoCAD LT runstrings, and also to scripts used in the AcCoreConsole.exe console.

ACADACLTADTACADMPlantMapCivil3D
100% *  CAD 
27.2.2024    13498×  

See also:
Tip 14080:AutoCAD 2025 is not displaying some fonts correctly.
Tip 14006:Universal MsgBox in AutoLISP.
Tip 12926:How to import point coordinates from Excel to AutoCAD?
Tip 12837:RenameCSV - rename layers, blocks, layouts, views, linetypes using Excel tables
Tip 12609:Dynamo - how to convert a raster photo to 3D model in Revit?


Back   All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist