a scr file can execute a list of same commands only in one scr file.

a scr file can execute a list of same commands only in one scr file.

KOTARAMMOHANR
Contributor Contributor
2,095 Views
3 Replies
Message 1 of 4

a scr file can execute a list of same commands only in one scr file.

KOTARAMMOHANR
Contributor
Contributor

a scr file can execute a list of same commands only in one scr file. but not different commands in one scr file.   

   is it correct 

0 Likes
Accepted solutions (1)
2,096 Views
3 Replies
Replies (3)
Message 2 of 4

cadffm
Consultant
Consultant

Hi,

 

this was true for decades, and if you talk about script-command,

but take a look to command scriptcall!

 

Sebastian

0 Likes
Message 3 of 4

KOTARAMMOHANR
Contributor
Contributor

i need one clarity that can we execute two different commands like drawing a line and drawing a cirle both in one scipt file

0 Likes
Message 4 of 4

cadffm
Consultant
Consultant
Accepted solution

I missunderstood your question, sorry.

 

A: You can use 100 different commands 1000 times in ONE script, no problem.

But why do you asking? TRY IT first, if further questions: Ask.

 

From your other thread I know that scripts are still very foreign to you,
start with small things, step by step and you'll quickly get a better idea!

 

For example, the current color, check your help, variable CECOLOR, controle the current color setting.

type in CECOLOR and press enter

Acad shows the <current> Color and ask for a new Color to set current.

type in your color and press enter.

 

looks like

Command: CECOLOR

Enter new value for CECOLOR <"BYLAYER">: 50

Command

 

quick check:

Command: CECOLOR

Enter new value for CECOLOR <"50">:

...

yearh, it works

 

 

Do the same in your Script now, so the script will have 3 lines, the last one is empty:

CECOLOR<press enter for a newline/linebreak>

50<press enter for a newline/linebreak>

 

 

save the file as SetCurrentColor50.scr

and start your script by command SCRIPT or Drag&Drop the file into your DrawingEditor.

 

--

 

Circle sample

CIRCLE<enter>

50,50<enter>

10<enter>

 

 

And you can write all together in one script to create a circle in color50 at 50,50ucs with r10

 

(my samples attached, change file extensions from .txt to .scr after download)

 

 

Sebastian

0 Likes