Sparx Systems Forum
Enterprise Architect => Suggestions and Requests => Topic started by: SomersetGraham on March 11, 2010, 08:15:04 pm
-
All
I have been trying to create a link between a note and an element feature via automation.
To achieve this I had to update the repository database directly.
It would be good to have access to these fields directly from the API
Would anyone else find this useful?
Graham
-
Gets my vote!
+1
g.
-
Mine too!
Geert
-
POLLution + 1
Though I doubt we'll get it as those PDATA are definitely those bit buckets evolving over the years indicating a bad design. Honestly I'd prefer to have a sane object model.
b.
-
I think we all do, but the point is that ALL properties should be exposed in the API.
Now it is impossible to change some things without hacking away in the database with the PDATA fields.
Geert
-
Aggreed of course! But having access to PDATA fields through the Automation API would at least enable you to put a sane model on top of EAs classes (a bit easier than using direct DB access). I did this anyway in my AddIn.
g.
-
Totally and wholeheartedly agree. This approach should be extended to the entire database schema, allowing access to things like all fields in t_document, direct API R/W access to RTF documents without having to use a file as an intermediary, etc.
-
I think we all do, but the point is that ALL properties should be exposed in the API.
Now it is impossible to change some things without hacking away in the database with the PDATA fields.
Geert
Absolutely! (my emphasis)
And as I've said MANY times.... EA's UI should use the API so that that all the UI functions can by accessed by an Add-in or Script...
In my view this is a fundamental Architectural question.
Paolo
-
Hmm... has anyone tried using MiscData - see it in:
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/element2.html
It does state it is Pdata(x).
-
Hmm... has anyone tried using MiscData - see it in:
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/element2.html
It does state it is Pdata(x).
Hi Dermot,
We're all well aware of that... ;)
The implication in access was WRITE access which MiscData doesn't give us..
Paolo
-
Ultimately, the AI should, as Paolo has often pointed out, completely shadow the UI such that whatever a user can do manually through the UI, the AI can do the same thing programmatically.
Sparx has offered a caveat in their response to a feature request I sent in, to wit:
Hello Fred,
Apologies for the much delayed reply.
1. Do Sparx have plans for the StrContent field in the foreseeable
future, or would they be willing to allow this field to be used for
application-specific plain text objects?
- Currently this is used by the Team Review (Forum) and we cannot
guarantee in the foreseeable future that we will not use this field for
other entries.
2. Would Sparx consider allowing custom row entries in t_document
provided that the rules regarding EA's use of the table were followed?
This would allow arbitrary BLOB content (such as images, Autocad DXF or
DWG files, PDF files, etc.) to be stored as element attachments WITHIN
the database rather than as linked files. This encapsulation is
important for cases where a distributed team is working on a project but
not everyone necessarily has access to the linked files.
- We advise against modifying the database as we can not guarantee the
effect on EA's performance.
Note: I've tinkered with custom row entries (along with multiple linked
document entries) in t_document and EA seems to get along quite nicely
with them (it does, however, seem to ignore all but the first linked
document for a given element).
3. Are there any reasons why the listed fields in t_object shouldn't be
used for custom plain text data in Requirement elements?
- Because we can not guarantee that we will not be using them in the
future.
4. Would Sparx consider adding improved Automation Interface support for
the listed fields in t_document (and for the more obscure fields in
t_object while they're at it)? For starters, it would be good to be able
to load linked document RTF directly from a string rather than only from
a file.
- We will add this as a feature request on your behalf to be looked into
for a future date.
5. As an alternative (or additionally - even better) would Sparx
consider adding an option (checkbox in the UI) to treat the element
Notes field as plain rather than Rich Text? This would allow the field
to be used for XML, HTML, and other markup without it being mangled by
the HTML-lite parser used by EA. This probably means another database
hack (maybe to StyleEx or something similar?), but it seems eminently
do-able.
- For now we are not looking at going down that path however, we will
make a note of this.
6. As a side issue, what format does EA use to store RTF files? Is it
compressed (e.g. Zipped)?
- Yes, it is zipped.
However, for future build we are looking at extending some features in
the Team Review center that may assist you. Currently, you can store two
different types of resources on a Team Review item, images and XMI
package exports in version 8.0. For a future build we will be looking at
potentially adding support to for a wide range of different resource
types. This will allow you to store previously external resources in the
model. They will then be more accessible plus you will be able to
discuss them with your team. Also, some other potential additions will
be the ability to see the posts relevant to you or flag a post for
others to look at.
Best Regards,
(Name Removed)
Sparx Systems Pty Ltd
[email protected]
http://www.sparxsystems.com.au
-
Or shorter: eventually nothing will change or not. Why didn't you ask the Oracle in Delphi?
b.
-
[ot]
Programming Oracle in Delphi?? Stunned ;D ...
[/ot]
Have a nice day everyone,
g.
-
Nerds: http://en.wikipedia.org/wiki/Delphi
b.
-
I know that of course, b. (even here in the 'outer rim' we had to go to school ;) )
-
If the Oracle at Delphi felt pressured to predict favorable outcomes, could you measure that pressure in Pascals?
-
Maybe. The last I heard from Greece was Pythia starting to spell:
A - like Assembler
B - like Basic Control Programming Language
C - and she vanished in a puff (measured at about 100 hecto Pascal) since there should have been a G(amma)
b.
-
Wonder what would (have) happen(ed), if you put C++ there instead of C ;D
g.
-
Well, she would have taken the current value of the variable before incrementing it, which means she would have wound up with C instead of G all the same, and so would have still gone POOF!
-
I had in mind s.th. like >>KAWOOM<<, instead of only POOF ;)
-
Und so warten sie noch heute auf die göttliche Eingebung.
-
Ein Glück, dass ich weder an Gott noch andere "höhere Wesen" glaube ;D