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

Pages: 1 ... 4 5 [6] 7 8 ... 646
76
According to the documentation, HasAttributes returns True if the tagged value is structured (with one or more properties).

q.

77
What would ShowForeign be in terms of a GUI setting?

q.

78
Suggestions and Requests / Re: arranging ports in a diagram via script
« on: September 25, 2018, 11:52:15 pm »
It's a bit hard to debug this way. What you should do it to write a small test program to add an embedded element. Basically you
- create a diagram object with .AddNew("<position string>", "")
- add the according embedded element's ID and
- update() the diagram object.
- Finally you need a repos.reloadDiagram(id) to actually show the newly added element.

Compare the <position string> to what a manually added object has stored in the database (use an almost empty EAP) by looking into t_diagramobjects.

q.

P.S: I used this Perl snippet:

Code: [Select]
my $rep = $ENV{'REP'}; # get repository pointer "by magic"
my $dia = $rep->GetCurrentDiagram();
my $e = $rep->GetTreeSelectedObject();
my $do = $dia->DiagramObjects->AddNew ("t=-369;l=156;r=171;b=-384", "");
$do->{ElementID} = $e->ElementID;
$do->Update ();
$rep->ReloadDiagram($dia->DiagramID);

79
General Board / Re: Suggestions Required - LOV/Value Meaning
« on: September 25, 2018, 09:15:19 pm »
Uh. Thanks for the correction, Geert. Obviously not my day.

q.

80
Automation Interface, Add-Ins and Tools / Re: Change appearance of elements
« on: September 25, 2018, 08:41:39 pm »
1. Hmm. I don't have that option. What version of EA? What diagram type?

2. I'd guess you have some add-in messing around. Or you are using template packages.

q.

81
Suggestions and Requests / Re: arranging ports in a diagram via script
« on: September 25, 2018, 08:37:34 pm »
That's a bit messy what you're doing. You should be done without the save/reload of the diagram. Just put a repository.ReloadDiagram at the very end of it all to show the update.

q.

82
General Board / Re: Suggestions Required - LOV/Value Meaning
« on: September 25, 2018, 07:44:10 pm »
Attributes are found in t_attribute with matching ObjectID. Tagged values in t_attributetag with matching ElementID. In both cases it refers to t_object.object_id (note the consistence in the naming).

q.

83
Automation Interface, Add-Ins and Tools / Re: Change appearance of elements
« on: September 25, 2018, 07:38:56 pm »
1. I can't help. There is no such option. Neither for a component nor a class (and probably anything else) :-/ Can you show a picture (you need to place it on a public server)?

2. Still no clue what you're doing here.

q.

84
Suggestions and Requests / Re: arranging ports in a diagram via script
« on: September 25, 2018, 07:33:55 pm »
I was less interested in the way you calculated the position rather than how you update the data in the DB.

q.

85
You need to check if the tag is already present in the list. In that case you need to alter its assignment after the "=". Just adding the attribute again to the list will confuse EA and behave arbitrarily.

q.

86
General Board / Re: Upgrade from 12 to 14 - Corporate Edition
« on: September 24, 2018, 06:46:26 pm »
No. The repository is unchanged (more or less since 2003). Just update the clients.

q.

87
Automation Interface, Add-Ins and Tools / Re: Change appearance of elements
« on: September 24, 2018, 06:45:16 pm »
1. What do you mean by "name under image"? Are you using an alternate image? And if so, how can that be as default?

2. I don't get it either. Where does that "default text" come from?

q.

88
Suggestions and Requests / Re: arranging ports in a diagram via script
« on: September 24, 2018, 06:39:15 pm »
I have just tried with 1309 and it appears to work. Can you post your code so we can eventually spot the bug?

q.

89
Suggestions and Requests / Re: arranging ports in a diagram via script
« on: September 24, 2018, 04:15:16 pm »
Positioning of embedded element broke in one version (can't remember exactly when, but quite a while ago). I don't know if it has been fixed in some recent version. Try an update.

q.

90
General Board / Re: More 'natural' curved connectors ?
« on: September 24, 2018, 03:25:25 pm »
You might raise a FR. But I'd give it no big chance. Curved connectors and auto-layout are kind of diametral opposite things. The latter can be done on a very basic level by an automated system. But the curved lines are more an esthetic effect. Some smart AI in the (near?) future might handle that.

q.

Pages: 1 ... 4 5 [6] 7 8 ... 646