Change Global to Active Parameters with Autolisp

Change Global to Active Parameters with Autolisp

Anonymous
Not applicable
254 Views
0 Replies
Message 1 of 1

Change Global to Active Parameters with Autolisp

Anonymous
Not applicable

I have part file code to automatically copy global parameters to active parameters in Mechanical desktop, then purge the global parameters.  

(command "-amvars" "global" "copy" "all")

(command "-amvars" "global" "purge" "yes")

(command "-amvars" "global" "purge" "yes")

 

For assembly files the code to purge/delete global parameters:

(command "-amvars" "purge" "yes")

(command "-amvars" "delete" "yes")

 

The problem is that I would like to create code that will run the appropriate code depending on if the file is an assembly (without an active parameter tab) or part (with both active and global parameter tabs).  Can anyone offer suggestions?

 

Thanks

0 Likes
255 Views
0 Replies
Replies (0)