ObjType Cell (Miscellaneous Section) [Visio 2003 SDK Documentation]

Determines whether objects are placeable or routable in diagrams when laying out shapes using the Lay Out Shapes command.

Value Description Automation constant


Default. The application decides based on the drawing context.



Shape is placeable.



Shape is routable. Must be a one-dimensional (1-D) shape.



Shape is not placeable, not routable.



Group contains placeable/routable shapes.



By default, the ObjType cell is set to No Formula for a shape, which evaluates to 0, meaning that the application determines whether the shape can be placeable depending on its context. For example, if you draw a simple rectangle, the value of its ObjType cell is 0. If you then use the Connect Shapes command or the Connector tool to connect the rectangle to another shape, Visio resets the value of the rectangle's ObjType cell to 1 (placeable).

The value of the ObjType cell can be a combination of values. If the non-placeable bit is set (&H4), however, it takes precedence over other values except the group value (&H8).

To reference the ObjType cell by name from another formula, or from a program using the CellsU property, use:

Cell name:


To reference the ObjType cell by index from a program, use the CellsSRC property with the following arguments:

Section index:


Row index:


Cell index: