Search the Community
Showing results for tags 'new command'.
-
Can't Escape Previous Commands In A Script - AutoCADLT
Scottcad94 posted a topic in The CUI, Hatches, Linetypes, Scripts & Macros
Hi, Recently been testing the water with writing scripts to try and automate some of the functions that I do repetitively so a newbie to this. Unfortunately only have access to AutoCAD LT so can't use LISP or anything. Have tried the ^C^C and (command) suggested in other forums. Essentially my script something like this: -layer set Datum LINE 0,-14000 850000,-14000 -INSERT BLOCK1 10000,20000 1 1 0 20000,20000 1 1 0 30000,20000 1 1 0 -INSERT BLOCK2 37000,7000 1 1 0 When I run it in CAD it keeps asking for an insertion point for BLOCK1 (even though I don't want more than 3 in the drawing) - how do I escape this command and move onto next line of commands (insert BLOCK2). Essentially I want equivalent of escape key. Can't find answer anywhere. Thanks in advance- 9 replies
-
- new command
- escape
-
(and 1 more)
Tagged with:
-
Seeking template name and path of NEW drawing (not QNEWed)
Ahankhah posted a topic in AutoLISP, Visual LISP & DCL
Hi everybody, as I requested in another thread (Finding template of new drawing), I am seeking a way to find out the name and directory of the template file which is used for NEW drawing. I tested all ways mentioned in the thread, with no success (shown as follow) (getenv "General\\LastTemplate") (getenv "LastTemplate") (vla-get-TemplateDWGPath (vla-get-Files (vla-get-Preferences (vlax-get-acad-object)))) Indeed the returned name and path refers to Qnew template. I appreciate any help- 11 replies
-
- qnew
- new command
-
(and 2 more)
Tagged with:
-
Hi all, Is it possible to find out which template file used in new opened drawing via visual lisp? Assume someone issues NEW command and selects a .DWT file as template. Now after ending NEW process, how to find out what is the fullname (path and name) of template file? I appreciate any help
- 5 replies
-
- qnew command
- new command
-
(and 2 more)
Tagged with:
-
Ok so to give a little background what is going on I have Autocad 2010 with Rastercad Add on. I want to create a macro that will let me open a new drawing hit enter(for the basic autocad templete) and then run the command gattach which will open a window that will allow me to open my raster image. I can not get the new command to open the dwg templete without asking me. Here is what i have so far: ^C^C_new ;-Gattach:(
- 30 replies