My Profile
Help
Hot Topics
Top Community Contributors
Displaying items by tag: scripting
The challenge with Script Debugging, Microsoft Process Debug Engine within Enterprise Architect.
"VBScript and JScript require the Microsoft Process Debug Manager (PDM.dll) to be installed on the local machine; this is available through various Microsoft products including the free 'Microsoft Script Debugger'"
(refer to: http://sparxsystems.com/enterprise_architect_user_guide/13.0/automation/debug_scripts.html)
The issue is: Microsoft Script Debugger as is - is depricated and here is the list (not complete for sure), where PDM is part of:
* Office 2000-2007
* Visual Studio
* Visual Studio Remote Tools (PDM stays installed even after uninstall of the Remote Tools)
Depending on the used operating system of Microsoft you will find Process Debug Manager (PDM.DLL) in the following folders:
Windows Vista, Windows 7, Windows 8, Windows 8.1 (64bit)
C:\Program Files (x86)\Internet Explorer\pdm.dll
Windows Vista, Windows 7, Windows 8, Windows 8.1 (32bit)
C:\Program Files\Internet Explorer\pdm.dll
Windows 10 _before_ v1607
Windows 10 (64bit)
C:\Windows\SysWow64\F12\pdm.dll
Windows 10 (32bit)
C:\Windows\System32\F12\pdm.dll
This file (pdm.dll) must be registerd manually using regsvr32.
Windows 10 v1607:
in this version manual installation of pdm.dll is not possible anymore. So you have to install a Microsoft Product that contains PDM.dll.
I recommend using the "Remote Tools for Visual Studio 2015 Update 3"
32bit: https://go.microsoft.com/fwlink/?LinkId=615469&clcid=0x407
64bit: https://go.microsoft.com/fwlink/?LinkId=615470&clcid=0x407
After installation you can uninstall them - because PDM.DLL resists and can be used by Enterprise Architect.
Script move/delete items from Search Result
Delete or move elements to package which are found by Searches (SQL, Query Builder, Standard Searches). These vbscripts allow you to easily handle found elements and to develop your own vbscripts to manipulate found things. In effect these scripts use bookmarked or elements copied to clipboard. It's an extension fo Geert Bellekens VBScripting Library.
Abstract:
- Use SQL Searches to move or delete found elements, diagrams or packages copied to Clipboard
- Use Bookmarked elements from e.g. Standard / QueryBuilder Searches to move or delete elements
- Handle bookmarked or result of SQL searches with your individual script
These scripts are using Geert Bellekens Script Framework (powerful!, Open Source)
- See also there for updates, folder ho
Standard Search / Bookmark:
- Set bookmarks
- e.g. by Standard Search
- If move: Select target package in ProjectBrowser
- Run Script:
- hoModelSearch, DeleteBookmarkedItems or
- hoProjectBrowser, MoveBookmarkedToSelectedPackage
Standard Search / Clipboard:
- Run SQL Search
- each row shall contain GUID of the items to handle
- Copy wanted rows to clipboard (eg: CTRL+A, CTRL+C)
- If move: Select target package in ProjectBrowser
- Run Script:
- hoModelSearch, DeleteClipmarkedItems or
- hoProjectBrowser, MoveClipmarkedToSelectedPackage
In Action: Delete item found by SQL Search or Query Builder Search
- Run SQL Search with element GUID as result / Run Query Builder Search
- Copy to Clipboard (SQL Search / Bookmark (Query Builder Search)
- Run Delete ClipboardedItems / Delete BookmarkedItems
Move items found by SQL Search to package
- Copy found elements to Clipboard
- Select Package, Right Click, Scripts,...
Move bookmarked items
(bookmarked in eg. Diagram or found by Standard Search / Query Builder Search) to selected package)
- Run Standard Search or Query Builder Search
- Bookmark wanted elements
- Select Package, Right Click, Scripts,...
- It works
Install
- Project DataManagement, Import ReferenceData, Select File (Script.xml)
- Select 'Automation Scripts'
- Import
- See the scripts for details:
- ho (reusable groups to extend functionality according to your needs)
- hoModelSearch Group of type ModelSearch
- DeleteBookmarkedItems
- DeleteClipboardedItems
- hoProjectBrowser Group of type ProjectBrowser
- DeleteBookmarkedItems
- DeleteClipboardedItems
Bookmarks (see also EA help):
- Search Window: Query Builder Results, Right Click, Bookmark Element,
- Diagram: Select elements, Shift + Space
- Diagram: Select elements, Edit, Bookmark selected,