User Customization through User-Defined Primitives (UDPs)
User-Defined Primitives (UDPs) allow users to add customized geometric modeling commands to the Maxwell Desktop. UDPs are C++ compiled or Python libraries that can be added to the desktop interface and shared between users with common modeling needs.
To create a UDP, see Creating a User-Defined Primitive for requirements and the procedure for building a proper DLL or Python library.
In order to share UDPs between users, an existing DLL or Python library may be copied into the userlib > User Defined Primitives subdirectory, which can be found in the Maxwell installation directory. Placing an appropriately constructed DLL or Python library in this subdirectory will automatically add a new menu item in the Draw > User Defined Primitives menu to allow access to the UDP.
If desired, users can also create a User Defined Primitives subdirectory in their PersonalLib directory, and store UDPs there. The PersonalLib directory path is specified on the Directories panel under General in the Options dialog.
Refer to Maxwell User-Defined Primitives for additional information.
Related Topics
Creating a User-Defined Primitive
Drawing a Segmented Helix with Polygon Cross-Section Using a User-Defined Primitive
Drawing a Segmented Helix with Rectangular Cross-Section Using a User-Defined Primitive
Drawing a Spiral Using User-Defined Primitives