Using Script Libraries (2D and Circuit)
If you decide that you need base classes or additional data files to organize your UDOs better, do so. This type of library organization allows code reuse between similar UDOs and can be very helpful. There is special support provided for this type of script-library organization:
- All script-library and other support files need to be in a Lib sub-directory under the UserDefinedOutputs directory. Any .py files found in such Lib directories are ignored and not displayed in the GUI as a valid UDO choice.
- For a UDO script at any given directory depth, all Lib directories in its parent directories is automatically added to the system include path (any support script files from any Lib directory through the top level UserDefinedOutputs directory can be imported) .