cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Method to determine if a script was called by another script or by user input

Method to determine if a script was called by another script or by user input

I'd love to have the ability within a script to determine if the script is running in response to another script, or if it's running in response to user input.

 

If I could have a conditional like:

 

if(this.CalledByScript)

{

   println("I was called by another script!");

}

 

I'd be one happy camper.  Better yet, this.CallingScript - null if not called by script, otherwise contains the name of the calling script.  That would make me a happy camper with a cooler full of my favorite beverage.

 

The Change Log for records shows an icon for actions initiated by script.  I wonder if this is something that's available and just not documented?

3 Comments
jared.sund
Alumni
Status changed to: Under Review
Forrest, this is an interesting idea. Could you elaborate on a use case for this?
benderk
Autodesk
Thank you for submitting your idea. Have you tried the Modern Interface lately? We request that you review your idea in the context of the Modern interface. If your idea is not addressed, we invite you to create a new Idea in the context of Modern so that it can be addressed accordingly. Sincerely, Keri Bender | Global GTM Business Strategy Manager, Product Lifecycle Management
benderk
Autodesk
Status changed to: Archived
 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report