Enter paper size or ?: ISO A4 (210.00 x 297.00 MM) Command: Millimeters Unknown command 'MILLIMETERS'. Press F1 for help. Command: L Unknown command 'L'.
You can then lookup the relevant AutoLisp commands for a more detailed explanation. Hope this helps you. (prompt 'This line will print'); This is a comment.
Press F1 for help. Command: N Unknown command 'N'. Press F1 for help. Command: E Unknown command 'E'. Press F1 for help. Command: F Unknown command 'F'. Press F1 for help.
Command: C Unknown command 'C'. Press F1 for help.
Command: Y Unknown command 'Y'. Press F1 for help.
Command: monochrome.ctb Unknown command 'MONOCHROME.CTB'. Press F1 for help. Command: Y Unknown command 'Y'.
Press F1 for help. Command: A Unknown command 'A'. Press F1 for help. Command: N Unknown command 'N'. Press F1 for help. Command: N Unknown command 'N'. Press F1 for help.
Command: Y Unknown command 'Y'. Press F1 for help. Command: nil I have tried using full names instead of abbreviations, for example 'millimeters' instead of 'm', 'Fit' instead of 'F' etc.
The biggest frustration is that it all works if I type in everything manually in Acad just not in lisp. Any help is appreciated. Code: (command '.-PLOT' 'N'; Detailed plot configuration? Yes/No: N ; '; Enter a layout name or ?: ; pagesetup; Enter a page setup name: ; '; Enter an output device name or ?: ; 'y'; Write the plot to a file Yes/No: y ; file; Enter file name: ; 'y'; Save changes to page setup Yes/No? N ; 'y'; Proceed with plot Yes/No: ; ); end of commandhere is how we plot using LISP pagesetup is a predefined variable that tells it which pagesetup to use file is a predefined name to tell it to plot to a file. Obviously if you want it to print out not print to a file, you would change the write to a plotfile prompt to no and remove the file name line.
9/17/13 LISP for AutoCAD - AutoLISP - Visual LISP Home Blog Tw itter YouTube Contact AutoLISP / Visual LISP Navigate Home JTB FlexReport SmartPurger AutoCAD Automation Tools SSMPropEditor Like 58 Send Home 1 Softw are CAD Contac t About Free AutoLISP and Visual LISP code snippets for AutoCAD Please feel free to be inspired, cut&paste or if you have any feedback or questions go here. If you want some customization or anything else that you can come up with that we might help you with you're welcome to contact us. Want to learn LISP for AutoCAD?