Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: sandeep bhat on June 18, 2014, 11:17:03 pm

Title: To check if a Package is a view or not
Post by: sandeep bhat on June 18, 2014, 11:17:03 pm
Hi,
I have a project which starts at Model, under that i have a view and under that view i have many packages. Is there any way i get to know by some property if its a view or a package? i tried debugging it all i see is in a view, the property Flags has some value isModel=1;VICON=4 and for the other packages the Flags property is empty.
Title: Re: To check if a Package is a view or not
Post by: qwerty on June 19, 2014, 12:34:43 am
The VICON tells you that it's a view and which kind. It's a simple enumeration. It's also documented in my Inside book.

q.
Title: Re: To check if a Package is a view or not
Post by: Eve on June 19, 2014, 09:08:36 am
I would either be looking for the isModel=1. Either that or if it's parent doesn't have a parent.
Title: Re: To check if a Package is a view or not
Post by: sandeep bhat on June 19, 2014, 02:41:37 pm
Thanks a lot Qwerty and Simon. Appreciate it!