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.


Topics - royvanmarrewijk

Pages: [1] 2
1
General Board / Can't create instance
« on: September 04, 2017, 05:05:41 pm »
Hi,

I created a profile with a new stereotypes (called component) that extends the Class object and inherits the SysML1.3 Block object. The new type has the following instance behaviour configured:
- Mode: Instance
- Owner: Element
- Type: Component (it's own type).

Now when I am using the component type it works very well but when I try to create an instance it won't create one. So for example I drag the element on my diagram, select Drop as -> Property (SysML1.3::Part) and click OK. Then the diaglog disappears and nothing is dropped on my diagram. The strange thing is that is does work by my collegues.

Do you have any ideas what settings I have to check to get this functionality enabled??

kind regards,
Roy

2
General Board / Shape script instance color
« on: June 15, 2017, 10:36:37 pm »
Hi,

In my profile I created a stereotype "component" that inherits from a SysML::Block. Within this stereotype I used the Shape Script to set the color of the component depending on the value of a tagged value. This works fine but when I create an instance of the component it got the EA default color and I would like to inherit the color of the component. Can anyone tell me how to achieve this?

In the profile of the component I set the "Instance behaviour -> Type" to itself, is this the right way to create instances?

3
General Board / EAP missing data
« on: June 02, 2017, 05:23:33 pm »
Hi,

For backup and distribution we transfer our project (DBMS) to an .EAP file once in a while. Since a week or two I got the error "DAO.Field [3163] - Message to long" and the result is that the project is transfered to the .EAP but the .EAP is missing data like the tagged values of operations. The size of the .EAP is more than 1 GB and I think this has to do something with the DAO error but I don't know for sure.

So.. Do you guys know how I can solve this problem and what are the options to reduce the size of the .EAP. I already disabled and cleared the audit log and performed a Project Integrity Check.

Kind regards,
Roy


4
Bugs and Issues / Tagged Values aren't saved
« on: March 24, 2017, 03:18:19 am »
Hi,

Every now and then I have the problem that the changes that I made to the tagged values of an operation won't be saved. So for example I have a SysML1.3::Block with some operations and when I edit the value of a tagged value and then select another operation within the block and than switch back to the edited operation my changes are gone. The strange thing is that when I change within an operation from the tagged values field to the behavior field and back the changes are saved succesfully.

The only solution to fix this problem is to restart EA, so even close and reopening the project won't work.

Does anyone have an idea what this could be?

5
Automation Interface, Add-Ins and Tools / Recursive Query
« on: February 23, 2017, 01:42:32 am »
Hi,

I am trying to query the complete decomposition of a given element (the element itself and all it's childs, and the childs its childs) to seperate rows and I would like to do this recursively. To do this I am thinking of using the WITH statement but I can't test this because the SQL Sqratch Pad doesn't execute the query if it doesn't start with select.

Code: [Select]
With hierarchy()
AS
(

)

SELECT *
FROM hierarchy

Can anyone tell me how to run this query or how to create a recursive query and start with Select.

Roy

6
Automation Interface, Add-Ins and Tools / Generate baseline Release Notes
« on: December 08, 2016, 12:39:48 am »
Hi,

We use the EA baseline functionality to baseline our packages when needed. With the 'Show Differences' I am able to have a overview of what's changes and I like the output. Now I am wondering if it is possible to export the differences in a way that people who are receiving our documentation also can read it. I would be great to select the features (like a operation or a interface) and only have that features exported.

Does anyone know if this is possible, or an equal solution.

Roy

7
Bugs and Issues / Create tag group doesn't work for operations
« on: December 06, 2016, 12:41:28 am »
Hi,

In the "Automation Interface, add-ins and Tools" forum I posted the following:
http://sparxsystems.com/forums/smf/index.php/topic,37568.0.html

Quote
Hi,

I created a MDG Technology for our project and within this Technology I stereotyped classes and operations. Within this elements I created standard Tagged Values to support the engineers. When I use create Tag group within the class stereotype and dev >:(ide the tagged values over the groups it works fine but when I do this for operations it doesn't work. All the tagged values are represented as one list when I create the stereotyped operation.

Do you know how to fix this or should I report this as a bug? FYI: I used EA 11.

Roy

qwerty told me that this problem also exists in EA12.1 so thats why I would like to report the bug.

8
Hi,

I created a MDG Technology for our project and within this Technology I stereotyped classes and operations. Within this elements I created standard Tagged Values to support the engineers. When I use create Tag group within the class stereotype and devide the tagged values over the groups it works fine but when I do this for operations it doesn't work. All the tagged values are represented as one list when I create the stereotyped operation.

Do you know how to fix this or should I report this as a bug? FYI: I used EA 11.

Roy

9
Automation Interface, Add-Ins and Tools / Attach file with HTML report
« on: November 23, 2016, 08:29:55 pm »
Hi,

When I add a hyperlink in a diagram with a reference to a file on the server the HTML generator creates a local copy of the file in the files direction. When I create a hypelink in the notes field or when I create a predefined structure type 'file' the HTML generator won't create a copy. Can someone tell me why EA handles the hyperlinks different (and if possible, how to fix this)?

Roy

10
Automation Interface, Add-Ins and Tools / MDG Technology operations
« on: November 17, 2016, 11:05:08 pm »
Hi,

I would like to create a profile which contains a stereotype of an operation and I would like to use this operation in a stereotyped class. Can someone tell me how to do this??

With this I would like to know if it is possible to create additional fields in stead of tagged values. So for example I would like to stereotype an operation and add the fields {min value, max value, fraction} and when I create this operation the additional field are shown.

kind regards,
Roy

11
General Board / Map functions to signals
« on: October 20, 2016, 12:09:33 am »
Hi,

For an industrial automation project I would like to design with which inputs and outputs soms functions are realised. For example the electrical designer designed that we communicate with an frequention inverter via analog signals 4-20mA and we use a digital signal to store the selected frequency. My functional design uses SetFrequency to describe this functionality and now I would like to use something like a sequence diagram to create a mapping.

What do you think is the best way to realize this? I allready experimenting with (SysML) flow properties to define the signals but I can't use this in sequence diagram.s

Roy

12
Automation Interface, Add-Ins and Tools / Generate script name
« on: September 15, 2016, 10:18:46 pm »
Hi,

We use JScript to write scripts that puts the content of the model into a word document. Now I would like to add the name of the script in the document so how can I access the name of the running script (and if possible the names of the included scripts).

Kind regards,
Roy

13
Hi,

I have blocks with operations that use an enum as returntype and now I would like to write a query which gets values of the returned enum. For so far I have this:

Code: [Select]
SELECT opPar.*
FROM t_operation op, t_operationparams opPar
WHERE op.OperationID = 5929
AND opPar.OperationID = op.OperationID

Now the problem is that t_operationparams.Type contains the name of the enum and that I have multiple Enums with the same name (//not nice but for now out of scope). So how can I access the specific enum (by its Object_ID of guid)?

kind regards,
Roy

14
General Board / Enums as array
« on: August 03, 2016, 07:00:16 pm »
Hi,

Is it possible to use enums as multiplicity for attributes so I can create the following example:

_viewer_id[eDir] : int

(If not then) I would like to know how I can define multidimensional arrays in which I assume is possible within EA.

kind regards,
Roy van Marrewijk

15
Hi,

I am busy writing a script that export content to an Excel file. This is what I got:

Code: [Select]
!INC Local Scripts.EAConstants-JScript
!INC IXAS Doc Lib.Log


/*Excel Application functions*****************************************************************/

function Excel()
{
//Attributes
this.app = new ActiveXObject("Excel.Application");

//Operations
this.destroy = _destroy;
}

function _destroy()
{
this.app.Quit();
}

/*Excel Sheet functions***********************************************************************/

function Sheet()
{
//Attributes
this.sheet = new ActiveXObject("Excel.Sheet");
this.sheet.Application.Visible = true;

//Operations
this.addText = _addText;
this.destroy = _destroy;
}

function _addText(column, row, text)
{
this.sheet.ActiveSheet.Cells(column, row).Value = text;
}

/*Main***********************************************************************/

function openExcel()
{
var excel = new Excel();
var sheet = new Sheet();

return sheet;
}

function main()
{
//Clear log windows
Repository.ClearOutput("Script");
Repository.EnsureOutputVisible("Script");

var sheet = openExcel();

sheet.addText(1,1, "Cheers");

log.info("Document generation completed. ");
}

main()


When I run this script it opens Excel and writes the text in the given cell but when the script finishes the script wil destroy the object en so the Excel application closes. Can some of you tell me how to keep Excel open after finishing the script? I would like to realize this without saving the document.

Kind regards,
Roy

Pages: [1] 2