Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - royvanmarrewijk

Pages: 1 2 [3] 4

I used the following code to set the colors of a diagramObject to 'default'

Code: [Select]
diaObj.Style = "BCol=-1;BFol=-1;LCol=-1;LWth=-1;";

because the function "element.SetAppearance(0, 0, white)" didn't do the trick.

So this is the cause of the failure.


Thanks again!

I've installed a MySQL database on my pc and exported my project to this database. After I compared the two exports (before and after the change) I discoverred that t_diagramobject.ObjectStyle contains the information (PType = 1) as you allready expected. Only when the property type must be shown the PType string will be visible in the ObjectStyle field.

Thanks for giving me directions!


Since I don't want to ruin the general model I am scripting in a local .eap. So is there an option to read / export the database behind the .eap so I can compare it.

kind regards,


I tried to edit the diagram styleEX but that didn't work out. This is what my code look likes:

Code: [Select]
diagram.StyleEx = "ShowAsList=0;"+


With this code I see some changes but not the required element type.

Can anyone provide me with some tips & tricks?

Hi qwerty,

Thanks for your quick reaction!!
Normally we right click on an element in the internal block diagram and then select advanced -> Show element type, this of course wil show the type of the selected element. I would like to automate this and I am going to try out your idea.



I am writing a script (JScript) which set the global color of the blocks and there instances. I use the SetAppearance function to do this but when I color an instance the element type of the instance within an internal block diagram disappears. So can anyone tell me how to prevent this or how I can enable 'show element type' with scripting?

kind regards,
Roy van Marrewijk

Bugs and Issues / Project transfer empty
« on: May 02, 2016, 11:27:23 pm »

I use the Project Transfer function to create an export of the model once in a while and it usally it works fine. But for some reason it doesn't work anymore since the Project Transfer (DBMS -> EAP) is done within a second and the .EAP is empty.

Does anyone of you have an idea what this could be?

kind regards,

Automation Interface, Add-Ins and Tools / Re: Behavior editor
« on: April 25, 2016, 05:09:44 pm »
Hi Geert,

Thanks for your quick reaction!
Would you like to share your add-in or do you have some document like 'Develop EA add-ins for Dummies'?

Kind regards,

Automation Interface, Add-Ins and Tools / Behavior editor
« on: April 22, 2016, 08:16:53 pm »

For the description of the behavior we are currently using the behavior field within an operation of a SysML1.3::Block. Because the editor of the behavior field isn't that well I am wondering what the alternatives are. I already tried to use the initial code field so we can at least have some tabs and colors but what I really would like to have is a possibility to edit my code in for example Notepad++. Within Notepad++ it would be nice if we have the possibility to have all the operations in one view.

So can someone tell me what's the best way for describing the behavior of operations?

Automation Interface, Add-Ins and Tools / Linked document to Document
« on: April 06, 2016, 12:00:22 am »

For our project we use JScript to collect the information from the model and to plot it into a Word document. Since some of our elements contain linked documents with images I would like to know how I can copy the information from the Linked Document into the Word document. I tried to use the GetLinkedDocument function which returns a string of the content but I don't know how to convert this to readable information / images.

Kind regards,

General Board / Re: UML class to SysML block
« on: February 16, 2016, 05:55:27 pm »

Thanks for your quick and helpfull reactions!! This really helped me out.


General Board / UML class to SysML block
« on: February 16, 2016, 01:19:06 am »

We just discovered that a teammember created a lot of UML class type elements where our conventions tells us to use SysML1.3 type elements. :o Can anyone tell me if there is a standard EA function which I can use to convert the UML Class to a SysML1.3 Block?


General Board / Re: Pass operations through ports
« on: October 16, 2015, 09:50:27 pm »

I created a Block "System" this block contains two ports (port1, port2). Port 2 depends on Interface "interface1" which contains the operation Hi(). So Port2 contains the required interface.
System has a part (via Part association) called "A". I dragged the arrow from Port2 to Block "A" and then selected required interface -> delegate. In the window that popped up I selected "interface 1".
Now when I try to create a sequence diagram and I create a message beween Port1 and A I can't select the operation Hi(). What should I do to fix this?


General Board / Re: Pass operations through ports
« on: October 16, 2015, 05:03:41 pm »
Hi Qwerty,

Thanks for your reaction. Can you maybe tell me how you would design the following case:

I Have a System that Realizes the Interface IN and depends on the Interface Out. The System contains two Sub Systems (A & B). The messages from IN effects the Subsystem A. A gives B a command and B then send a message to the outer world by the OUT interface.


General Board / Pass operations through ports
« on: October 16, 2015, 01:28:33 am »

I have a SysML question. I created three Blocks [A, B, C]. The blocks contains ports and the ports are types by an (interface)block. An interface block either realizes an interface of depends on an interface. With this construction A is connected to B and B is connected to C. This construction enables me to design the interface behaviour of the interfaces between two blocks. But when I try to design the behaviour between the two ports that belongs to Block B (see Ports 3 and 4 below) it isn't possible, this because I can't call the operations of the interface on the side of Port 3, this because Port 3 is the required interface).

[A][Port 1]->Dep->[IF]<-Rlz-<[Port 2][Port 3]->Dep->[IF]-<Rlz<-[Port 4][C]

So If anyone can tell me how to pass operations through a port it would be very helpfull!

I already tried to work with Proxy Ports and Conjugated ports but this doesn't work.

Kind regards,

Pages: 1 2 [3] 4