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

Pages: [1]
1
General Board / Re: Set tagged value with level number?
« on: April 01, 2010, 04:39:40 am »
Thank you very much this has been very helpful! I'm trying to work with the Script Editor right now to see what the possibilities are... Hopefully the event hooks will be available in that environment as it is a little easier to work with than the Add-In interface AFAIK. I haven't had much luck getting the example Add-Ins to show up in the Add-Ins menu, though I am using VS2008 and not VS2003 like the examples and there are some tricky differences that I've noticed so far.

Anyway, thanks again!

2
General Board / Re: Set tagged value with level number?
« on: April 01, 2010, 01:01:15 am »
Are you referring to using the Automation Interface via an Add-In or Scripter?

3
General Board / Set tagged value with level number?
« on: March 31, 2010, 09:16:20 am »
I'm working with some requirements in the SysML toolbox, and would like to know if there is any way to set the id tag with a calculated value. Alternatively, is there any way to generate a requirement number (if this is not recommended, please tell me - new to UML) based on the level number? I was thinking of using a combination of the package's alias which I set to an abbreviation, then concatenating this with the level number to generate a number for the requirement. I can do this in the RTF generator, but we would like to be able to see this in the diagram. Right now I'm hand-typing it in the id tag field, but this is obviously cumbersome.

Any recommendations?

PS I'm not using an automated interface - should I? Do I need to?

THANKS!

4
Just guessing here, but wouldn't you need to create an add-in to get an ActiveX object?

5
I'm using JScript. I've tried a few approaches as noted in the first post to set the DateRun value, but I get error messages from the system.

Is there any way to clear the checkbox as well? These tests have not been run, so a null value is fine, but when I create a new test with the script, they are defaulting to that 1899 date. I'd just like for them to appear the same way they do when you create a test in the UI. I presume the underlying value of a newly created test is the 1899 date, as that's what is displayed when I print out the value from the script, but it does show up in the UI with today's date in gray and an unchecked box.

Thank you

6
I originally setup all my tests as UML <<testcase>>, now I need to change them to SysML <<testCase>>. That's going swimmingly; however for one small hitch. The DateRun attribute of the test is not copying from the original test. First, I should say I'm a little peeved with the inconsistency of script attributes and UI names. Why can't this be called Last Run in both? or Date Run?

At this stage, I don't have real data in the LastRun field. In the UI, the UML test shows Last Run as unchecked and has today's date grayed out. If I print out the DateRun attribute of the UML test from the script, it shows a hardcoded date of Sat Dec 30 00:00:00 CST 1899. If I copy it over to the SysML <<testCase>>, it shows in the UI with the 1899 date and is checked.

I'd be satisfied to have it show today's date, or nothing, or anything but the 1899 date. I'd also like it to be unchecked. The following attempts did not work:

var d = new Date();
newTest.DateRun = d;

newTest.DateRun = new Date();

newTest.DateRun = null;

newTest.DateRun = d.<anything>;


elTest = testEnum.item();
newTest.DateRun = elTest.DateRun; <--- gets the 1899 date

Any suggestions?


7
Automation Interface, Add-Ins and Tools / Invoke script with Add-In
« on: April 06, 2010, 03:15:46 am »
A couple of questions:

- Is there a way to invoke a script from an Add-In method? My intention is to observe the project for hierarchy changes and update a tagged value field using a script that I have setup already.

- Which is the correct event to respond to? It's not crystal clear to me which action fires the events OnContextItemChanged and OnNotifyContextItemModified. I'm mostly interested in a change in a package's alias property and a change in the hierarchy of sub-elements in the hierarchy.

Thanks for any and all

8
I just found the answer to my own problem. For others, you must right-click inside the template to open the context menu, then select File-> Document Options. Then you can identify the objects you want to exclude any time you use that document. Makes sense; it was just a buried setting.

9
I am new to EA as well and am experiencing the same issue. Basically I have a diagram of classes that describe dependencies (satisfy) and when I generate the document I can select through the options tab to ignore any type of connection that is not this type (for example, I ignore composition and aggregation connections). However, when I include this template in the master document, option settings are ignored.

Is there any way to

Pages: [1]