When the writer is launched from rules or Java code, you can set options to tweak the writer's behavior.
Map options = new HashMap(); Model umlModel =... umlModel.write("Enterprise Architect Application", "", options);
The model writer can be configured.
Options.OPTION_APP_PACKAGE_SELECTION
The uri parameter of "Enterprise Architect Application" writer can be used for selecting a specific package into which the writing will start. Two uri formats are allowed:
{e3b53655-c00d-4368-beda-eda6772439d7}
EAPK_e3b53655_c00d_4368_beda_eda6772439d7
Map options = ... Model umlModel = ... umlModel.write("Enterprise Architect Application", "{e3b53655-c00d-4368-beda-eda6772439d7}", options);