Script Help

Script Help

Anonymous
Not applicable
725 Views
5 Replies
Message 1 of 6

Script Help

Anonymous
Not applicable

I dont know how to makes scripts for CAD so Im looking for a little help.

What Im trying to make is a script that moves text from one line to another in the Project Descriptions (e.g. move LINE1 to LINE2)

If someone has something that will work for me thats great but I would much rather learn how to make scripts myself.

 

Any help would be appreciated.

0 Likes
726 Views
5 Replies
Replies (5)
Message 2 of 6

pendean
Community Legend
Community Legend
Project Descriptions? Which exact variant and year version of AutoCAD are you using?


0 Likes
Message 3 of 6

cadffm
Consultant
Consultant

A script contains commandline inputs. If you are able to do <whatever> only thru type in commandline, you can write down your steps in a textfile and save tge fike as  *.scr extension.

Start the scriptfile by drag&drop to your editor window or use command SCRIPT.

An ENTER hit is a linebreak in your scriptfile.

 

So the only thing you have to know is the usual autocad command to do <whatever>.

Systemvariables, commands, options.

For testing in commandline before (and write down your steps) it is helpful to know that autocad starts each commandline in commandlineversion(if available).

Not LAYER for example, but -LAYER, not INSERT, but -INSERT..

And for file dialogs as commandlineversion, set Filedia=0 (only for testing in autocad commandline.

 

Or are you searching for API programming like Lisp, .NET and so on?

 

 

Sebastian

0 Likes
Message 4 of 6

Anonymous
Not applicable

Im running Electrical 2018.

I posted a topic on this in the forum for autocad electrical but one of the experienced people there told me I should try one of the other forums.

As for the Project Descriptions I am referencing the window you get when you right click on a project folder in the project manager window and select Descriptions on the popup menu.

0 Likes
Message 5 of 6

Anonymous
Not applicable

Sorry to say but Im not sure what lisp or .net files are or how they are used in autocad. Im mostly self taught in cad and slowly getting into the more advanced pieces of it.

0 Likes
Message 6 of 6

pendean
Community Legend
Community Legend
Is this the post from two-weeks ago that you are talking about https://forums.autodesk.com/t5/autocad-electrical-forum/script-help/m-p/8338317
You seem to have dropped information since then in this new post.
0 Likes