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 - Simon M

Pages: 1 ... 389 390 [391] 392 393 ... 429
5851
Automation Interface, Add-Ins and Tools / Re: object types
« on: February 26, 2010, 10:09:24 am »
GetElementByID will always return an otElement.
GetPackageByID will always return otPackage.

Functions that get current context or similar things can return one of the different types.

5852
Project.RunReport.

5853
Automation Interface, Add-Ins and Tools / Re: Project Class Diagram
« on: February 15, 2010, 08:47:57 am »
You're not missing an EA feature.  It does not create a single diagram for an entire application.  In any real world example this will be too large to benefit anyone.

Instead I would recommend making use of your knowledge of the product, and some of EA's features to make more useful diagrams.

For example:

The hierarchy view shows you multiple levels of relationships for the currently selected class. The relationships window shows more information about each of the direct relationships to the current class, and also allows you to drop the objects onto the diagram. Finally, the Insert Related command (in the context menu of an object on a diagram) allows you to insert many related objects all at once.

So, with appropriate use of known significant objects you should be able to achieve some more useful diagrams.

5854
Look for parentedge in the help file.  It doesn't say what the possible values are, but you can work it out fairly quickly by printing it and then moving a port around.

5855
I think you need to look in MiscData(0).

Edit: Thank you to KP for the correction the MiscData is zero based.

5856
Well, the files themselves may be old.  They would only be updated when something new is added to the automation interface.

5857
The build number is available from Repository.LibraryVersion.

5858
The version 8.0 version of the API changes this behavior.  If you can't or don't want to upgrade you can add a check that parentid is zero.

5859
Automation Interface, Add-Ins and Tools / Re: Limits on MDG Technologies?
« on: February 08, 2010, 08:29:56 am »
The help file has this to say about it.

Quote
You can make an MDG Technology the default interface to Enterprise Architect. Depending on the MDG Technology selected, this can change the way Enterprise Architect windows are displayed and override the Enterprise Architect UML Toolbox pages with pages specific to that Technology.

5860
Automation Interface, Add-Ins and Tools / Re: Limits on MDG Technologies?
« on: February 05, 2010, 08:50:40 am »
I'm not aware of any limitations.  I am currently running with 36 enabled technologies providing a mix of code engineering, profiles, patterns, searches and rtf report templates.

(With the terminology on the MDG technologies dialog only 1 can be active at a time, but as many as you like can be enabled.)

5861
Automation Interface, Add-Ins and Tools / Re: string conversion
« on: February 01, 2010, 03:13:44 pm »
If you always want to remove the first 3 characters then use MID.

5862
Currently you can't print compartments (custom or otherwise) from a shape script.

5863
Use fixedAspectRatio=true in a profile that specifies the size your stereotype items get created and you can enforce a square.

If you use addsubshape, then you can additionally use scalable=false to force a fixed size (as specified by preferredHeight and preferredWidth)

5864
It's coming directly from COM, so I don't know precisely.

But I have seen it in the past when doing an invalid cast.

5865
Yes, I apologize.

Pages: 1 ... 389 390 [391] 392 393 ... 429