1
Automation Interface, Add-Ins and Tools / Set selected methods to inline
« on: March 15, 2013, 08:56:42 pm »
In EA 9.3.932 I wrote the following VB-Scirpt
2. I did not find an atttribute for inline. How can I change the inline property?
Can anyone help?
Code: [Select]
sub OnProjectBrowserScript()
' Get the type of element selected in the Project Browser
dim selectedArray as EA.Collection
selectedArray= Repository.GetTreeSelectedElements
dim selectedItem
For each selectedItem in selectedArray
dim treeSelectedType
treeSelectedType = Repository.GetTreeSelectedItem (selectedItem)
If selectedItem.Type = otMethod then
dim method as EA.Method
method = selectedItem
end if
Next
End Sub
1. Unfortunately an error says, that the argument is not optional. The error refers to the lineCode: [Select]
selectedArray= Repository.GetTreeSelectedElements
I did not found a description for arguments of that method.2. I did not find an atttribute for inline. How can I change the inline property?
Can anyone help?