<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Smart LineWeight: Bigger Shape, Thicker Lines</title>
	<atom:link href="http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/</link>
	<description>Smart graphics for visual people. Visio Guy offers Microsoft Visio shapes, stencils, templates, code,  power user tips and programming advice and ShapeSheet examples for creating Visio SmartShapes.</description>
	<lastBuildDate>Mon, 08 Mar 2010 10:52:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Visio Guy</title>
		<link>http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/comment-page-1/#comment-24308</link>
		<dc:creator>Visio Guy</dc:creator>
		<pubDate>Mon, 01 Feb 2010 15:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/#comment-24308</guid>
		<description>Hi Paul,

Yeah, you&#039;d have to write some recursive code. It&#039;s not too hard as every Visio shape has a shapes collection, so you can get at sub-shapes via shp.Shapes.

There&#039;s a bit of an inconsistency between code and the UI. If, for example you select a group in a drawing window and apply a fill color, that color will apply all the way down to the deepest sub-shape.

If you do the same in code, you only set the group&#039;s FillForegnd cell. Often, the group has no geometry at all, so you won&#039;t see anything. The sub-shapes remain untouched. This can sometimes work in your favor, but other times force you to write recursive routines :)</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>Yeah, you&#8217;d have to write some recursive code. It&#8217;s not too hard as every Visio shape has a shapes collection, so you can get at sub-shapes via shp.Shapes.</p>
<p>There&#8217;s a bit of an inconsistency between code and the UI. If, for example you select a group in a drawing window and apply a fill color, that color will apply all the way down to the deepest sub-shape.</p>
<p>If you do the same in code, you only set the group&#8217;s FillForegnd cell. Often, the group has no geometry at all, so you won&#8217;t see anything. The sub-shapes remain untouched. This can sometimes work in your favor, but other times force you to write recursive routines <img src='http://www.visguy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/comment-page-1/#comment-24304</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 29 Jan 2010 18:49:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/#comment-24304</guid>
		<description>Wondering about the VB sub code... In a lot of cases I have shapes that are nested more then two deep in most cases in complex shapes I have at least 4 levels of shapes. Your Sub routine only accounts for one or does it?

I&#039;ve written similar code that uses recursion. My question is would recursion be needed here if my shapes are more than one level deep, or does Visio handle this differently than I expect?

Thanks</description>
		<content:encoded><![CDATA[<p>Wondering about the VB sub code&#8230; In a lot of cases I have shapes that are nested more then two deep in most cases in complex shapes I have at least 4 levels of shapes. Your Sub routine only accounts for one or does it?</p>
<p>I&#8217;ve written similar code that uses recursion. My question is would recursion be needed here if my shapes are more than one level deep, or does Visio handle this differently than I expect?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: YossiD</title>
		<link>http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/comment-page-1/#comment-21595</link>
		<dc:creator>YossiD</dc:creator>
		<pubDate>Thu, 08 Jan 2009 09:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/#comment-21595</guid>
		<description>Terrific.

It looks like you intended to include character scaling as well (assuming the fs variable is font size). Can you provide the code to do that?</description>
		<content:encoded><![CDATA[<p>Terrific.</p>
<p>It looks like you intended to include character scaling as well (assuming the fs variable is font size). Can you provide the code to do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visio Guy &#187; Blog Archive &#187; Create Better-looking, More-efficient SmartShapes</title>
		<link>http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/comment-page-1/#comment-21051</link>
		<dc:creator>Visio Guy &#187; Blog Archive &#187; Create Better-looking, More-efficient SmartShapes</dc:creator>
		<pubDate>Mon, 11 Aug 2008 00:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/#comment-21051</guid>
		<description>[...] Smart LineWeight: Bigger Shape, Thicker Lines [...]</description>
		<content:encoded><![CDATA[<p>[...] Smart LineWeight: Bigger Shape, Thicker Lines [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visio Guy</title>
		<link>http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/comment-page-1/#comment-17449</link>
		<dc:creator>Visio Guy</dc:creator>
		<pubDate>Tue, 01 Apr 2008 16:22:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/#comment-17449</guid>
		<description>Sorry Ted, didn&#039;t mean to bite! :)</description>
		<content:encoded><![CDATA[<p>Sorry Ted, didn&#8217;t mean to bite! <img src='http://www.visguy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ted</title>
		<link>http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/comment-page-1/#comment-17446</link>
		<dc:creator>Ted</dc:creator>
		<pubDate>Tue, 01 Apr 2008 15:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/#comment-17446</guid>
		<description>thanks...just did not catch the shapesheet cell view...probably me...apologies</description>
		<content:encoded><![CDATA[<p>thanks&#8230;just did not catch the shapesheet cell view&#8230;probably me&#8230;apologies</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visio Guy</title>
		<link>http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/comment-page-1/#comment-17439</link>
		<dc:creator>Visio Guy</dc:creator>
		<pubDate>Mon, 31 Mar 2008 16:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/#comment-17439</guid>
		<description>Hi Ted,

Thanks for the correction. 

These shapes are likely to have their aspect-ratios maintained, so keying the LineWeight off of the height is just fine. 

But for shapes that could be resized in either dimension, you are right, the width needs to be taken into account.

Not sure what you mean by &quot;far easier in the ShapeSheet&quot;. This technique is 100% ShapeSheet, but without the numerical reduction that you&#039;ve suggested. The VBA code simply sets the smarts automatically in all the sub-shapes, so that you don&#039;t have to do it by hand!

And you&#039;re right, a top-level &quot;scale-factor&quot; could be implemented, with a reduction of the fixed numbers. But for instructional purposes, I&#039;ve left some of the simplifications out. I also didn&#039;t want to add user-cells to the shapes, because that unnecessarily complicates the code for this simple example.

Cheers,

- Chris</description>
		<content:encoded><![CDATA[<p>Hi Ted,</p>
<p>Thanks for the correction. </p>
<p>These shapes are likely to have their aspect-ratios maintained, so keying the LineWeight off of the height is just fine. </p>
<p>But for shapes that could be resized in either dimension, you are right, the width needs to be taken into account.</p>
<p>Not sure what you mean by &#8220;far easier in the ShapeSheet&#8221;. This technique is 100% ShapeSheet, but without the numerical reduction that you&#8217;ve suggested. The VBA code simply sets the smarts automatically in all the sub-shapes, so that you don&#8217;t have to do it by hand!</p>
<p>And you&#8217;re right, a top-level &#8220;scale-factor&#8221; could be implemented, with a reduction of the fixed numbers. But for instructional purposes, I&#8217;ve left some of the simplifications out. I also didn&#8217;t want to add user-cells to the shapes, because that unnecessarily complicates the code for this simple example.</p>
<p>Cheers,</p>
<p>- Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ted</title>
		<link>http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/comment-page-1/#comment-17436</link>
		<dc:creator>Ted</dc:creator>
		<pubDate>Mon, 31 Mar 2008 15:55:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/#comment-17436</guid>
		<description>A couple of things:
   - I think the equation is wrong.....should be LW_new = LW_old *(GH_new/GH_old).    
     Current approach would give you the inverse of what you want  (bigger shape==&gt;thinner lines)
   - Wouldnt it be far easier to do this in the shapesheet alone
       - user.linescaler = Shapeheight / shapeheight defined at creation
         (at creation is when first done.....aka user.linescaler = shapeheight/2.9831mm
       - Lineweight = creation_wt*user.linescaler
          (aka lineweight = 5pt * user.linescaler)

This is similar to how text can be autoscaled

Also, even with your approach, either aspect ratio must be held or some sorted combination of
shapeheight and shapewidth folded into user.linescaler.  (aka make a user.linescalerx and user.linescalery
and user.linescaler = (user.linescalerx+user.linescalery)/2 kind of thing)</description>
		<content:encoded><![CDATA[<p>A couple of things:<br />
   &#8211; I think the equation is wrong&#8230;..should be LW_new = LW_old *(GH_new/GH_old).<br />
     Current approach would give you the inverse of what you want  (bigger shape==&gt;thinner lines)<br />
   &#8211; Wouldnt it be far easier to do this in the shapesheet alone<br />
       &#8211; user.linescaler = Shapeheight / shapeheight defined at creation<br />
         (at creation is when first done&#8230;..aka user.linescaler = shapeheight/2.9831mm<br />
       &#8211; Lineweight = creation_wt*user.linescaler<br />
          (aka lineweight = 5pt * user.linescaler)</p>
<p>This is similar to how text can be autoscaled</p>
<p>Also, even with your approach, either aspect ratio must be held or some sorted combination of<br />
shapeheight and shapewidth folded into user.linescaler.  (aka make a user.linescalerx and user.linescalery<br />
and user.linescaler = (user.linescalerx+user.linescalery)/2 kind of thing)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visio Guy &#187; Blog Archive &#187; Cisco IP Telephone Shapes</title>
		<link>http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/comment-page-1/#comment-17419</link>
		<dc:creator>Visio Guy &#187; Blog Archive &#187; Cisco IP Telephone Shapes</dc:creator>
		<pubDate>Sat, 29 Mar 2008 09:58:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/#comment-17419</guid>
		<description>[...] Smart LineWeight: Bigger Shape, Thicker Lines [...]</description>
		<content:encoded><![CDATA[<p>[...] Smart LineWeight: Bigger Shape, Thicker Lines [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visio Guy &#187; Blog Archive &#187; Making Shapes More Efficient: Using Fewer Shapes &#38; Groups</title>
		<link>http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/comment-page-1/#comment-17417</link>
		<dc:creator>Visio Guy &#187; Blog Archive &#187; Making Shapes More Efficient: Using Fewer Shapes &#38; Groups</dc:creator>
		<pubDate>Sat, 29 Mar 2008 09:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2008/03/29/smart-lineweight-bigger-shape-thicker-lines/#comment-17417</guid>
		<description>[...] Smart LineWeight: Bigger Shape, Thicker Lines [...]</description>
		<content:encoded><![CDATA[<p>[...] Smart LineWeight: Bigger Shape, Thicker Lines [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
