order

ObjectDomain Extensions

This page includes extensions for ObjectDomain including user supplied scripts and third-party add-ins. If you have an extension or add-in you would like included on this page, or a question about customizing ObjectDomain, please contact our support team.

ZClass Reverse from BlueDynamics

ZClass Reverse generates UML diagrams out of one or more ZClass based Zope products online from a Zope server.

It recognizes as methods:

  • DTML Methods
  • External Methods
  • Python Methods
  • Z SQL Methods
  • Python Methods (new since v 1.1.1)
  • Additionally, for PythonMethods, ExternalMethods, and ZSQL methods it also reverses the parameters.
  • For PythonMethods it recognizes the """docstring""" and reverses it as method documentation.

Learn more about ZClass Reverse and download the product from BlueDynamics. To learn more about Zope and the company's web application server, visit the Zope website.


Bold for Delphi Model Generation

The BoldModGen.py script is based on the ObjectDomain examples for code generation. This script generates a Bold model file which can be imported in the Bold model editor in the Delphi IDE. To use the script download the following zip file and review the included BoldModGen.doc word document.

BoldModGen.zip

The bold script and documentation was provided by:

Samuel Iseli
vertec ltd.
Technoparkstr. 1
CH-8005 Zürich
Switzerland

CodigoXpressTM

The CodigoXpressTM software development tool achieves high-quality, design-pattern-based, end-to-end code automation. Incorporating software design and development best practices, CodigoXpress takes an object model in UML and generates an optimized, production-quality implementation.


Adding a Menu to the Menubar

The following Python script can be used to add a menu option to the ObjectDomain menubar:

menuExample.py

To use the script:

  1. place the script in <app>/python/scripts
  2. add the following lines to the bottom of 'odUserSetup.py' (also found in <app>/python/scripts)
  3. import menuExample
    menuExample.installMenu()
  4. run ObjectDomain

You should get a pulldown menu with one menu item that when invoked displays a message.

For reference, check out these pages:

http://www.jpython.org/docs/index.html

particularly the 'Interaction with Java Packages' section

http://starship.python.net/quick-ref1_52.html

Suppress Non-Public Features in Class Diagrams

The following script sets the selected ClassifierViews to display only public attributes and operations. For more details about executing the script, see the comments within the script file:

showPublicFeaturesOnly.py

Property (Attribute) Modifier Utility

This module is used to walk the current application selection (or a supplied element list) and change the given common attribute to the given value for all elements of the given type(s). To use this module:

  1. Open a class diagram
  2. Click <ctrl> A to select all view elements in the diagram
  3. Enter the example syntax below into the Python command console

Example Syntax

Below is an example of the syntax required to hide the attribute Compartment for all class views selected in the current diagram:

propModifier.modifyProps('showAttributeCompartment', 'false', [objectdomain.uml.view.ClassView])

Notes

This module is included with the latest build of ObjectDomain in the script file: python/scripts/odUserSetup.py

Multi-object editing capabilities are now supported within the UI of ObjectDomain R3. See the application help for more details.


Tcl Export Script for 1.x files

The following is a Tcl script for ObjectDomain 1.x. It can be used to export version 1.x files to version 2.x or greater model files. Please note that this script should be run from the 1.x application. It will not run in the 2.x environment.

genod2.tcl
 Related Links