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 - Paolo F Cantoni

Pages: [1] 2 3 ... 547
1
It would be strange. I haven't counted them, but we had TBs with much more relationships.

q.
Wot 'e sed!
We have upward of 20 relationships in several toolboxes.

What exactly is the problem?

Paolo

2
Bugs and Issues / v16 - Setting Line appearance to [ ] Default - Fails!
« on: August 11, 2022, 01:10:57 pm »
EA's "defaulting mechanism" for lines in the past differed from that for shapes.  For shapes, setting the extrinsic value "-1" in the BorderColor column of the t_object table would cause EA to draw the shape with the line colour as specified in the MDG.  Lines on the other hand would set the value from the MDG into the LineColor column in t_connector.  In both cases, if you changed the "Default Appearance" using the context menus, the value you selected would become the default colour for the border/line.

For shapes, setting the appearance to the Default value in the colour picker sets the value in t_object.BorderColor, back to "-1" and restores the MDG default.
For Lines, however, setting the appearance to the Default value in the colour picker sets the value in t_object.BorderColor, back to "-1", but this does not restore the MDG default; it just renders the line colour in a blue-grey!

This needs to be rectified!  My suggestion (which, I guess, will be ignored) is to make shapes and lines BOTH use the value "-1" to render the border/line in the MDG specified colour.

Reported,
Paolo

3
Hi all,

As Paolo quoted, it is described in the Define Metamodel Constraints Help topic.
https://sparxsystems.com/enterprise_architect_user_guide/16.0/modeling_frameworks/metamodelconstraints.html

See the Special Metaclasses section in the help page.

HTH,
Thank you, Takeshi-san.
As I said, this defines them, but it doesn't describe the values returned and how they may be used in a shapescript.  Do you know?

Also, I note with my usual exasperation that although there is NOW a <profile name>::*  value, you can't investigate it with the shape script.

Paolo

4
Have you checked the ConnectorEnd properties? Currently can't go through them, but if none of them is a candidate you have to use a query...

https://sparxsystems.com/enterprise_architect_user_guide/15.2/automation/connectorend.html

q.
Yes, it looks like the usual EAUI - go 90% of the way but don't do it completely.

I was hoping to avoid a query, but "been there, done that!"

Paolo

5
t_connector holds two columns, SourceTS and DestTS (Target Scope), to represent whether the scope at the relevant end is a classifier or instance.  We'd like to be able to manipulate this via scripting, but there doesn't seem to be a property to achieve this with.  We can access them in shapescripts via <end>.targetscope, and we will render the end differently depending on the value.


Can anyone confirm?  If there is such a scripting property, could a kind soul please advise what it is?


TIA,
Paolo


PS: Thomas Killian's (otherwise) excellent "Scripting EA" book, unfortunately, conflates Visibility (Access) with Visibility (Scope) in the Source/Target Properties Window description.

6
We've noticed that the middle top label transparency can vary on some diagrams.  This can only be really seen if the diagram uses background tiles.  It can vary between different stereotypes of the same type (i.e. functionally identical - as far as we can see - with only some minor rendering differences).  For the SAME stereotype, it appears to be consistent between diagrams.

We'd like to know if this is controlled by some mechanism (other than EAUI) - since we'd like our connector labels to be more consistent.

TIA,
Paolo

7
In the help for Display Element/Connector Properties, we find:
  • source.metatype                      for details of these four source.metatype properties; see the
  • source.metatype.general               Define Metamodel Constraints Help topic
  • source.metatype.specific
  • source.metatype.both
(with the equivalent target versions).
Unfortunately, while the Help defines these, it doesn't describe the values returned and how they may be used in a shapescript.  Can anybody enlighten us on these points?

TIA,
Paolo

8
I see some (old) feature requests and discussions (https://sparxsystems.com/forums/smf/index.php?topic=38768.0) about having multiple instances of an element on a diagram; We are running into the same 'issue'. There is a valid case to be made to create Archimate viewpoints that contain several instances of the same element for (business) readability purposes. Is there any know progress on this matter? Is this feature request on some list somewhere? Or is there anyone who has a feasible workaround (other than using VCE's)?
Hi, Michel,

With typical self inconsistency, while you can't create multiple instances of the same element on the one diagram, you can (used to be able to) with automation.  However, you are still left with which instance get's which relationship (if they are enabled).  Also, the long-term stability of the diagram is questionable.  That's why, if the VCE functionality were properly implemented, it would provide the correct and viable long-term solution.  But no matter what we as users think, Sparxians have different views, so you're left with the current, unviable VCE implementation.

Paolo

9
Automation Interface, Add-Ins and Tools / XGML anyone?
« on: August 08, 2022, 03:08:47 pm »
Has anyone played with XGML reverse engineering into EA?  We have some users who used Graphity to create some diagrams that we'd like to import into EA.

TIA,
Paolo

10
General Board / Re: ActiveX vs COMObject and Javascript
« on: August 04, 2022, 10:49:52 am »
PS. I hope they never stop supporting VBScript because that would mean years of code to be rewritten :-\
Unlikely to happen. What has happened is that the Microsoft components that EA relies on to debug VBScript and JScript are effectively dead. By contrast, the Javascript support is fully contained within our codebase, so that's recommended.

I use VBScript extensively (though not exclusively) because it has ByRef parameter passing.  I couldn't see how to do that in JScript.  Is it possible?
Yes, it is. All variables and arguments are assigned by value, but for objects, the value of the variable is a reference. So to pass something by reference, all you need to do is wrap it in an object and pass that.
(my emphasis)
I already knew that, but that was a shirtload of work to just get a string passed ByRef.  If I were a masochist, I could do the same in VBScript, so your comment is correct but useless.
Nevertheless, based on your point about the Microsoft components, we'll have to start planning the changeover.

Paolo

11
General Board / Re: ActiveX vs COMObject and Javascript
« on: August 04, 2022, 08:14:14 am »
Hi Martial,

Yes, try Sparx support and see what they say.

I do all of my scripting in VBScript, so I haven't encountered any of these issues.

Geert

PS. I hope they never stop supporting VBScript because that would mean years of code to be rewritten. :-\ 
Not wrong!

I use VBScript extensively (though not exclusively) because it has ByRef parameter passing.  I couldn't see how to do that in JScript.  Is it possible?

Paolo

12
General Board / Re: Evaluating EA 16: UML 2.x XMI export incredibly slow
« on: August 02, 2022, 08:16:33 am »
Hi Richard,
I believe Sparx used to steer people away from UML 2.1 transport between EA instances.  Even today, UML 1.x is preferred for XML transport.  UML 2.1, I suspect, is principally there for import from external applications.

I only use UML 1.x.  Increasingly I'm using the Native formats for inter-EA transport (which I understand you can't use in this case).

HTH,
Paolo

13
Hi Ian,


Are you using any automated testing at present?  In a couple of previous lives, I was a Testing Manager and employed automated testing to good effect.  Contact me privately and we can have a chat.


Paolo

14
For some of our metatypes, we want to enable the visibility of the Notes compartment when the item is created on the diagram (in Rectangular mode).
We tried using the Templates package to do this, but it doesn't seem to work.

Does anybody know how it can be done?  Via MDG?

TIA,
Paolo

15
As you'vedscovered, EA tends to "fail silently".
When this happens to me, I normally replace the link I specified with one of the links that work.  If that now shows the corrected icon, then it's likely an addressing problem with the original link.
Otherwise? ???

HTH.
Paolo

Pages: [1] 2 3 ... 547