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 - OpenIT Solutions

Pages: 1 ... 3 4 [5] 6 7
61
Uml Process / Dependancy between requirement and attributes
« on: November 19, 2011, 12:49:46 am »
Hi,

Is there am easy way in UML to show a dependancy between one or more attributes of a class and say a requirement/use case ? I know i can use the "Link to Element Feature" capability, can you recommended any other approaches?

Regards,

Jon.

62
Automation Interface, Add-Ins and Tools / TaggedValueTypes
« on: August 15, 2015, 12:27:23 am »
Hi,

In my MDG I have a section :-

<TaggedValueTypes>
   <TaggedValueType property="roleRef" description="" notes="Type=RefGUID;Stereotypes=Role;BaseStereotype=SOP;"/>
</TaggedValueTypes>

within the profile. This was added manually into the XML. However I'm now creating the profile "correctly" via Sparx profile helper...How to I model a TaggedValueType within Sparx via a Sparx profile helper...ie what do I add to my profile diagram/package in Sparx ??

63
Hi,

Is there a method to get the node path (dotted path) of an element via the Automation Interface ?

64
Appears that i can only have one label per shapescript. Is this true?

I want to display some text bottom left corner and top right corner of my element. I've tried defining two label blocks - second seems to be ignored.

Any way around this ? Should it be possible ?

65
Automation Interface, Add-Ins and Tools / h_align of a label
« on: February 19, 2015, 01:44:24 am »
Hi,

How can I align the text of a label to the left ?

shape label
{
setOrigin ("NE", 0,0);
h_align="LEFT";
println ("Some text");
}

h_align within a label block doesn't work. The issue I have is that I've already set h_align to center when I displayed the elements name.

Also it appears that i can only have one label per shapescript. Is this true. I want to display some text bottom left corner and top right corner of my element. I've tried two label blocks - first is ignored. I've tried setting the origin to SW, printing then setting it to NE and printing - all text is printed at NE (last call to setOrigin)...

Regards,

Jon.

66
Hi,

Is it possible to schedule a script to run in Sparx. I want run a script on a nightly basis to QA specific diagrams. I have the VB script written (in Sparx). Just need it to run each night.

Alternatively is it possible to start Sparx with a command line that runs a script automatically. I can then schedule this in Windows...

67
Automation Interface, Add-Ins and Tools / AddIn on shapescript...
« on: December 12, 2014, 08:39:09 pm »
Hi,

I'm trying to invoke an Addin from my shapescript. I've followed Geerts excellent example. I believe my add-in is registered ok. It should just return a test String - "Test". But I get nothing. I'm not sure if the code in my shapescript is correct, can someone validate:

println ("#ADDIN:RelationshipAddIn, GetRelationships, Application#");

Here

- RelationshipAddIn is the name of my "Class", should it be the name of the assembly/project ? Which would be dbSparxRelationshipAddIn

- GetRelationships is the Public method in my Add In. It has this signature:

public String GetRelationships(EA.Repository repo, String guid, String[] args)
{
  return "Test";
}

Any thoughts, suggestions appreciated.

Regards,


Jon.



68
Automation Interface, Add-Ins and Tools / Repository.Execute in VBA
« on: December 05, 2014, 02:21:42 am »
Hi,

I've used Repository.Execute in C# without issue; I need to use it in a VBA code within an Excel sheet - i'm getting an 'object doesn't support this property or method' error. Is this a limitation of VBA - want recognize/allow the use of hidden methods ? Anyone come across this ?

Regards,

Jon.

69
Automation Interface, Add-Ins and Tools / CreateObject in vbscript
« on: November 06, 2014, 10:26:58 pm »
Hi,

Is there a limitation on the use of CreateObject in a vbscript within Sparx to create an active x component ?

I'm using:

    Set objIE = CreateObject("InternetExplorer.Application")

And get the error active x component can't be created ??


Regards,

Jon.

70
Automation Interface, Add-Ins and Tools / Element.CompositeDiagram
« on: October 31, 2014, 04:28:54 am »
Hi,

Since v10 we can use the Element -> New Diagram -> Select Composite Diagram menu option to select a composite from anywhere in the model.

However the API Element.CompositeDiagram only looks to set the first "child" diagram it finds as the composite - assuming that one is not already set.

I need to way via the automation interface to make a specific diagram the composite diagram (not always the first child found)....anyone know how to do this ??


Regards,

Jon.

71
Automation Interface, Add-Ins and Tools / Setting the "Context"
« on: October 29, 2014, 04:34:19 am »
Hi,

I looking for a way that my users can set a "context" that can be used when they are modeling to automatically set the default value of a specific tagged value - depending on the context that has been set by the user.

If the user were to set their context to "As-Is" the default of the tagged value status (which I define in an mdg) would change to As-Is. My MDG defined a bunch of connectors that have this status tagged value.

If the user sets there context to target the tagged value status default value is set to "target".

This way I can tell if relationships that are added to my model are part of my current or target state - that's the plan anyway.

The only solution I can think of is to create two different mdg files - one for current state modeling and another for target - which have the default for the status tag set to As-Is or Target respectively.

My users then use settings mdg technology so select the appropriate technology - ie set their "context" this way...

Seems a bit messy to me - can anyone think of a better solution ?

72
Hi,

Anyone know way to apply diagram filters via the automation interface ? I want to apply a filter prior to html generation ?

Regards,

Jon.

73
Automation Interface, Add-Ins and Tools / Is a user in a group
« on: August 11, 2014, 08:50:54 pm »
Hi,

Is there a way via the automation interface to check is a user is in a specific group ?

Regards,

Jon.


74
Automation Interface, Add-Ins and Tools / Bug with fragment in v10
« on: July 25, 2014, 06:46:17 pm »
Hi,

I've reported a bug with fragments in v10. To reproduce add a fragment that doesn't return any rows for the element your reporting on. First time you generate the report - Sparx will add the content of the System template (model document:master template) into your document. Run the same report again and it will not be included.

Anyone any idea where the content of (model document:master template) is stored ? In a table ? In a config file ? In the registry ? Or deep in the cuts of Sparx (so I can't edit it in any way) ?

Regards,

Jon.


75
Automation Interface, Add-Ins and Tools / Tagged Values
« on: July 11, 2014, 09:05:17 pm »
Hi,

Is it possible to specify that a given tagged value MUST have a value ? In my specific case as default will not suffice.

Also is it possible to specify that if a given tagged value is given a value then one or more other tag values must also be given a value ?

Regards,

Jon.

Pages: 1 ... 3 4 [5] 6 7