- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
I want to select a Linetype via the Command Line.
I enter "-linetype load acad_ISO02w100"
AutoCAD responds with...
Command: -linetype
Current line type: "ByLayer"
Enter an option [?/Create/Load/Set]: load
Enter linetype(s) to load: acad_ISO02w100
If I hit enter a Window appears for me to select a file. - acad.lin etc.
I don't want to see the Window
If selecting a file, I want to do it via Command Line.
Something like "-linetype load acad_ISO02w100 acad.lin" , But it does not work
I am a novice, so be kind.....
¡Resuelto! Ir a solución.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Hi @orders3
If you are looking to load the .lin file via the command line then you can set the variable "FILEDIA" to "0". Type in the command "FILEDIA" and set it to "0" doing so would suppress all the dialog boxes and display it only in command line. You need to provide the location of the .lin file in the command line![]()
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)

Likes is much appreciated if the information I have shared is helpful to you and/or others.
Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
+1 with @vinodkl .
Also, when you're done with the linetype stuff, if you want File Select Dialog windows to pop up with other commands that would "normally" use them, be sure to set it back to 1 when you're done. An alternative is to keep the FileDia setting at "off" and then learn (teach yourself) to use the tilde key (~, upper-left of keyboard), followed by <Enter>, to bring them up when prompted to select a file on the commandline.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
You have the solution from Vinodkl.
For working in your commandline by hand set FileDia=0
If you create a macro or script it wouldn't appears and act how you want it.
(if (tblobjname "LTYPE" "ACAD_ISO02w100")
(command "_.-linetype" "_load" "ACAD_ISO02w100" "acad.lin" "_yes" "")
(command "_.-linetype" "_load" "ACAD_ISO02w100" "acad.lin" "")
)
-----------------
Filedia is actually only for working by hand in the command line,
in automations such as Macro, Script or (send) command
it would be unnecessary.
It's good for trying it out in the command line, but otherwise it wouldn't actually be necessary.
BUT: There are some commands that AutoDesk stored incorrectly.
In automations, the command line version is usually used
of a command and the standard file selection dialogs as a command line version.
Incorrect behavior of an AutoCAD command, example:
The PDFIMPORT command has a command line version of -PDFIMPORT
Start the command in macro / script / (send) command
PDFIMPORT, then -PDFIMPORT is not started as it would otherwise be standard,
the file selection dialog box also appears (also with Filedia 0).
This is where Autodesk deviates from its own standards.
But if you start -PDFIMPORT it is then as written before,
FILEDIA is irrelevant in automatically called commands.
Sebastian
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Worked perfectly. THANKS....
One more question:
How can I end an AutoCAD Command without having to manually hit Enter?
Example:
Would like to see a blank Command Line after the following
-linetype Set "ACAD_ISO03w100"
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
@orders3 wrote:
....
How can I end an AutoCAD Command without having to manually hit Enter?
Example:
Would like to see a blank Command Line after the following
-linetype Set "ACAD_ISO03w100"
If that's a command macro, put a semicolon [= Enter] at the end [after either a semicolon or space to "register" the linetype name entry]:
-linetype Set "ACAD_ISO03w100" ;
OR, if you're not using LT, you can do it this way:
(setvar 'celtype "ACAD_ISO03w100")
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Use alwas semicolon in macros, thats the better choice.
In Scrips is it a linebreak/newline
In Lisp (command is it ""
Back to your
Sebastian