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 - rayt

Pages: [1] 2
1
General Board / Re: Model Search scripts - how to pass 'search ter
« on: April 25, 2013, 07:09:25 pm »
Hi
I wrote to support about a year ago, they wrote search term access for search scripts will be added in a later version.

Paulrus suggested a workaround (in this thread) using a keyword entry dialog that I used .

2
General Board / RTF Report: listing all connectors
« on: April 25, 2013, 08:00:21 pm »
Hello,

I would like to generate a documentation listing all connectors.

Tried these options, both to no avail:

1. In the edit template sections tree, having elements/connectors checked -> Connectors are appearing twice, once for the source element and once for the target element.

2. diagram/connectors checked -> Lists all connectors once but there's no direct option for outputting the source and target name here. I know it uses the element/connector setting, but when having this checked, these appear too in the documentation

This must be really basic, but I'm currently stumped. Maybe someone knows a quick solution
Thanks!
Ray

3
General Board / drag and drop "simple link"  losing styles
« on: August 03, 2012, 03:28:34 am »
Hello,

I'm doing a drag and drop operation of a hierarchy of objects from the project browser into a diagram.

To get the same layout as in another existing instance of these objects, I pick "as simple link", and then "include embedded elements based on instance [name of instance]".

I'm then getting the same positioning and sizes as the selected instance, which is great - however the styles from that instance are lost, unlike when copying and pasting the elements from the other diagram instance.

Just curious, is this a bug, is there any way to regain those styles?  

Thank you!
RT


4
General Board / issue when realizing bidirectional flows
« on: August 10, 2012, 01:08:05 am »
Hello,

when realizing a bidirectional flow with a bidirectional connector, I only get an unidirectional arrowhead on that connector indicating the realiziation.

Is this a missing feature or do bidirectional flows not exist at all?
Sorry for the noob question.

5
General Board / Re: Model Search & Connectors
« on: June 19, 2012, 11:41:45 pm »
If you often need to look up connectors in diagrams, you can use
Code: [Select]
select source.ea_guid as CLASSGUID..instead of
Code: [Select]
select c.ea_guid as CLASSGUID..in Geert's code above

This associates the result line with the start object so find in diagrams will work (It doesn't work with connector ea_guids).
Note then however, properies will show the properties of the start object also.

6
Bugs and Issues / Issue with 2 EA versions installed on 1 machine
« on: August 06, 2015, 07:10:06 pm »
Hi team EA and fellow users -

I had EA10 and EA12 installed in parallel, then decided to uninstall EA10 - this action seemingly broke EA12's scripting :-[

Actually not sure whether this is a bug or if we just "aren't supposed to do that".

Would be glad to know which it is.
Thanks!
-rayt

7
Automation Interface, Add-Ins and Tools / sort order and SQL
« on: September 24, 2015, 12:54:13 am »
Hello all,

when in the project browser, the order of items under a package hasn't been changed yet by the user, then there's no entries in their SQL TPos.

when it's changed using "move up" or "move down", the TPos entries appear in the SQL table.

My problem is that they don't disappear again when a "reset sort order" is done, so I'm not able to detect if the reset has been done from inside my scripts/addons.

Should I log this as a bug / is there an alternative way to detect if the sort order has been reset?

Cheers.
-rayt

8
Thanks a lot Aaron.

I agree Helmut, I'll make a sparx "cheat sheet" for these things.
Reinhard

9
Thanks for your reply Helmut. I will push towards the encapsulation way.
Reinhard

10
Hi folks, another (probably) newbie question, is it possible to retrieve the association class of a connector using only the scripting API?

I found SQLQuery does that job but I was asked not to use SQL in the script to keep it more readable

Cheers
-r

11
indeed know issue, fix scheduled for ea11
ray

12
Thanks for your reply, I'll report a bug.
Btw this only happens when the diagram is not visible in a window, so caling Repository.OpenDiagram(theDiagram.DiagramID); before the update is an (ugly) workarond.

13
Hello,
making a simple call to update() on the diagram object of a structural element moves the box to (0,0) inside its parent - this was working in EA 9, but appears broken in EA 10.
can anyone reproduce this or maybe have a workaround?
thanks,
ray

Here is some code to reproduce the effect. Apparently it works with normal elements, but not with structural elements.
Code: [Select]
OnProjectBrowserScript();

function OnProjectBrowserScript()
{
      var theDiagram as EA.Diagram;
      theDiagram = Repository.GetTreeSelectedObject();
      
      for(var i = 0, maxi = theDiagram.DiagramObjects.Count; i < maxi; i++) {
            var dob as EA.DiagramObject;
            
            dob = theDiagram.DiagramObjects.GetAt(i);            
            dob.Update();
      }
      
      theDiagram.Update();
}


14
Thanks for your reply qwerty. The issue was using uppercase instead of lowercase tag names.

15
Automation Interface, Add-Ins and Tools / Hyperlinks in notes, automation
« on: October 29, 2013, 05:29:27 am »
Hello,

We're planing to run a script to automatically create $element://... hyperlinks to all model classes inside the notes fields.

The issue we're having is when writing to Element.Notes using the API, all hyperlinks are removed and converted to "readable" ASCII.

Is there a way to keep the links? (i.e. write unprocessed html sourcecode to the notes field?)

Thanks for all information!
Ray

Pages: [1] 2