Accessing shape properties on wireframe diagrams

Hi,

I am trying to access the IShapeUIModel properties of a IDiagramElement within a wireframe diagram specifically, trying to determine the border colour to an element.

On other diagram types such as on an ArchiMate or Business Process Diagram, you can iterate over the diagram elements and assign the IDiagramElement to a IShapeUIModel. From there I can access various methods such as getLineModel().getColor()

How can this be achieved for wireframe elements?

I am using version 16.1 in VP

Sorry, it is not supported in OpenAPI.

more details
In Wireframe diagram,
1 IWireframeDiagramUIModel contains 1 IWFDState (root state),
1 IWFDState contains N IWFDState (sub states),
1 IWFDState contains N IWireframeStateElementUIModel (diagram elements)

the border should be get/set from the IWireframeStateElementUIModel, however, it is not supported now.

We will support it in the future. (But may not be able in 16.1, sorry)

FYI, sample code for getting states & shapes from diagram:

			IWireframeDiagramUIModel lDiagram = (IWireframeDiagramUIModel) ApplicationManager.instance().getDiagramManager().getActiveDiagram();
			
			IWFDState lRootState = lDiagram.getRootState();
			{
				IDiagramElement[] lDiagramElements = lDiagram.getDiagramElements(lRootState);
				if (lDiagramElements != null) {
					for (IDiagramElement lDiagramElement : lDiagramElements) {
						IWireframeStateElementUIModel lShape = (IWireframeStateElementUIModel) lDiagramElement;
					}
				}
			}
			
			for (IWFDState lSubState : lRootState.toWFDStateArray()) { // 'sub states'
				IDiagramElement[] lDiagramElements = lDiagram.getDiagramElements(lSubState);
				if (lDiagramElements != null) {
					for (IDiagramElement lDiagramElement : lDiagramElements) {
						IWireframeStateElementUIModel lShape = (IWireframeStateElementUIModel) lDiagramElement;
					}
				}
				
				// lSubState.toWFDStateArray() // 'sub states...'
			}
1 Like