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

Pages: [1] 2
1
Suggestions and Requests / Better management in scripter view
« on: September 03, 2009, 10:49:41 pm »
I need to better manage the scripts in the view Scripter. At least I need to move the script from one group of scripts to another group.

2
General Board / Diagram frames without a frames?
« on: August 10, 2011, 05:17:39 pm »
Hi all

I have a lot of a small diagrams with parts of GUI (i mean some custom reusable user objects). I need to put these little diagrams on the "dialog box" or "screen". Using drag and drop and select the "Diagram frame" provide almost real dialogue, but there very abolishes borders around diagrams. How can I disable these borders?  [smiley=undecided.gif]

3
Bugs and Issues / Re: Can't read a tagged value in VB script
« on: October 21, 2010, 05:54:43 am »
Quote
The reason you can't use GetByName is probably because the name isn't guaranteed to be unique.
Hi Geert,
I am unhappy with the fact that the collection TaggedValues in the class Element behaves differently than the collection TaggedValues in class Connector. "Curiouser and curiouser" ;)

4
Bugs and Issues / Re: Can't read a tagged value in VB script
« on: October 15, 2010, 08:23:55 pm »
Quote
The documentation says you can't use GetByName.

Quote
Only supported for the following collections: Model, Package, Element, Diagram, and element TaggedValue.

Oops, you are right. This is curious. IMHO, collection is collection, but here like as collection is not collection. Hmmm ... thanx you Luis and Simon.

My original script is more complicated and using GetAt is dangerous, because index of appropriate item is not constant. I must find relevant index with loop ... for every connector ...  :'( ... So, live is hard  ;)

5
Bugs and Issues / Can't read a tagged value in VB script
« on: October 15, 2010, 02:19:56 am »
Hi all,
i have a some script, where I looking for every connection in current diagram for some named tagged value. And, here is a problem, because a scripter crash down with message "Action is not supported". Here is my sample code:

option explicit

Dim r as EA.Repository
Dim l as EA.DiagramLink
Dim d as EA.Diagram
Dim c as EA.Connector
Dim diagramid
Dim zpol

sub main
    diagramid = 0

    Set r = App.Repository

    if (diagramid = 0) then
        set d = r.GetCurrentDiagram()
        diagramid = d.DiagramID
    end if
    Set d = r.GetDiagramByID(diagramid)

    For each l in d.DiagramLinks
        Set c = r.GetConnectorByID(l.ConnectorID)
        set zpol = c.TaggedValues.GetByName("t_em_zavislost.c_zavislost")
        if not zpol is nothing then
            Session.Output zpol.Value
        else
            Session.Output "Nothing"
        end if
    Next
end sub

main

Error occurs on line set zpol = c.TaggedValues.GetByName("t_em_zavislost.c_zavislost").

For reproduce, U can create a new diagram, add 2 objects, connect objects with Dependency link and add a new tagged value "t_em_zavislost.c_zavislost" to link with value 0 (zero).

It is a bug or feature?   >:(:o

6
Quote
Use keyboard simulation to send F12.

q.
Thank you for your response.
But it does not solve my problem. I have one file that is generated from the EA (and is visible through F12) and a second file that contains the relevant configuration. And I need to open the second file through an own contextmenu item.

7
Hi all
I create my own plugin and I need to programmatically open the code window for the specific file on disk (like key F12 - View Source Code ...). I examined all the convenient classes, but I did not find anything. Any idea?

8
Hi all,
I have a lot of scripts saved in the project (Scripting -> ...). Now I need run these scripts from my VBS script saved in filesystem (this script is scheduled for repeatedly run every night).
I there any way how to solve this situation? I know, I can rewrite my "inner" scripts into external scripts, but if exists some better solution, I'll be happier.

9
Hi all,
i need find all foreign keys in my current diagram (by VB/JS script), where referential integrity is set to cascade or restrict. And after i find the relevant connector, i need set RI to No Action or ... hmmmm ... or reset to nothing.
I never found a way to do it.

10
Automation Interface, Add-Ins and Tools / Re: How to terminate VB script
« on: October 16, 2010, 02:04:15 am »
Yap ... I see that. Sorry, wrong chm.

11
Automation Interface, Add-Ins and Tools / Re: How to terminate VB script
« on: October 15, 2010, 08:35:54 pm »
Yes, i know that VB sntx is over scope of Sparx help. But I still think he's entitled to my dissapointment of sparx help. Specifically, help for scripting. You ever tried to find details of the Session class? Or DiagramLink class?
Quote
Read only. A list of DiagramLink objects, each containing information about the display characteristics of a connector in a diagram.
Where is help for DiagramLink?  :(

12
Automation Interface, Add-Ins and Tools / How to terminate VB script
« on: October 15, 2010, 01:32:42 am »
Hi all,
I have a some VB Script (in Scripter) ... and I need a terminate a script within condition such as:
IF a = b THEN
   ' terminate now!
END IF

I could not find the right statement in the incredibly poor documentation  >:(.

Any idea?

13
I understand the requirement for compatibility between multiple closest  versions of the EA. But the drag the weight of past I think is wrong.

A separate chapter is the lack of API and SDK/API doc. I love the new functionality - Scripter, because they already do not have a lot of support scripts somewhere in the directory. Use Scintilla for syntax highlighting is a great choice. But every user, who has no experience with writing scripts for EA, he'd rather prematurely terminates writing a script, than to search the inadequate documentation and search the web.

Cry pretty, but in the wrong grave.

Thank for your support. Good luck  ;)

14
Hi Geert
Thank you for your reply.

The corresponding properties are located in the property Geometry of DiagramLink object. All properties are in a string of text and is very crazy to parse the string, repair and assembly.
I think that normalization of data model (of EAP DB) would be appropriate.

15
Automation Interface, Add-Ins and Tools / How to set label visibility?
« on: August 27, 2009, 10:43:28 pm »
Hi all
I need a script that sets the visibility of the labels of all connections/diagramlinks in the diagram. I have a large number of datamodel diagrams and everywhere I'd like to set up the same labels visibility. Specifically, I need to set the visible item Middle top label, then all other items set as invisible.
Unfortunately I can not find the right property or method that I used for this setting. I use VBScript in an internal scripter, EA 7.5. Other languages also manage, VB is not a requirement.

Pages: [1] 2