Message 1 of 1
Change Global to Active Parameters with Autolisp

Not applicable
01-29-2016
02:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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