Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Script File Uses

0 views
Skip to first unread message

Paul Burgener

unread,
Aug 24, 2000, 3:00:00 AM8/24/00
to
Anybody use script files professionnaly? What for?

For the September user group presentation I'll demonstrate writing and
using script files. I'll show the usual academic stuff: slide shows,
controling layers, restoring views and UCSes, setting toolbars and
system variables, etc. I'll point out the starter switch for script
files, and copying files (by using SHELL). In my little professional
use for them, however, I've only used them to plot drawings (after I
graded them), and to open multiple drawings.

What do you pros use script files for?

--
Paul Burgener, Burg...@Bigfoot.com
AutoCAD Instructor, Newport News VA, USA
http://members.tripod.com/seva-aug/


Sent via Deja.com http://www.deja.com/
Before you buy.

Alan James Wooldridge

unread,
Aug 25, 2000, 1:57:16 AM8/25/00
to
I'm a CAD Manager for a 40 licence, 10 Full and 30 LT

We use scripts to give the LT users the same functionality the Full
version users have with Bonus Tools / Layer Manager.

i.e. to control layers, we have scripts to control and show

ALL ON
ALL OFF
GROUND floor
FIRST floor
SECOND floor
ROOF
SURVEY site
EXISTING building

These tie up with the same names in Layer Manager.

Hope this helps

Regards

Alan

On Thu, 24 Aug 2000 20:03:12 GMT, Paul Burgener <Burg...@Bigfoot.com>
wrote:

Paul Burgener

unread,
Aug 29, 2000, 3:00:00 AM8/29/00
to
Thanks. Terry Rawkins sent me a few script files that automate solid
modeling (lego.scr and bp.scr). Check them out (and other script
files) at:

http://members.tripod.com/seva-aug/downloadables/

Read the read_me.html file first.

JFK

unread,
Sep 1, 2000, 1:24:40 PM9/1/00
to
On Tue, 29 Aug 2000 21:18:13 GMT, Paul Burgener <Burg...@Bigfoot.com>
wrote:

>Thanks. Terry Rawkins sent me a few script files that automate solid


>modeling (lego.scr and bp.scr). Check them out (and other script
>files) at:
>
>http://members.tripod.com/seva-aug/downloadables/

I've been experimenting with these scripts in R14 and for the most
part they work. However, R14 doesn't seem to read "@" as "enter" and I
couldn't figure out what "enter" would be.
Any Hints? Thanks.
JFK

jo...@fel.u-net.com

unread,
Sep 1, 2000, 6:06:26 PM9/1/00
to
A blank line is interpreted as Enter in a script.
I haven't done any scripting in A2k though.

John

terry.rawkins

unread,
Sep 2, 2000, 3:25:46 AM9/2/00
to
Think that you are referring to a copy line

i.e. copy*l**@*@10,0

* = space

What it translates to is this :-

COPY, space to terminate command.
Last object, space to terminate the option
followed by a space to terminate the selection set.
@ here is shorthand for @0,0 and is just the first pick in the copy
@10,0 is the displacement.

Please have a look at my web site

--
------------------------------------------------------
Terry Rawkins Bracknell UK

http://homepage.dtn.ntl.com/terry.rawkins/

JFK

unread,
Sep 2, 2000, 12:45:14 PM9/2/00
to
On Sat, 02 Sep 2000 08:25:46 +0100, "terry.rawkins"
<terry....@dtn.ntl.com> wrote:

>Think that you are referring to a copy line
>
>i.e. copy*l**@*@10,0
>
>* = space
>
>What it translates to is this :-
>
> COPY, space to terminate command.
> Last object, space to terminate the option
> followed by a space to terminate the selection set.
> @ here is shorthand for @0,0 and is just the first pick in the copy
> @10,0 is the displacement.
>
>Please have a look at my web site

Thanks Terry, I did.
I found useful the one that opens multiple drawings.
Then I started playing with Lego. If I run it like it copies from the
site to Notepad, nothing happens. Time to start tweaking with it.
The first thing I did was to put comments, and commands and coords, on
their own separate lines. Now the script runs! My first error:

Command: _script
Command: box
Center/<Corner of box> <0,0,0>: 0,0,0
Cube/Length/<other corner>: 7.9,7.9
Height: 9.6
Command: cylinder
Elliptical/<center point> <0,0,0>: 3.95,3.95,9.6
Diameter/<Radius>: 2.45
Center of other end/<Height>: 1.8
Command: union
Select objects: all 3 found
1 was not in current space.

Select objects:


Command: vpoint Rotate/<View point> <0.0000,0.0000,1.0000>: -1,-1,1
Regenerating drawing.

Command:
VPOINT Rotate/<View point> <-1.0000,-1.0000,1.0000>: cylinder
Invalid input. Try again.
Rotate/<View point> <-1.0000,-1.0000,1.0000>: 3.95,3.95,0 Regenerating
drawing.

Command: 2.5 Unknown command "2.5". Press F1 for help.

And from then on, an eternal chain of tweakings, trials, and errors.
The most I got it to do was to finish the full stud, but then it had a
problem subtracting the hole at the bottom I think when you have to
select solids to subtract. Obviously I am missing some of the basics.
However, I put together a slide show, following an example from the
help file, and that was petty cool. Does ";;" mean anything other than
"this is a comment?"

>
>JFK wrote:
>>
>> On Tue, 29 Aug 2000 21:18:13 GMT, Paul Burgener <Burg...@Bigfoot.com>
>> wrote:
>>
>> >Thanks. Terry Rawkins sent me a few script files that automate solid
>> >modeling (lego.scr and bp.scr). Check them out (and other script
>> >files) at:
>> >
>> >http://members.tripod.com/seva-aug/downloadables/
>>
>> I've been experimenting with these scripts in R14 and for the most
>> part they work. However, R14 doesn't seem to read "@" as "enter" and I
>> couldn't figure out what "enter" would be.
>> Any Hints? Thanks.
>> JFK
>
>--
>------------------------------------------------------
> Terry Rawkins Bracknell UK
>
> http://homepage.dtn.ntl.com/terry.rawkins/

JFK

terry.rawkins

unread,
Sep 2, 2000, 2:43:40 PM9/2/00
to
Careful this could get messy.

I wrote two script files bp.scr and lego.scr and sent them to Paul
who has put them on his web site, but I think that he may have
changed a few things. That is fine, no problems.

The file that opens many drawings is not mine.

The big thing about Script file is the spaces some AutoCAD commands
are what I call hanging commands they hang around for you to key in
the next option some do not hang around but terminate after all
the parameters have been entered.

LINE is a hanging command CIRCLE is not!

So some lines will have to end with just a c/r others with a
space + c/r ( to terminate the hanging).

But it gets worse Notepad will chop off extra spaces at the end of
a line or if you cut and paste from say a web page then you may miss
out an important space.

I have attached the original files what the news server or your reader
does with them may be another thing.

BTW did you look at my web site? There is a script to draw a 3D
motor cycle cylinder.

my site is http://homepage.dtn.ntl.com/terry.rawkins/

0 new messages