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

Pages: [1]
1
Bugs and Issues / Bug? EA 7.1 GetFormatFromField
« on: March 01, 2008, 02:15:37 am »
I've raised a question in the adin forum regarding the GetFormatFromFrield method available in V7.1 Beta 2, and thought it might be a bug. So I re-raise this issure in this forum.

The original thread's link is : http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1204289930.

Sorry if this is a double post. Thank you.

Tim

2
Hi guys we have a problem converting EA's element notes into plain text format (don't have tags).

For example, if element.Notes returns:

<ol>
<li>Line1</li>
<li>Line2</li>
</ol>



Repository.GetFormatFromField("TXT", element.Notes) returns:

<br/>
<ol>
<li>Line1</li>
<li>Line2</li>
</ol>

It doesn't look very different from the original element.Notes. :(



and Repository.GetFormatFromField("RTF", element.Notes) returns:

<br/>
<ol>
<li>Line1</li>
<li>Line2</li>
</ol>

The outcome is identical to "TXT", confused....



what's interesting is that Repository.GetFormatFromField("HTML", element.Notes) returns something like:

Quote
{\rtf1\ansi\deflang2057\ftnbj\uc1\deff1
{\fonttbl{\f0 \froman \fcharset0 Times New Roman;}{\f1 \fswiss \fcharset0 Arial;}{\f2 \fnil \fcharset0 Century Gothic;}{\f3 \fmodern \fcharset0 Courier New;}{\f4 \froman \fcharset2 Symbol;}{\f5 \fnil \fcharset2 Wingdings;}}
...........

I saved this output into a txt file and rename the file extension to be ".rtf" and it proved that this is RTF output, instead of HTML.



Do I miss anything here? Or this isn't the proper way to call GetFormatFromField method? Or is it a bug for 7.1 beta 2? Please advice.

Thanks in advance.

Tim

EA's repository reference http://www.sparxsystems.com/EAUserGuide71/index.html?repository3.htm

3
Automation Interface, Add-Ins and Tools / Requirement's StereotypeEx
« on: November 13, 2007, 08:13:01 am »
Hi guys, I am working on the next release build of Time Architect (the new Add-In for EA, see http://www.timearchitect.net). I am trying to access Stereotype from a Requirement element. Now I've got an interesting situation:

For example, if I drag a Requirement from Toolbox-Extended-Requirements to the diagram, assign a Type, say "Display" to it. From automation, the Stereotype property returns "Display", and the StereotypeEx property returns "Display" too, as expected.

However, if I drag a Requirement from Toolbox-Extended-Custom to the diagram, after assigninng "Display" to its Type, from automation, the Stereotype property still returns "Functional", and the StereotypeEx property returns "Display,Functional". ??? ???

Can anybody tell me why this is? Does this imply that the Requirement dragged from Custom section is different from the Requirement dragged from Requirements section? ( Well their icons look the same.... :P)


Another question is, what is the difference between an element's Stereotype and StereotypeEx?


Thank you in advance. Your help is much appreciated.
Tim

Pages: [1]