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

Pages: 1 ... 5 6 [7] 8 9 ... 42
91
General Board / Re: IS there a guide to recommended security groups
« on: November 23, 2017, 08:22:10 pm »
Hi Tony,

Note that a description on each permission is available from Sparx Help: http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/team_support/permissionlist.html

I used this list to help the teams decide the permissions allocation for each group (http://www.umlchannel.com/en/enterprise-architect/item/197-sparx-enterprise-architect-permissions-id-and-name-mapping-for-your-scripts-and-add-ins), before providing some Excel extraction (and update now actually to maintain consistency amongst all EA projects).


92
Bugs and Issues / Re: attribute order messed up
« on: November 23, 2017, 06:05:02 pm »
Funny I am just working now on the attributes order for a custom script.

To complete Geert's finding, I changed the attributes order via a script e.g. to update t_attribute.pos values to 1,2,3,4...
Opening the class attributes via the GUI and running a right click > Restore sort order doesn't do anything where it should change them to 0,1,2,3 with the default order (which can be found with the creation order stored in the attribute ID).


93
Hi Geert,

I seem to have found a working solution yesterday by copying the content from the file generated via the following command line:
Heat.exe file "c:\<addin path>\addin.tlb" -out addinWix.dll.wxs

So far it works but the solution you mentioned looks much more appropriate. I will try it out.

When I get some time, I will try to write something about it.

Thanks!

94
Hi,

Making progress, I managed getting the addin to be installed on a local folder (appdata, local) and some of the registry values set.
Testing it on a blank PC, I found out that the DLL is not registered i.e. the result from the regasm /codebase is missing.

I wrongly thought that I had fixed it on my main PC since the addin DLL is registered by compiling new versions.

I started looking at running WiX Heat tool on tlb files (see hints on https://corengen.wordpress.com/2009/12/24/wix-registering-a-net-com-interop-assembly/).





95
Bugs and Issues / Re: To rectangle or not to rectangle?
« on: November 21, 2017, 02:41:14 am »
Hi,

I was looking for thread matching a bug I'm experiencing with SysML and it could match this one.
The issue is quite easy to reproduce :
- create a SysML requirement diagram
- create a few requirements
- create a new diagram (sysml ou uml) + drag drop the existing requirements.
Result: the reqs are displayed with a rectangle notation. I even get an odd side behaviour with a Requirement label appearing underneath...

Experienced with build 1351.



96
Hi Uffe,

Thanks for your reply. Please note that I have a working Wix installer and I'm looking at a way to publish a portable version as a number of EA users don't have admin rights on their PC (e.g. especially in large/industrial companies).

Guillaume

97
Hi,

I started working on a wix setup project version to release a portable edition of my addin.
I read Adrian's link (https://exploringea.com/2016/05/26/non-admin-installation-of-addins/) however I'm still getting errors (current is ICE57).

I'd like to install the DDL in a user folder such as AppData, and update the registry in the HKCU.

Below is an extract from my wxs files.

Code: [Select]
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="LocalAppFolder" Name="AppData">
        <Directory Id="eaUtilsFolder" Name="eaUtils" />
      </Directory>
    </Directory>
  <DirectoryRef Id="eaUtilsFolder">
      <Component Id="eaUtilsFiles" Guid="xxxxxxxx">
        <CreateFolder/>
        <RemoveFolder Id="RemoveeaUtilsFolder" Directory="eaUtilsFolder" On="uninstall" />
      + other published files...       
        <RegistryKey Root="HKCU" Key="Software\eaUtils\eautils" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
          <RegistryValue Type="string" Value="eautils.Main" />
        </RegistryKey>
      </Component>
    </DirectoryRef>

Any comment or suggestion is welcomed!

thanks

98
General Board / Re: menu maps for 13.5 ribbon detail
« on: October 26, 2017, 05:30:40 pm »
Hi,

I agree that it would be useful to know the ribbon/command location when you use the Find Command (feature request).
You may find the following menu mapping details from EA12.1 to 13 useful: http://www.umlchannel.com/en/enterprise-architect/item/232-mapping-between-enterprise-architect-12-1-menus-and-enterprise-architect-13-ribbons

Regards

99
Hi,

I like EA 13.5 new "navigation cells" to open a diagram as an alternative to hyperlinks.
Copying the diagram to the clipboard to use e.g. in Powerpoint has a glitch since the embedded images are rendered with a black background.


100
Automation Interface, Add-Ins and Tools / Re: Scripts submenus
« on: October 11, 2017, 05:30:45 am »
Hi Uffe,

Thank you for the tip. However the reason why we use scripts on this project is to overcome addins installation issues on each user's PC. Scripts are easy to maintain and update via the centralised project.
Hopefully this feature request can be taken into account at some point (for xmas...)


101
Automation Interface, Add-Ins and Tools / Re: Scripts submenus
« on: October 10, 2017, 05:41:08 pm »
Hi Aaron,

I submitted it as a feature request. Do you see this as a possible/feasible feature to have in EA?

Thanks

102
Automation Interface, Add-Ins and Tools / Scripts submenus
« on: October 10, 2017, 12:54:54 am »
Hi,

We use a number of package and diagram scripts for a project which we prefixed by type.
A right click on a package or diagram displays a big list which I'd like to reduce with an additional level

Is this supported in EA?

e.g.
Current list:
Type1_Script1
Type1_Script2
Type1_Script3
Type1_Script4
Type2_Script5
Type2_Script6
Type2_Script7
Type2_Script8
...

Needed list:
Type 1
Type 2

Select Type 1:
Script1
Script2
Script3
Script4


103
Great, thanks for the info.

104
General Board / Settings location for the enabled MDGs and custom toolbar
« on: September 14, 2017, 12:29:31 am »
Hi,

I'm trying to identify when EA stores local custom data so a team can deploy a fully custom EA configuration throughout the team.
Perspectives and EA 13 ribbons are located in Sparx appdata folder.

I know some details are also located in the registry, however I'm trying to find the following:
- list of enabled/disabled MDG Technologies updated via CONFIGURE > Technology > Manage
- custom toolbars with added commands via START > Workspace > Preferences > Customize > Commands.

Thanks

105
General Board / Re: Adding a set of attributes to a large number of elements
« on: September 06, 2017, 06:18:59 pm »
Here is a suggested script to create the same attributes on the classes within the selected package. It can be improved to loop through the subpackages, only update classes with a given criteria such as a tagged value, etc.

Code: [Select]
option explicit
!INC Local Scripts.EAConstants-VBScript   
'
' Script Name: Populate attributes (package script)
' Author: Guillaume[at]umlchannel.com
' Purpose: Create the same set of attributes on each class within the selected package
' Date: 6/09/2017

sub OnProjectBrowserScript()
' Get the type of element selected in the Project Browser
dim treeSelectedType
treeSelectedType = Repository.GetTreeSelectedItemType()
select case treeSelectedType'
case otPackage
dim thePackage as EA.Package
set thePackage = Repository.GetTreeSelectedObject()
dim allObjects as EA.Collection
dim currentElement
set allObjects = thePackage.Elements
dim i
for i = 0 to allObjects.Count - 1
set currentElement = allObjects.GetAt( i )
if currentElement.Type = "Class" then
addAttribute currentElement, "attr1"
addAttribute currentElement, "attr2"
addAttribute currentElement, "attr3"
end if
next
case else
' Error message
Session.Prompt "This script does not support items of this type.", promptOK
end select
end sub

sub addAttribute(ClassToProcess, attributeName)
dim attributes as EA.Collection
set attributes = ClassToProcess.Attributes
dim newAttribute as EA.Attribute
set newAttribute = attributes.AddNew( attributeName, "" )
newAttribute.Update()
attributes.Refresh()
end sub

OnProjectBrowserScript

Hope it helps.

Pages: 1 ... 5 6 [7] 8 9 ... 42