cancel
Showing results for 
Search instead for 
Did you mean: 

Object List for selected objects on diagram

Former Member
0 Kudos

I would like to select several objects on a diagram, and then edit just those objects in an Object List.

I cannot find how to do this anywhere in the help.

Accepted Solutions (0)

Answers (3)

Answers (3)

GeorgeMcGeachie
Active Contributor
0 Kudos

Here's the nearest I've been able to get with a script. This script will display a list of the currently selected LDM entities for you to choose from, when you click on OK or cancel it will open the property sheet for the selected entities

Dim selection1 ' as ObjectSelection
Dim ent ' Create a new selection
set selection1 = ActiveModel.CreateSelection
selection1.AddActiveSelectionObjects() ' add all objects currently selected on diagram

Selection1.RemoveObjects PdLDM.Cls_Relationship,True ' remove Relationships from the selection
Selection1.RemoveObjects PdLDM.Cls_Inheritance,True ' remove Inheritances from the selection
Selection1.RemoveObjects PdLDM.Cls_InheritanceLink,True ' remove Inheritance Links from the selection
Selection1.RemoveObjects PdCommon.cls_ExtendedDependency,True ' remove Traceability Links from the selection

Selection1.ShowObjMultiSelection Selection1, "Objects"

for each ent in selection1.Objects
if ent.Classname = "Entity" then
ent.ShowPropertySheet()
end if
next ' ent

Former Member
0 Kudos

I think I've run into this before and had to make due. If you put each diagram(and it's entities) in a separate package, I think you could use a filter on the Package owner.

The List Report looks like it should allow you to do what you want, but I have not figured out how.. yet.

GeorgeMcGeachie
Active Contributor
0 Kudos

You could use dependency matrices. For example:

Rows = Entities

Columns = Logical Diagrams

Dependency = Diagrams

Use the toolbar to limit the columns to one or more selected diagrams, and to filter the row so you only display entities that are on the selected diagram(s)

Former Member
0 Kudos

That will be useful, but my question was a bit ambiguous. What I meant was that suppose I have a diagram with a number of entities on it. I then select 4 of them, and I then want these to appear in an Object List so that I can edit all of their properties at once, such as their stereotype, data type, etc.