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.


Topics - Rob7795

Pages: [1]
1
Suggestions and Requests / Attribute and Property names
« on: June 05, 2003, 06:58:40 pm »
Is there anyway of changing the naming convention for attributes to include, say, "m_" as a prefix?  I know it can be set for associations, but I'd like to do it for just plain attributes that aren't referenced by a specific association.

I can do it if I name the attribute explicitly with the m_ prefix, but this just causes more work with the property methods.

The same applies for capitalisation of both the "Get/Set" and the attribute name embedded in the operation name.

Cheers, Rob.

2
General Board / Rendering external documents via the RTF Generator
« on: December 02, 2009, 01:22:21 pm »
Has anyone had any luck using the RTF generator (via a "model document", etc.) to include (aka. render) the contents of an external document (ie. still residing on a file-system and not an internally linked document)?

Some external content needs to be included, but also remain "editable" via WORD by other users who don't have EA. I can render an internally linked document artifact, but I can't see how to render something external.

Cheers, Rob.

3
General Board / InteractionOccurrence missing in project browser
« on: April 18, 2005, 10:13:22 pm »
I've had problems for some time now when moving diagrams within my model and have just found the problem.

If you have a sequence diagram with an InteractionOccurrence on it (a reference to another sequence diagram), move the diagram and its elements by multi-selecting the diagram and it's "owned" elements to another package/node and delete the original package, then the InteractionOccurrence is removed from the diagram.

This is caused by the fact that the InteractionOccurrence does not appear in the project browser for the diagram, and therefore, cannot be selected.  When you move the diagram and elements to a new location, the InteractionOccurrence is left behind, but hidden under the original package.  When you delete the package, you implicitly delete the InteractionOccurrence, which removes it from the diagram.

In many cases, it's easier for me to modify a copy of an existing diagram than to create one from scratch.

So, I copy diagram to clipboard, paste under a package (usually temporary for this exercise), then move the elements to a UseCase (since you can't paste a diagram to anything other than a package).

Does anyone know how to get around this problem?

I use this technique to identify UseCase realisations - associating sequence diagrams directly with the UseCase.   I would actually like to paste a copy of the diagram directly under the UseCase, rather than via this temporary package.

Cheers, Rob.

4
General Board / Python and Automation (for Python/COM people)
« on: July 07, 2003, 12:32:19 am »
I'm trying to get access to the automation service for EA via Pythin and am nearly there.  However, a big showstopper is that I get an error when I try to iterate through the "models" property of the repository.  I get the error message below (at end) complaining about "GetAt" not existing in the interface of the COM object.

I don't have a problem in VBscript within a Word Macro, so the Automation Server itself seems to be OK.  I'm sure it's just a python thing.

It does appear to be any collection, or rather, "DualCollection" as exposed through the COM interface ("authors", etc, have the same problem).

Any help would be greatly appreciated.

Thanks in advance, Rob.
----------------------------------------------------
error message from Python console below:
-------
Traceback (most recent call last):
 File "C:\Python22\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 307, in RunScript
   debugger.run(codeObject, __main__.__dict__, start_stepping=0)
 File "C:\Python22\lib\site-packages\Pythonwin\pywin\debugger\__init__.py", line 60, in run
   _GetCurrentDebugger().run(cmd, globals,locals, start_stepping)
 File "C:\Python22\lib\site-packages\Pythonwin\pywin\debugger\debugger.py", line 591, in run
   exec cmd in globals, locals
 File "H:\backups\word.py", line 20, in ?
   m = modelList.GetAt(0)
 File "c:\Python22\Lib\site-packages\EnterpriseArchitect.py", line 856, in GetAt
   ret = self._oleobj_.InvokeTypes(0, LCID, 1, (9, 0), ((2, 1),),index)
com_error: (-2147352573, 'Member not found.', None, None)
>>>

5
General Board / convert classes to instances on sequence diagrams
« on: July 07, 2003, 12:20:18 am »
I've created a sequence diagram with classes rather than instances: is there anyway to easily convert them into instances without having to recreate the diagram and without affecting the original class definition?

6
General Board / Attribute and Property Names
« on: June 05, 2003, 07:03:00 pm »
Is there anyway of changing the naming convention for attributes to include, say, "m_" as a prefix?  I know it can be set for associations, but I'd like to do it for just plain attributes that aren't referenced by a specific association.

I can do it if I name the attribute explicitly with the m_ prefix, but this just causes more work with the property methods.

The same applies for capitalisation of both the "Get/Set" and the attribute name embedded in the operation name.

Cheers, Rob.

7
Bugs and Issues / Components exposing (provided/required) interfaces
« on: November 13, 2009, 05:23:50 pm »
I'm having trouble working out the best way to model an existing system with components that expose interfaces, either provided or required. This issue is the traceability back to the original interface element....

I have an interface interface1, and 2 components component1 and component2.

I have created an exposed interface on component1: when prompted, I select interface1 from the list - the provided (lollipop) is annotated with "interface1". I do the same (but opposite) for the required (socket) interface on component2.

Then, I create a dependency from the required interface to the provided interface:



My problem is that if I then open up the properties of the interface1 (as the original element specification, not the provided/required interface) I get no references to either of the components in the "links" tab. If I change the name of the original interface in the project explorer, the annotations on the diagram change along with it - so there must be a relationship there somewhere.  In the end, it means the relationship matrix doesn't show the associations that I'd expect.

Can anyone shed some light on what I'm doing wrong?

Cheers, Rob.

8
Bugs and Issues / RTF document generation: list of tables/figures
« on: April 09, 2009, 10:30:02 am »
Hi, I'm trying to get the RTF document generated for my model to contain a suitable caption for all tables and diagrams inserted into the document, and then have a "list of tables" and "list of figures" on the contents page.

I've not found an explicit way of inserting the tables into the template, so I've performed a copy&paste from a real RTF document that has them. I've done a similar thing for the "captions" to tables and diagrams/figures.

It seems to work - mostly.  The tables are inserted into the output RTF file, but table numbers are repeated (not unique), and I don't get any entries for the diagrams.

My text for a table caption is:
    Table { SEQ Table \* ARABIC } - table name

and my text for a figure/diagram caption is:
    FIgure { SEQ Figure \* ARABIC } - diagram name


Has anyone got experience in this area?

Cheers, Rob.

9
Hi folks,

I'm using C# to traverse a UML model.  I have a sequence diagram (A) with an interaction occurrence (a reference to another sequence diagram (B)).

When traversing DiagramA, I discover the DiagramObject that references an element whose type is "InteractionOccurrence".

However, I cannot determine what DiagramB is from the information stored in the element.  That is, I don't know how to de-reference the interaction occurrence.

Ultimately, I want to visit all objects on the referenced sequence diagram.

Can anyone give me some advice as to what objects, methods, properties, etc. I should be using to access this diagram?

Cheers, Rob.

Pages: [1]