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

Pages: [1]
1
General Board / Don't want elements to be embedded in diagrams
« on: October 16, 2014, 04:47:25 am »
Hello,

I constructing a diagram and I'm nesting or embeding multiple elements.
When draging an object outside of another one, the element hierarchy is changed on the project browser but when dragging it inside (embed) it doesn't affect the hierarchy int he product browser.

The option "Support for composite objects" in Tools | Options | Objects is not selected.

It there a way to change the configuration so that when dragging inside and outside the hierarchy in the project browser is not affected?

Many thanks.

Dália

PS - I found the description below in the the file.
"When you embed a child element on its parent, the child element becomes part of the parent element hierarchy in the Project Browser. Similarly, if you drag the child element out of the parent, the child element becomes independent and is no longer embedded in the parent element hierarchy."

2
General Board / Formatting based on tag values
« on: October 17, 2013, 11:52:53 pm »
Hi,

I've created a bunch of tagged values.
Is there a way to define a default background/fill color for the object in the diagrams based on the value of the tagged value field? If a system software object for tagged value field "A" has the value "xpto" the background color is blue and if it has the value "abc" has the color green.

Thanks.

3
In the mean time I changed the function to the one below an it is working not being sure why did it start to work.

function AddParameter (objparent, nome, direction)

      set parm = nothing

      if not (objparent is nothing) then
            set parm = objparent.Elements.AddNew(nome, "ActivityParameter")
            parm.update()

            for each c in parm.customproperties
                  if strcomp(c.name, "direction")=0 then
                              c.value = direction
                  end if
            next
            if not(parm.update()) then
                        session.output "error"
            end if
      end if
      
      set AddParameter = parm
      
end function

4
Automation Interface, Add-Ins and Tools / Custom properties - Update Value
« on: February 20, 2014, 11:46:46 pm »
Hi all,

I've been trying to add parameters to an InfrastructureService.
To do that I've implemented the following function to create the activityParameter and to update the direction property value. direction is an input parameter to this function and can have the values in/out/inout.

function AddParameter (objparent, nome, direction)

      set parm = nothing

      if objparent is nothing then
            set parm = objparent.Elements.AddNew(nome, "ActivityParameter")
            parm.update()

            for each c in parm.customproperties
                  if strcomp(c.name, "direction")=0 then
                              c.value = direction
                  end if
            next
            parm.update()
      end if
      
      set AddParameter = parm
      
end function


What I state calling this function is that the direction parameter always assumes the last set value independently of the ActivityParameter being created/manipulate. For instance, after executing the following code

      set theParameter = AddParameter (root, "teste1", "in")
      set theParameter = AddParameter (root, "teste2", "out")
      set theParameter = AddParameter (root, "teste3", "inout")
      set theParameter = AddParameter (root, "teste4", "inout")

teste1, teste2, teste3 and teste4 all have the "inout" value in the direction parameter.

I've tested this in version 10 and 11.

Can you please help?




5
Automation Interface, Add-Ins and Tools / Re: Import Relationships
« on: September 24, 2013, 12:43:20 am »
Thanks for the tip. I've installed the trial version and although it mentions relationships alot it doesn't seam to be able to import them.  :(

6
Automation Interface, Add-Ins and Tools / Import Relationships
« on: September 20, 2013, 09:52:45 pm »
I have a lot of relationships information to upload to EA.It it possible to define the relationships, for instance, on Excel and import them to EA package?

Pages: [1]