access to sub types of shapes

Started by DJozef87, September 19, 2011, 02:00:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DJozef87

Hello,

my question is simple, sometimes in visio elements we have sub types (agent: agent or human agent...) and we modified this type in the context menu. What is the property that contains these sub-types in the code, because the return of shape.Name is the Global type

Paul Herber

Depends on how the shape was created, is it a standard Visio shape? If so then what shape from which stencil?
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

DJozef87

Let's take the example of the Relationship link of Object Relational stencil... in the contextuel menu we can put it as Relational Notation or IDEF1X Notation...

Paul Herber

For that particular shape you need to look through the shape's Actions section, here there are 4 rows, in each row look at the value of the Checked cell, if and when you find the one set to 1 look at the equivalent menu cell and see what the setting is.
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

DJozef87

I understand your reasoning. but from a given shape how can I access to the Action section to access the rows

Paul Herber

Use the shape's CellSRC method, the appropriate section is visSectionAction.
Google wll show you many examples.
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

DJozef87