Skip to content

Instantly share code, notes, and snippets.

@xcriptus
Created December 9, 2012 20:50
Show Gist options
  • Save xcriptus/4246922 to your computer and use it in GitHub Desktop.
Save xcriptus/4246922 to your computer and use it in GitHub Desktop.
StarUML - Execution from PHP
<H1>This page shows how PHP can connect to StarUML</H1>
<?php
$comapplication = "StarUML.StarUMLApplication" ;
$staruml = new COM($comapplication) or die ("can open COM object : $elem") ;
echo "COM object $comapplication created<br>" ;
/* shows the application */
$staruml->Visible = 1 ;
$projectManager = $staruml->ProjectManager ;
// open a project for instance
$projectManager->OpenProject("C:\\metamodels\\featuremodel.uml");
// do whatever you want
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment