Open justinmassiot opened 3 years ago
Hello @justinmassiot, were you able to create a list of obsolete scripts?
Hello, Unfortunately no. I had no free time these months and this action is time consuming. Would you like to help?
I probably cannot help going over all of the scripts as some I do not have a use case for, but I will post here what works and what doesn't.
Dear contributors @RnDMonkey , @BrettLMiller , @coffeenmusic , @CoreyBeyer , @zharovdv ,
Could you think of a way to identify scripts which are "current" (still working in the latest version of Altium Designer, and not superseded by an equivalent core feature) from those which are not? Should we manage some sort of "Archive" folder to not mix current and old scripts together?
Take "Scripts - PCB/CopyDesignatorsToMechLayerPair" for example. To me, "Add Designators for Assembly Drawing" does the same. Then, should we keep the script?
Justin
Take "Scripts - PCB/CopyDesignatorsToMechLayerPair" for example. To me, "Add Designators for Assembly Drawing" does the same. Then, should we keep the script?
Should keep of couse. This repository not only for users, it's for developers too. It contains real life altium script examples with many workarounds, tips and tricks.
Should keep of couse. This repository not only for users, it's for developers too. It contains real life altium script examples with many workarounds, tips and tricks.
Don't worry, the question was not if I need to delete them or not. The question was: could we put them aside, or mark them as "unmaintained"?
Take "Scripts - PCB/CopyDesignatorsToMechLayerPair" for example. To me, "Add Designators for Assembly Drawing" does the same.
For situations like this one, there will likely be some cases where users prefer a customized script which works slightly different from native functionality which could arguably supersede the script. For this reason, I'd argue against moving them into an archive. There could however be something said about marking some scripts as "unmaintained" as @justinmassiot mentioned.
For situations like this one, there will likely be some cases where users prefer a customized script which works slightly different from native functionality which could arguably supersede the script.
I agree with Corey. For this specific example, the built-in Altium feature has the following constraints that may not be desirable:
Other than that, I agree that there should be an "Unmaintained" section and tag for scripts, but it's a lot of work to determine which those are.
What about renaming the containing folder of each script that hasn't been modified in the last 2 years? (Maybe 3 or 5 years?) Adding a suffix like " (unmaintained").
Side question: do you guys know how to check the current version of Altium Designer from inside a script? Is it a trick you use to change the behavior of a script accordingly? @Altium-Designer-addons/project-committers + @coffeenmusic + @BrettLMiller + @igorpnk + @DTJ40 + @zharovdv
Side question: do you guys know how to check the current version of Altium Designer from inside a script? Is it a trick you use to change the behavior of a script accordingly?
ShowMessage(GetBuildNumberPart(Client.GetProductVersion, 0)); // 23
ShowMessage(Client.GetProductVersion); // 23.0.1.38
a. Has the feature been integrated by Altium inside the core software?
b. If not, does the upgrade represent a small programming effort?
_LEGACY_
or equivalent.