Hi all,
Scripts can be exported to an MDG Technology. They then land in their own script group, where they can be viewed but not modified -- although they can of course be copied / pasted into new scripts, so if you want to restrict functionality for security reasons rather than convenience, security mechanisms written into a script are trivial to bypass.
It is not possible to export project browser or diagram scripts: they end up in the same group as other scripts and do not show up in the project browser / diagram "Scripts" context menu. These context menus have no submenus; all project browser / diagram scripts are flattened into a single menu regardless of which group they might belong to.
What I usually do in this situation is write my scripts as sets of functions which take as arguments model elements of the appropriate type (package, element, etc), export them, and then in the target projects write project browser / diagram scripts which wrap these library script functions.
This way I can develop and maintain the meat of the scripts in my MDG Technology project, and only need to maintain the wrappers, which are essentially clones of each other, in the target project.
Cheers,
/Uffe