[TIPS] Line presentations in Astah – (2) starting a line at anywhere you like

Alining lines is a simple gesture but could be irritating especially for models that have multiple lines originating from themselves like ones in the figure below. This post will show you how to draw the two composition lines (in pink) faster.

Astah UML Class Diagram

I believe majority would draw this way.

(1) Select [Compositions] from the tool bar and click the LinkAction Class and InputPin, and do the same to the other.
Astah_Professional_Composition

 

 

 

 

(2) Two Compositions are created.
Astah_Professional_Composition3

 

 

 

(3) Then adjust both lines by dragging every connecting point of both lines on the Classes to make them parallel.

Astah Professional Composition UML Class Diagram

 

 

 

The other way is this.
Before you create the compositions, click the third button from the right on the tool bar to disable one option.
Astah UML Class diagramThis option is ON by default. What this does is to determine where you want to draw a line from and where it ends. While this option is ON, starting point and end point is always set in the center of the models. By disabling this option, you can start the line anywhere you want on a model and connects it anywhere you want it to be. So let’s try this.

(1) Click the third button from right on the tool bar to disable the option
(2) Select Composition on the tool bar and click exactly where you want to start the line on the LinkAction Class and do the same on the InputPin Class
Astah UML Class Diagram Composition

 

 

 

(3) Draw another between LinkAction and LinkEndData
(4) The Compositions are created as shown below (the top figure) straight and you won’t have to spend your time on adjusting them at all.

Astah Professional Compositions
Cheers,
SJ

 

 

Posted in Support, TIPS, UML | Tagged , , | Leave a comment

[TIPS] Line presentations in Astah – (1) How to represent Generalizations in shared target style

Sometimes we receive this question:
“How could we represent the shared target style like the sample figure below (in red circle)?”

Astah UML Class Diagram
The answer is this.
(1) Create Classes and Generalizations to State Class from each Class – this is the separate target style.

Astah_UML_ClassDiagram2

 

 

 

 

 

(2) Select the three lines and go to [Edit] – [Shared Style] – [Vertical] from Main Menu.
Astah_Professional_Line_Style

(3) Done!
Astah_UML_ClassDiagram3

 

 

 

 

Cheers,
SJ

Posted in Support, TIPS, UML | Tagged , , | Leave a comment

How to get a list of hyperlink information using Astah API

Yesterday I received a request from one of our customers saying “I’d like to get a list of hyperlink information in a project.”

This is their background:
They have one “Template” model which everyone makes a copy of and modifies for their own use. They heavily reuse UML Activity diagram with lots of hyperlinks. And this customer wanted to list up models that have hyperlinks to certain type of model (in their case, it was a CallBehaviour Action).

Let me show you the solution we provided using a sample diagram below.

UML Astah Activity DiagramThere are three Activity diagrams, A, B and C and [Action0] has a hyperlink to [CallBehaviorAction0] (Red) and both [Action1] and [Action2] have one to [Callbehavior Action1] (Blue) and they wanted to know all about the hyperlink information of the CallBehaviorActions (towards to the CallbehaviorActions) in the project. So that helps them to know what models they need to be careful with when they modify the model.

The easiest way to do is using our new Script Plug-in which enables you to add features via a scripting language dynamically. (Read the “Introduction of Script Plug-in” post for details and how to use.) So one of our developers wrote a Java script for them using Astah API.

Here’s the result of running the Java Script using the Script Plug-in:

Astah Activity Diagram Sample UML

In the bottom pane of the Script window, it lists up all the model information which has hyperlinks to CallBehaviorActions.
Astah_ScriptPlug-n

You can download this Java Script here and there are more Script samples up on our website. Script Plug-in is free to use for both Astah Professional and Astah Community editions. Take a look, download and get the good use of it! Hope we have a library of useful scripts for all the users to share in near future. So if you create one or have any sample requests, please feel free to let us know!
Astah Script Plugins

Cheers,
SJ

Posted in News, Plug-in, Support, TIPS, UML | Leave a comment

Objective-C Export Available with anycode Plug-ins update!

Objective-C export is now available with any<code/> Plug-in’s update made on March 23rd.
Anycode_Plugin

The any<code/> is a free code generator specially made for Astah which our Friends of Astah member Jose developed. This enables you to export UML models to Java, PHP or technically any language you want using Templates. This Plug-in works with Astah Community edition too, so that it is a big option for Astah Community users because currently Java import/export functionalities are built in in Astah Professional only.

At this update, Jose made the two following main changes:
- New template engine (Groovy) to replace Freemarker with
- Objective-C 2.0 first directive + tutorial (Read tutorial)

Both are made based on actual user’s feedback, so now it must be a lot easier to use.
Update any<code/> plugin is available from here.

Thank you Jose for your great work and continuous effort.

Cheers,
SJ

Related post: Free Code Generator for Astah

Posted in Plug-in, TIPS, UML | Leave a comment

Astah on Java8

Astah_Oracle_Java8Java 8 is now available. However Java 8 is not included in the System Requirements for Astah yet. So we recommend you not to use Java8 with Astah yet. If you still would like to use it, please read the known issue below.

If you are on Mac:
Appearance of Start screen can cause the freeze upon on launching Astah or it makes it extremely long to launch it. So choose not to show Start screen in the System Properties. (For how to do so, please refer to [3. Solution] on this post.

If it lets Astah freeze when launching, you can try the following way:
(1) Open the property file (User home\.astah\professional (or Community)\JudeP.properties (Jude.properties (if Community) with a text editor
(2) Search for “diagram.editor.initial_operation”
(3) If found, make its value as “false”. If not found, add “diagram.editor.initial_operation=false” and overwrite the file

We’ll make an announce when we fix a release plan that will support Java 8.
No technical support will be provided to any issues arose on Java8, but we still accept reports for our further development. So please feel free to send us reports through here.

Cheers,
SJ

Posted in News, UML | Tagged | Leave a comment

[TIPS] How to show States of Statemachine diagram and Actions in Activity diagram in the Structure view

[Editions for: Astah Professional, Astah Community, Astah SysML and Astah GSN]

Did you know that you can show States and Submachine States of Statemachine diagram and Actions and CallBehaviorActions in Activity diagram in the Structure Tree?

To do so,
(1) Go to [Tool] – [System Properties]  and select [Project View] from the left menu
(2) Check the option [Show States and Submachine States on the structure tree] or [Show Actions and CallBehavior Actions] on the structure tree] and then click [Apply] – [OK].
Astah System Properties

Now they appear in the structure view.
Astah Structure Tree

Take a moment to browse the System Properties ([Tool] – [System Properties]), there may be options that you were looking for and changing them can make Astah much easier for you to work with!

Cheers,
SJ

Posted in Support, TIPS, UML | Leave a comment

Breakdown of Astah SysML 1.1′s Release Notes

Hi Astah SysML users,

Astah SysML LogoI wanted to break down new functions and improvements of Astah SysML 1.1′s Release Notes here.

Astah_SysML_API

Astah SysML API Sample application on Github

API
Based on requests from our loyal users who wish to integrate SysML models of Astah SysML with other tools, we released API. We have user guide, JavaDoc on our website and are sharing sample applications on Github for you to learn how to use our API.

Astah_Plugin_development_tutorialPlug-in architecture and SDK
Needless to say, we have laid out the architecture for you to easily develop Plugins to extend its functionalities to achieve your specific needs. Plug-in development tutorial and Astah Plug-in SDK will help you get started on your plug-in development.

Official Multi-platform release
Officially and completely Astah SysML is available for Windows, Linux and Mac OS. Older versions were already working on them but this time its official meaning more stable and firm technical support for multi-platform.

[Align Port] menu on Block/Interface Blocks
Alining multiple Ports on Blocks are now easily done with just a click of this new [Align Port] menu. It even automatically resizes the block to be in the best size as visual.
Align_Port

Stereotype to ObjectNodes in Activity Diagram
Now you are able to add Stereotypes to ObjectNodes in Activity Diagram.
Stereotype_for_ObjectNodes

Auto-add {stream} to the ObjectFlows
Now setting “stream” to ObjectNodes will automatically add {stream} notations on the diagram.
Stream

[Information Flow Dependency] in Block Definition Diagram
[Information Flow Dependency] button is added under [Dependency] in Block Definition Diagram’s tool bar.
Information_Flow_Dependency

This was a bit of breakdowns of Astah SysML 1.1‘s new improvements. We believe small improvements can make a big difference when modeling. More usability improvements are implemented in version 1.1, download a free trial to experience it by yourself.AstahSysML_FreeDownload

Cheers,
SJ

Posted in News, SysML | Tagged | Leave a comment