CAN YOU EXPLAIN THE ATTACHED "SCRIPT FILE" ?

CAN YOU EXPLAIN THE ATTACHED "SCRIPT FILE" ?

mgalicki
Advocate Advocate
1,174 Views
3 Replies
Message 1 of 4

CAN YOU EXPLAIN THE ATTACHED "SCRIPT FILE" ?

mgalicki
Advocate
Advocate

iS THERE SOMEONE WHO COULD EXPLAIN THE SCRIPT FILE I AM WORKING WITH?

I CAN'T SEEM TO GET IT TO WORK ANYMORE.

 

years back 2007 I believe,  I worked with a guy who developed a group of tool buttons for the sheet set tools.

One of which would insert a table that would populate the feilds from the sheet set?

I'm thinking most of this file already contains data but I'm not sure how it gets tied to the ssm after it's inserted into a sheet in the set.

I wish I could find the guy who developed this system...

I will show you the script attached to this button.

I'm not too good at reading script. (all the characters withing the commands)

Maybe you can make heads or tails out of it.

It does insert a table which is a drawing file containing the table.

 

^C^C-LAYER;S;0;;-insert;*R:/CAD_Standards/Blocks/Drop_In_Blocks/Index_of_Drawings;0,0;;;

 

Thank you for your time.  

Everything in existence was first an Idea
Autodesk Plant 3D Premium 2019
Autodesk MEP 2019
HP 3.2 Ghz CPU 16 ram
1TB 7200 rpm SATA 6Gb/s hard drive
2GB DDR3 NVIDIA GeForce GTX 680ti
HP 2311x 23" LED Monitor
0 Likes
Accepted solutions (1)
1,175 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

There are two sample steps to understand a script:

- semicolon ; or Linefeed or Blank mean "Enter" (divides one step from the other)

- try the commands by typing it (after saving and closing all your important drawings). This will show you what every single command will invoke.

0 Likes
Message 3 of 4

Kent1Cooper
Consultant
Consultant
Accepted solution

That's not a "Script," by the way [that word has a specific, and different, meaning in AutoCAD] -- it's a command macro.  It only switches to Layer 0 and Inserts, as you say, using command-line inputs.  The ^C^C is a double cancel, typically used at the beginning of macros in case you call one when in some other command, and typically doubled because some commands require two cancels to fully get out of them, but they are expendable if you pick on the button only when not in any other command.  The hyphens before the Layer and Insert command names mean to use the command-line versions rather than the dialog-box versions.  The Layer command Sets Layer 0 current, and has two semicolons [Enters] at the end to register the Layer name and to end the command [another Layer prompt comes up after using any option such as the Set option here, with exiting the command being the default].  The asterisk preceding the file name means to Insert it Exploded, so what it brings in will not be nested in a Block in the current drawing.  The 0,0 near the end is the insertion point, and the semicolons after it are first registering the 0,0 and the last two accepting the default scale factor of 1 [the command doesn't ask for X & Y separately when Inserting pre-Exploded, but for only one scale factor] and rotation of 0.

Kent Cooper, AIA
0 Likes
Message 4 of 4

mgalicki
Advocate
Advocate

Thank you Kent!

Greatly appreciated.

Everything in existence was first an Idea
Autodesk Plant 3D Premium 2019
Autodesk MEP 2019
HP 3.2 Ghz CPU 16 ram
1TB 7200 rpm SATA 6Gb/s hard drive
2GB DDR3 NVIDIA GeForce GTX 680ti
HP 2311x 23" LED Monitor
0 Likes