Visio 2003: Creating Shape via Shape -> Operations -> Offset, gettingcreated Shape-Objects

U

Udo Weik

Hello,

after creating a Shape via Shape -> Operations -> Offset, is there any
convenient way to get the two created shapes as Shape-Objects?


Thanks for any hint
Udo
 
N

news.microsoft.com

Hi Udo!

When you use this operation, you create two new shapes, as you said. These
shapes are top-most in the Z-order for the page, and are the last two shapes
in the shapes collection.

So if you analyze (per code) right after executing Offset, you can get them
like this:

Dim shp1 as Visio.Shape, shp2 as Visio.Shape
Dim pg as Visio.Page
....
Set shp1 = pg.Shapes( pg.Shapes.Count )
Set shp2 = pg.Shapes( pg.Shapes.Count -1 )

I haven't researched which one is which -- is the first shape the "outer"
one, etc. But it is probably pretty regular, and easy to determine.

--
Hope this helps,

Chris Roth
Visio MVP

For in-depth Visio articles, Visio tutorials and free Visio shapes, stencils
and templates, check out my web site:
Visio Guy
http://www.visguy.com

For more forum help, with pictures and downloads, visit:
http://www.visguy.com/vgforum
 
B

Betty Carson

Microsoft visio shapes in Visio 2007 helps you quickly implement new services as well as easily move, add,
and make changes to existing ones. Visio 2007 download gives a wide range of templates, including logical, physical, rack, process, and asset diagrams help you visualize processes, optimize systems, track projects
and resources, and resolve problems quickly. With Office Visio 2007, you can also visualize security issues on network diagrams. In addition, the Visio Toolbox Web site delivers more Visio tools, best practices, and reference materials to maximize your investment and simplify processes.



Udo Weik wrote:

Visio 2003: Creating Shape via Shape -> Operations -> Offset, gettingcreated Shape-Objects
28-Nov-09

Hello,

after creating a Shape via Shape -> Operations -> Offset, is there any
convenient way to get the two created shapes as Shape-Objects?


Thanks for any hint
Udo

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
XML/XPath Query On Attributes
http://www.eggheadcafe.com/tutorial...c6-580045c565bf/xmlxpath-query-on-attrib.aspx
 
B

Betty Carson

Hello,

after creating a Shape via Shape -> Operations -> Offset, is there any
convenient way to get the two created shapes as Shape-Objects?

Thanks for any hint
Udo


The Visio Toolbox Web site delivers more Visio tools, best practices,
and reference materials.
http://bit.ly/5x85eA
 
B

Betty Carson

Hello,

after creating a Shape via Shape -> Operations -> Offset, is there any
convenient way to get the two created shapes as Shape-Objects?

Thanks for any hint
Udo


The Visio Toolbox Web site delivers more Visio tools, best practices,
and reference materials.
http://bit.ly/5x85eA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top