About script files...

About script files...

Anonymous
Not applicable
794 Views
1 Reply
Message 1 of 2

About script files...

Anonymous
Not applicable

Is it possible to include commands like trim, fillet and other commands which involve selecting objects in a script file by typing commands in keyboard????

 

0 Likes
795 Views
1 Reply
Reply (1)
Message 2 of 2

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

scripts don't allow that. A script passes one line after the other to the command line and will never wait for a user-input as long as it's not finished.

 

If the script is not too long you might try to use LISP instead. LISP can be close to script when you use the command function like

(command "_LINE" "0,0" "1,1" "")

or

(command "_TRIM" pause "" pause "")

But be careful, this type if LISP development is not the best way to get a command like _TRIM working as the simplified line as shown above does not have any error handling. E.g. when the user does not pick a valid edge the complete line will fail.

 

HTH, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)