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

Pages: [1]
1
General Board / embedded elements
« on: September 07, 2010, 10:05:28 pm »
are embedded elements in the uml specification?

2
General Board / Embedded elements for association class
« on: September 07, 2010, 09:18:23 pm »
I had successfully add a embedded element(element: Port) to a normal classes, however it seems not possible for association classes, there is no type i can select, and hence prevent me to click the OK button. Please advise, thanks!

3
Bugs and Issues / Re: currentModel.connectors not working
« on: August 23, 2010, 08:33:37 pm »
Solved! thanks for your help.

4
Bugs and Issues / Re: currentModel.connectors not working
« on: August 23, 2010, 02:44:13 pm »
so if I want to retrieve the connectors from a package that is on a particular diagram, what should I do?

I tried calling diagrams.diagramlinks to get the connectors ids, and tried using package.connectors to call all the connectors to match with those connector ids. Howeever, I am stuck at the point where package.connectors give me no connectors.

Thanks!

5
Bugs and Issues / currentModel.connectors not working
« on: August 23, 2010, 05:47:59 am »
Code: [Select]
       private Hashtable produceLinkTable(EA.Package currentPackage)
        {
            Hashtable tempHash = new Hashtable();
            for (int k = 0; k < currentPackage.Connectors.Count; k++)
            {
                EA.Connector tempConnector = ((EA.Connector)currentPackage.Connectors.GetAt((short)k));
                tempHash.Add(tempConnector.ConnectorID, tempConnector);
            }
            return tempHash;
        }

and when I do a connectors.count.... zero! I am pretty sure I got tons of connectors in the diagrams, I had been calling them from diagramLinks, which all gave me valid connectorIds. Please help, cheers!

6
Automation Interface, Add-Ins and Tools / getcontextObject in C#
« on: October 01, 2010, 07:16:23 pm »
I wrote some Jscript in EA using  the getContextObject method, however cannot find it in the C# add-in interface, do you guys experienced this as well?

7
Automation Interface, Add-Ins and Tools / diagramlink geometry
« on: October 01, 2010, 02:37:42 am »
If anyone have some experience with geometry of diagramlinks, I need some help on decrypting the geometry code, thanks!
Code: [Select]
theElement.Geometry:EDGE=2;SX=70;SY=-55;EX=73;EY=-55;$LLB=;LLT=;LMT=CX=121:CY=13:OX=0:OY=0:HDN=0:BLD=0:ITA=0:UND=0:CLR=-1:ALN=0:DIR=0:ROT=0;LMB=CX=166:CY=13:OX=0:OY=0:HDN=0:BLD=0:ITA=0:UND=0:CLR=-1:ALN=0:DIR=0:ROT=0;LRT=;LRB=;IRHS=;ILHS=;      


8
Automation Interface, Add-Ins and Tools / Re: GetContextItem
« on: September 15, 2010, 03:52:18 pm »
thanks, it works.

9
Automation Interface, Add-Ins and Tools / GetContextItem
« on: September 15, 2010, 05:24:10 am »
can anyone give a example of how to use the method GetContextItem in Jscript, I tried passing a object into it, give me type mismatch error.

10
thanks for the reply, it is good to know. Althought it seems a bit strange element do not have this option, but connectors do.

11
thanks, I missed that one in the manual, sorry about that. I want to do that to elements too, but it seems there is no api for elements?

12
is there a better way to hide connecters in a diagram? I tried to look up the manual, it seems nothing there. My current solution is using shape scripts, which is awful because it only hides the line, but not the arrow and the tag of the connector!

13
it works, thanks!

14
I am trying modify the elements and connectors on a particular diagram, and the changes display right after the script is ran for the elements, however not for the connectors.

so after each modification of a element I do:
Code: [Select]
           

theElement.Update();
theElement.Refresh();
theObject.Update();
      
theDiagram.DiagramObjects.Refresh();
theDiagram.DiagramLinks.Refresh();
theDiagram.Update();


however if I do for connectors:

Code: [Select]
theTags.Refresh();
theConnector.Update();
theLink.Update();
      
theDiagram.DiagramObjects.Refresh();
theDiagram.DiagramLinks.Refresh();
theDiagram.Update();
      

and this would not work because the Connector does not have a refresh method.

So the question is, is there any other way to refresh the connector? (currently the connectors on the diagram needed to be clicked in order to be noticed of the change.)

Cheers,
Daniel

Pages: [1]