What's new

scripting commands/parameters

multicaduser

Senior Member
Today is the first time I'm dipping my toes into scripting and I've figured out how to run through all parts in an assembly and add a configuration. Simple really. However, if the script is run again it adds another configuration with the same name. Now AD doesn't let you do this manually so I figure it's not a good thing.

Is there a comprehensive list of scripting commands/parameters I can look at to find a check to do before creating the configuration? This is only the first question I'll have and I'm not asking anyone to write it for me, mostly looking for resources as the examples are very shallow in this area. Looking for resources on the web hasn't provided much and I'm not sure what search terms should be used.

Thanks in advance. (tia)
 
There is only the reference and example guides in the help section of the script tab ribbon, but the examples are basic and the reference guide has no examples.
 
The forum has great examples and solutions. My GitHub account hosts the official Alibre examples, along with my experiments and projects.
 
I generated a configuration showcase script:

The API doesn't have a remove or delete configuration function, so you'll need to delete configurations manually. The showcase script shows how to check if a configuration is present. You can then decide what to do if a configuration with the same name is found.
 
Back
Top