Is there an open-source tool for drawing OPC UA graphical notation? - opc

Do you know about some drawing tool that supports the Graphical Notation described in the OPC UA standard Part 3 Annex D?
The notation is similar to UML but has some extra elements that map nicely to the OPC UA information model (like different types of references). This is an example of the notation:
It would be great if it was free, ideally open-source. Thanks.

There is a way to get the official OPC UA Specification Graphical Notation:
This requires a Windows PC with Office Word and Office Visio installed.
Download the Companion Specification Template (free after registering):
https://opcfoundation.org/developer-tools/specifications-unified-architecture/opc-ua-companion-specification-template/
Open the Word Document
Scroll to a Diagram in the first part of the document. Since all the drawings are embedded visio files, you can double-click to edit the graphical notation inplace.
Then select the graphical notation and copy/paste it to a new Visio Document
Use any part of the copied notation to create your own drawing

Yes Draw.io is good choise.
I have found recently one shape library for draw.io on github by Costantino Pipero. There are already created standard shapes.
You can just download .xml file and in draw.io you can import it in File -> Open Library from -> (choose from where you want import)
If you want edit this library or create your own - tutorial

If you have a Windows PC and Visio installed you can simply download the official Visio shape library form the OPC Foundation website: https://opcfoundation.org/guidelines-and-templates/

You can use draw.io: https://www.draw.io/
It's not an explicit tool for OPC UA but it supports all shapes, arrows and styling options.

Related

Using Enterprise Architect API for documentation in Gitbook

we use Sparx Enterprise Architect for creating our UML diagrams. Also we write our architecture documentation based on Gitbook. Currently we copy & paste the diagrams into MS Paint and save them as PNG to use it the image in the Gitbook.
Our build system then creates a HTML version of the Gitbook and publishes the documentation to our webserver.
The question is that we want to reference the diagrams directly from Gitbook/Markdown to Enterprise Architect. Is there any kind of REST API for Enterprise Architect available to directly link to a PNG/image?
Yes, there is, but you'll need to install the cloud server component.
As an alternative you could also:
Export the model as HTML and reference the element/diagram on there. You can use the GUID to get stable hyperlinks
Use the regular automation API to build your own export/synchronize mechanism.

Visual software tool for creating complex branching logic

Is there a visual software tool (no batch coding/programming language) which can enable an end user to create complex branching logic like this tool : http://www.visuallogic.org/VLTutorial.html . Any eclipse plgun-in similar to this. I want that complex logic expressed by the end user to be represented in XML form
A set of plug-ins called vIDE might help you - it's a tool based on GMF I am currently developing. You can check out the project here.
It's still far from stable or finished, but you can draw flowcharts in it which get dynamically converted to Ecore models (which in term can be exported to XML).
My current effort is to support generation of executable Python code from the drawn flowchart.
Take a look at UniMod
In term of pure flowchart diagrams (and not UML diagrams), I didn't find anything recent.
flowchartstudio is not supported on recent Eclipse version
flowchart4j (not free) is interesting (for Java programs, so no XML representation)
DRAKON Editor
http://drakon-editor.sourceforge.net/
It it supports visual programming in several programming languages, including Java, Processing.org, D, C#, C/C++ (with Qt support), Python, Tcl, Javascript, Lua and Erlang.
Why to use DRAKON than other diagramming systems?
No line intersections. You will never find in DRAKON diagram two or
more lines intersecting each other! Not seen in other diagramming
systems!
Silhouette structure. It allows to break one diagram in to several
logical parts. Not seen in other diagramming systems!
No slanting or curved lines. Only straight lines with right angles.
Icons are placed only on vertical lines.
Branching is done in a simple, visible and consistent way.
Each diagram has one entry and one exit.
More about DRAKON here:
http://en.wikipedia.org/wiki/DRAKON
Take a lool at TUM.CMS.VplControl

OLE Automation basics with Perl

I'm new with this Perl Win32::OLE automation. I have been reading and trying out some examples. I have a few questions (excuse me if i'm using incorrect terminologies - do correct me):
Can OLE be used to automate Visual
Studio 2005? I only found examples
with Word, Excel and IE. How do
you know which app can be used?
How do I get the name of the program ID
to be used. For instance, "Excel" in
Win32::OLE->new('Excel.Application')
How do I get the available functions
for each programs. For instance,
Workbook, only can be used with
Excel, not Word.
Thanks for your time :)
The Win32::OLE documentation provides a rudimentary starting point.
As for your questions:
I do not think VS 2005 provides an OLE automation interface.
See this post on PerlMonks.
An excellent source of information for Microsoft Office applications is the Object Browser. You can access it via Tools -> Macro -> Visual Basic Editor. Once you are in the editor, hit F2 to browse the interfaces, methods, and properties provided by Microsoft Office applications.
Typically, the OLE automation model is up to the software you are trying to automate. You can usually figure it out by looking at the documentation, for example for the Microsoft products it will be in MSDN. For Visual Studio and the Office tools, you can also use the macro recorder to help figure out the syntax, since you can record a script that does vaguely what you want and then modify it.
Also, Visual Studio comes with the tool called "OLE/COM object viewer" (Oleview.exe) which can be used to open and read the type libraries for some target software. The type library is usually contained within a .tlb or .dll file and contains the more or less full description of the OLE Automation types defined for the application. You can look at the .idl thus reverse engineered and try to figure out what kind of things are possible.
To get a brief overview and introduction I would suggest looking at this The Perl Journal #10. Created by Jan Dubois.
Also here are some examples, if you havn't stumbled across it yet Examples
Hope it helps

Does MS Visio support sequence diagram?

Does MS Visio support sequence diagram?
File -> New -> Software and Database -> UML Model Diagram
After that you should see the UML groups (on the left hand side bar) , which Sequence diagram should be present.
HTH someone else.
It seems only Visio 2013 and Visio 2016 are supported, according to Microsoft docs here : MS Office Article
Also take a look at http://softwarestencils.com/uml/index.html. I find that these stencils are much better than the provided ones and they support the newer UML constructs to boot.
I found the Software and Database templates at http://www.microsoft.com/en-us/download/details.aspx?id=25110
Microsoft Visio does support UML and Java diagram such as sequence, class and use case diagrams. You need to click on software in order for to use these diagrams.

Where can I find visio shapes for software development?

Anyone have any ideas on where to get a really nice collection of visio shapes, e.g for the following purposes:
network diagrams
shapes to show solution deployments
any other fancy looking diagrams for software development?
Pavel Hruby has some nice stencils for UML and SysML on his site. I use the UML stencils all the time, because they are a lot easier to use than the ones provided by visio.
There is a nice bunch of visio shapes for gui mockups here.
(1)
http://www.microsoft.com/downloads/details.aspx?FamilyID=6297CF81-C071-4BEA-BD9D-FDE692536E5A&displaylang=f&displaylang=en
The above URL now redirects to:
https://www.microsoft.com/en-us/download/details.aspx?id=25110
The above URLS (at the time of writing) take me to a page titled:
"Software and Database Shapes for Microsoft Visio"
Below is another option. Some are "for pay".
(2)
http://www.visiocafe.com/microsoft.htm