Use Tools -> Run Scripts -> Browse for and select myscript.scr -> OPEN
(or from Command line..)
SCRIPT (or SCR) [Enter] -> Browse for and select myscript.scr -> OPEN
Note -SCRIPT (or -SCR) does not give command line facility to to run a script (gives 'Unknown Command').
Very interesting. If you just copy paste the script onto the command line the drawing is just generated.
Archeoligists ect write rhe excel commands into their field notes and then spreadsheets. They deliberately use text that mimics Autocads command syntax say when measuing the location of a block stone.
3dface
-5.255,0.363,3.289
-5.2575,0.3695,2.798
-3.933,0.358,2.8
-3.931,0.3525,3.2895
A comment must have a semi-colon before it eg. ; My Comment blah blah ..
Any line left blank gives an [Enter].
You have to deliberately put an extra blank line for the 2nd Enter often needed to conclude some commands.
So blank lines between the 'header' comments and the actual commencing of the script to fail.
And any 'header' must it self be on the topmost line (no blank line above any header.
Put ;'s down the side if you want 'white space' for clarity ie:-
; constr.scr aj 4/5/03
(header must be on topmost line)
; creates an orange constr layer and makes it curret.
;
;
;
-layer
n
constr
c
40
constr
s ; Sets the new layer current
constr ; " "
;above is blank line for 2nd Enter to conclude.
I've written a script using Scriptpro that batch prints for me. All my drawings have a date stamp(created using rtext) that is on its own layer in an attached xref.I print one set with the date stamp and one without.The problem is the date stamp layer name has a space in it. How do I include the layer name in the script without the space understood as a command.The script works fine if the layer name doesn't have a space. I really don't want to have to rename the layer in all my drawings so I would greatly appreciate any help
Paul Turvil Use double quotes:
-layer
off
"1Title V|DATESTAMP"
...
;Turn off DATESTAMP Layer
-layer
off
1Title V|DATESTAMP
off
;Plot drawing with default settings
;
Detailed<no>
Output Device<Default Printer>
Plot to File<no>
Changes<no>
Proceed with Plot<yes>
-plot
;Plotting finished
hmm! ..try
Command:-PLOT
Detailed ..[Yes/No] <No>:No
Layout Namr or Model <Model>:Model
Enter a page setup name <>: ????!
Hello everyone, I have some autocad R14 lisp code that puzzles me. I ask the user to pick a point and I use bpoly to create a pline around the point (in a closed area). Then I used ENTLAST to get the name of the entity. But entlast does not see the bpoly-line just created, even if bpoly return a non-nil value. Looks like entlast is sometimes picking the line "l8". The intriguing part is that entlast is seldom picking the boundary. Does anyone have an explanation why entlast is pick the wrong entity? Lots of thanks! Yves ********************************************************** Here a portion of the code: [...] (entmake (list '(0 . "LINE")'(8 . "FWOOD")(list 10 (car pmax) (- (cadr pmin) bm_fsoffset) 0.0) (list 11 (car pmax) (cadr p2rght)))) (setq l8 (entlast)) (initget 1) (setq pt (getpoint "\nPick point inside rear waste: ") pt2 (getpoint "\nPick point inside front waste: ") ) (princ "\nPlease stand by...") ; draw pline around rear waste point (bpoly pt) ;(command "-BOUNDARY" pt "") <= this gives the same result as with bpoly (setq e1 (entlast)) ; <= does not work!!! (if e1 ; bpoly returned something (progn ; this point is reached [...]
I have a while loop where I am picking a series of objects then the I press Enter when I want process
those points.
(while (setq obj (entsel "\nSelect object (ENTER to quit): ")) (setq ent (entsel obj)) ...(process data)... );; while
(setq Num1 (getreal "\nEnter first Force Magnitude: ") **check these lines agaist original -AJ
(setq N (getint "\nEnter the number of forces: ")
Answer to someone having trouble driving ScriptPro and asking is there anything easier..
(Answer) Sounds like for as much effort as you're putting into ScriptPro, you could write your own scripts. As for operating on a list of drawings, you use:
"DIR *.DWG > FILELIST.TXT"
..from a DOS prompt to write an ascii
of files, then use an editor with search & replace capabilities to throw in what you want to do to each.
Not drag and drop, but not generally difficult, either. Just a thought.
What I did to practice (see afile.txt in wpsmoke folder)
------
Generated by:
1. Start->Programs->Accessories->Command Prompt
2. c:\>cd wpsmoke
3. C:\wpsmoke>dir *.txt>afilelist.txt
4. Click on [x] in top top RH corner of Command Prompt box to close it and return to windows screen.
Possible use is..
a. Getting dwg files for script based printing or scripting generally
b. Creating lists to keep track of html file validating
------
o0o