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 - David Rains

Pages: [1] 2
General Board / Edit Hyperlink in Element Note
« on: October 17, 2016, 10:56:33 pm »
How can you edit an embedded hyperlink to a selected element (e.g., the element's name has changed and the hyperlink's text is no longer correct?)
BTW: We have been asking about the automatic update of the hyperlinl's text for quite sometime... is this even being considered? Or is there a script workaround?

General Board / View AssociationClass in traceability window
« on: October 22, 2014, 01:17:52 pm »
Anyone know if there is away to see the related elements that are the target of the associationclass?

My example - have an Person => Role, and then a Stakeholder as the association-class linked to the Person/Role association.

It seems like there should be someway to click on "stakeholder" and see that it can be traced to both "role" and "person".



General Board / Simple Boundary - Align text at bottom
« on: September 22, 2011, 09:33:56 am »
I seem to remember the ability to align the label associated with a simple boundary (e.g. with use case diagrams) to the left, center, right, and top and bottom.

Can't seem to find it anymore (recently upgraded to 9.1)



General Board / Anyone working on implementing SBVR in EA?
« on: May 07, 2012, 04:03:00 am »
I am currently working on implementing the OMG Structured Business Vocabulary and Rules model and functionality within EA.

Just wondering if anyone else is pursuing this?  ;D


General Board / Using structured tagged value types in stereotypes
« on: October 07, 2011, 05:13:07 am »
I have defined a strucutred tagged value type using a predefined tagged value type (checklist). I can add it successfully to an existing element, but I can not seem to:

Add it to the definition of a custome stereotype (e.g. Add as a tagged value to the class... I can do that, but once the stereotype is exported as a profile it does not show up (either stereotype's attributes or as a tagged value).

I believe I was previously able to do this with no problem under earlier versions of EA?

Any ideas or similar experience?

General Board / How to indicated ABSTRACT Use Case in 9.0?
« on: August 22, 2011, 01:13:38 am »
I am new to version 9.0 (experienced in 7.5) and can't seem to find how you indicate a Use Case is abstract (there is NOT a 'details' branch as there is under a class - detail: abstract)


Bugs and Issues / Unable to Cut & Paste in Script IDE
« on: October 11, 2014, 01:42:56 am »
Upgraded to latest release - anyone else having C&P issues when editing scripts?

Bugs and Issues / Tagged Values - Resynch not adding missing tag
« on: August 02, 2011, 12:54:02 am »
Running V9 and when I change a stereotype, save it as a profile, then reload the profile and resynch the "new" stereotype it no longer propogates the changes (was at 7.5).

Similar problem if you assign a Enum type before you define it. IF you do that then the drop-down will not be active when you are using the tagged value (previous behavinsor) but you simply correct it by going back to you stereotype force the connection by choosing the created enum from the list, save profile, import, resynch problem solved. This in NO longer the case.

BIG ISSUE for me as I can have hundreds on classes using a stereotype and now have no way to add new tags?!

David Rains

The documentation for the related Select <Item> Dialog indicates that you can select attributes, etc.

And even the InvokeConstructPicker will allow you to filter for attributes, but on clicking OK... alas a 0 is returned.

I need to be able to use the InvokeConstructPicker capability to allow a user to specify a state, operation, or attribute (besides an element).

Any ideas on how I can go about this (I'm doing this in VBscript)

Thanks as always...

Doing some work prototyping a solution to derive connector tagged values based on what element feature (operation or attribute) the connector is linked too... PART of my effort to implement SBV within requirement engineering using EA...

t_connector.StyleEx seems to use LFEP/LSEP prefixes regardless if it is an operation or an attribute.

vbScript function - to extract GUID of LinkedToElementFeature

public function IsConnector_LinkedToFeature( byval styleEx_Value, byval connectorEnd2Check, byref targetFeaturedGUID )
      'Example: Links to Attributes
      ' LFEP={B7306EA4-E8F3-4743-80EE-BDF36534E1AF}L;LFSP={0C85C78D-9173-4cf4-A2C2-85BE7C8FB7B4}R;
      'Note: Prefix LFEP/LFSP are the same regardless of link to feature's attribute or operation
      dim strTargetPrefix, iStartPosOfGUID
      dim blnResult
      blnResult = False
      if len( styleEx_Value ) > 0 then
            select case lcase(connectorEnd2Check)
                  case gcStrTARGET_END
                        strTargetPrefix = "LFEP="
                  case gcStrSOURCE_END
                        strTargetPrefix = "LFSP="
                  case else
                        msgbox "reClassLibrary.IsConnector_LinkedToFeature - Expected value of 'target' or 'source'"
            end select
            'Search for start of Target GUID
            iStartPosOfGUID = instr( styleEx_Value, strTargetPrefix )
            if iStartPosOfGUID > 0 then
                  blnResult = True
                  targetFeaturedGUID  = mid( styleEx_Value, iStartPosOfGUID + len( strTargetPrefix ), gcEA_GUID_LENGTH )
            end if
      end if
      IsConnector_LinkedToFeature= blnResult
end function

ANYONE interesting in SBV & SBVR give me a holler!  :)

strSQL = "SELECT t_object.ea_guid FROM t_object"
set c = Repository.GetElementSet(strSQL,2)
msgbox c.count

running the script that contains this fragment gives the DAO error:
DAO.fields [3265] item not found in this collection

Works fine in the query builder but not in my script?



Working with the Glossary (Term)... I need to understand the CRUD operations for using the glossary.

I understand  Term is the entry object, but is there a collection that represents the entire glossary? I assumed it would work like working with an element collection e.g., element's connectors (collection) the getat etc,

Do I need to do this via SQL?


I seem to be unable to get my include to work... Keep getting errors like
"Expected Statement, Line 1"

Could I see a post of a simple "Hello World" example... e.g., included function returns a simple string value?



Automation Interface, Add-Ins and Tools / EA scripting support classes?
« on: January 20, 2011, 05:55:19 am »
I am in the middle of refactoring a script and started to define some classes to make the code a bit easier to follow...

Having a bit of a problem create one of my classes from within another class?

Example: create C (a connector class) and during the process of assigning the connector's ID (let) it triggers the creation of the supplier (Es) and client (Ec) elements...

I know this might seem overkill but it is to help me prototype a solution for building an add-in later...


This works....
option explicit

sub main()
      if True then
      end if
end sub

This does not - no error, code is not running, just nothing...
option explicit

sub main()
      if True then
      end if
end sub

I see in the examples NOW that this is present, but no mention in my VBScript book or within EA help? Did I just miss something?

I am running Windows 7 (64) and EA 7.5 Build 848

Man HAVE I wasted sometime over this!  :)

Pages: [1] 2