Created
December 9, 2012 20:50
-
-
Save xcriptus/4246922 to your computer and use it in GitHub Desktop.
StarUML - Execution from PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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