Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: sargasso on November 17, 2004, 05:57:52 pm

Title: Element status setting???
Post by: sargasso on November 17, 2004, 05:57:52 pm
What am I doing wrong - after excecution the element is entered, the name,notes and type etc is correct but the status is set to Proposed?

Function addreq(desc As String, dets As String) As String
   Dim rr As Object
   Set rr = reqtspkg.Elements.AddNew(desc,  "Requirement")
   rr.Notes = dets
   rr.Status = "Approved"
   rr.Type = "Functional"
   rr.Update
   reqtspkg.Elements.Refresh
   addreq = rr.ElementGUID
End Function

tia
Bruce
Title: Re: Element status setting???
Post by: thomaskilian on November 18, 2004, 03:03:45 am
Actually nothing one could easily recognize. I tried it here (using PERL) and it work "as designed".  Maybe the problem is somewhere else?