Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Tehila1 on June 01, 2014, 06:54:02 pm

Title: Modify Package Flags
Post by: Tehila1 on June 01, 2014, 06:54:02 pm
Hello,

I would like to modify the semi-colon separated list of package flags.
Is there a way to do so via API or I must run an update SQL query?

Thanks.
Title: Re: Modify Package Flags
Post by: qwerty on June 01, 2014, 10:09:45 pm
I guess you have to fallback to SQL in that case. IIRC some of those parameters are set as "side effect" but to modify them at your wish there is no other way than SQL.

q.
Title: Re: Modify Package Flags
Post by: Eve on June 02, 2014, 09:05:36 am
The property Flags can be written to via the automation interface so there's no need to use SQL directly.
Title: Re: Modify Package Flags
Post by: qwerty on June 02, 2014, 03:33:02 pm
Simon is right. I have to update the xref in my book.

BTW Simon: can you tell me where the columns s_Generation, s_GUID and s_Lineage (in t_package) come from? I found them in a recent model but could not figure out how they came in there.

q.
Title: Re: Modify Package Flags
Post by: Eve on June 02, 2014, 05:12:22 pm
I believe it's replication, most likely JET. You'll may also find different columns in the master vs the replicas.
Title: Re: Modify Package Flags
Post by: Tehila1 on June 02, 2014, 06:04:25 pm
Quote
The property Flags can be written to via the automation interface so there's no need to use SQL directly.

How can I do it?
Thanks
Title: Re: Modify Package Flags
Post by: qwerty on June 02, 2014, 08:01:35 pm
EaPackage.Flags

See the update of my Inside book.

q.
Title: Re: Modify Package Flags
Post by: Tehila1 on June 10, 2014, 04:49:52 pm
Thanks, it works fine.