<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://community.codesmithtools.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Robert Hinojosa</title><link>http://community.codesmithtools.com/blogs/rhinojosa/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>Give instant generation feedback with the ProgressBar</title><link>http://community.codesmithtools.com/blogs/rhinojosa/archive/2007/06/25/give-instant-generation-feedback-with-the-progressbar.aspx</link><pubDate>Mon, 25 Jun 2007 14:21:00 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:25984</guid><dc:creator>Robert Hinojosa</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://community.codesmithtools.com/blogs/rhinojosa/rsscomments.aspx?PostID=25984</wfw:commentRss><comments>http://community.codesmithtools.com/blogs/rhinojosa/archive/2007/06/25/give-instant-generation-feedback-with-the-progressbar.aspx#comments</comments><description>&lt;p&gt;One of the easiest ways to show instant template feedback for long running templates is by using the Progress Bar that the CodeSmith Engine API provides. If you&amp;#39;ve ever used the Progress control in Winforms you&amp;#39;ll find this control very similar in usage and very easy to use. &lt;/p&gt;
&lt;p&gt;The progress bar is meant to be a way to show a series of&amp;nbsp;steps during the generation process. This lets the user know how long the generation process will take relative to the steps which have already been completed.&amp;nbsp; To access and configure the progress bar, there is a property exposed from the CodeTemplate class called Progress, so you will easily be able to apply this to any new or existing template. Typing &lt;i&gt;this.Progress&lt;/i&gt; from anywhere in your templates will&amp;nbsp;give you access to configure the Progress class.&lt;/p&gt;The important properties and methods from the Progress class are: 
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;MaximumValue&lt;/b&gt; = The maximum value that the series can step to. Once the steps have counted to this value the progress bar will be full.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Step&lt;/b&gt; = This is the increment value you want to perform each step. This is most commonly 1, since each step should be for a unit of work.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Value&lt;/b&gt; = This is the current value of the progress bar.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;PerformStep()&lt;/b&gt; = This method triggers a step to be processed.&lt;/li&gt;&lt;/ul&gt;
&lt;h3&gt;Example:&lt;/h3&gt;Let&amp;#39;s say we want to run through all of the tables in the Database and for this example, we&amp;#39;re going to generate against the table&amp;#39;s meta-data information.&amp;nbsp; &lt;br /&gt;&lt;b&gt;&lt;br /&gt;Steps&lt;/b&gt;&lt;br /&gt;1. OnInit of the template Setup the Progress Bar&lt;br /&gt;2. Progress&amp;#39; MaximumValue &amp;nbsp;with the amount of tables found in the database.&lt;br /&gt;3. Set the Step = 1, since we will be processing each table individually.&lt;br /&gt;4. During the generation process, after each unit of work, call PerformStep().&lt;br /&gt;&lt;br /&gt;&lt;img src="http://nettiers.com/images/progressCode.png" alt="" /&gt; &lt;br /&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;Result:&lt;/h3&gt;The result is that as the generation progress is occurring from CodeSmith Studio or Windows Explorer, the progress bar will be shown to give instant feedback to the user.&lt;br /&gt;
&lt;p&gt;&lt;img src="http://nettiers.com/images/progress.png" alt="" /&gt; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=25984" width="1" height="1"&gt;</description><enclosure url="http://community.codesmithtools.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.02.59.84/ProgressExample.cst" length="818" type="application/codesmith" /><category domain="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/Code+Generation/default.aspx">Code Generation</category><category domain="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/Tips+_2600_amp_3B00_+Tricks/default.aspx">Tips &amp;amp; Tricks</category></item><item><title>Tips &amp; Tricks: ActiveSnippets</title><link>http://community.codesmithtools.com/blogs/rhinojosa/archive/2007/06/09/tips-amp-tricks-activesnippets.aspx</link><pubDate>Sun, 10 Jun 2007 04:06:00 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:25109</guid><dc:creator>shannon</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://community.codesmithtools.com/blogs/rhinojosa/rsscomments.aspx?PostID=25109</wfw:commentRss><comments>http://community.codesmithtools.com/blogs/rhinojosa/archive/2007/06/09/tips-amp-tricks-activesnippets.aspx#comments</comments><description>&lt;p&gt;CodeSmith 4.0 delivers strong integration within Visual Studio and &lt;a title="ActiveSnippets" href="http://www.codesmithtools.com/usersguide/Using_ActiveSnippets.html" target="_blank"&gt;ActiveSnippets&lt;/a&gt; are a driver toward increasing developer productivity. ActiveSnippets, at a high level, are CodeSmith templates with exposure to the entire .Net Framework which you can utilize with a few keystrokes inside of Visual Studio 2005. The output of your ActiveSnippet will be rendered right where you invoke the ActiveSnippet.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;ActiveSnippet Features:&lt;/b&gt; &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You have access to the entire .Net Framework, SchemaExplorer, XmlProperty, Custom Assemblies, or another rich meta-data source.&lt;/li&gt;
&lt;li&gt;Complex Objects such as an XmlProperty and SchemaExplorer types can exist as properties in your CodeSmith Template, and can be used as arguments to an ActiveSnippet.&lt;/li&gt;
&lt;li&gt;An ActiveSnippet can be configured inside Visual Studio for any valid existing CodeSmith Template.&lt;/li&gt;
&lt;li&gt;Use CTRL + E, CTRL+ E to expand an ActiveSnippet alias or to view all &lt;a title="ActiveSnippets Configured" href="http://www.codesmithtools.com/usersguide/ActiveSnippets_Configuration.html" target="_blank"&gt;ActiveSnippets Configured&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Use CTRL + E, CTRL + R to view usage information for a particular ActiveSnippet.&lt;/li&gt;
&lt;li&gt;Sample &lt;a title="Table Data Enumeration" href="http://community.codesmithtools.com/files/folders/activesnippets/entry23894.aspx"&gt;Table Data Enumeration Template&lt;/a&gt; found in the video.&lt;/li&gt;&lt;/ul&gt;
&lt;p style="TEXT-ALIGN:center;"&gt;&lt;b&gt;Watch a 5 minute video on ActiveSnippets&lt;/b&gt;&lt;br /&gt;&lt;a href="http://community.codesmithtools.com/blogs/rhinojosa/archive/2007/06/09/tips-amp-tricks-activesnippets.aspx?play=true" target = "_blank" &gt;&lt;img src="/videos/ActiveSnippets/ActiveSnippets.png" border="0" title = "click to view the movie" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=25109" width="1" height="1"&gt;</description><category domain="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/Code+Generation/default.aspx">Code Generation</category><category domain="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/Tips+_2600_amp_3B00_+Tricks/default.aspx">Tips &amp;amp; Tricks</category><category domain="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/ActiveSnippets/default.aspx">ActiveSnippets</category></item><item><title>CodeSmith and DevConnections</title><link>http://community.codesmithtools.com/blogs/rhinojosa/archive/2006/10/09/codesmith-and-devconnections.aspx</link><pubDate>Mon, 09 Oct 2006 21:51:00 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:25179</guid><dc:creator>Thoughts.Generate(); : Code Generation</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://community.codesmithtools.com/blogs/rhinojosa/rsscomments.aspx?PostID=25179</wfw:commentRss><comments>http://community.codesmithtools.com/blogs/rhinojosa/archive/2006/10/09/codesmith-and-devconnections.aspx#comments</comments><description>Looks like Eric is getting so anxious about CodeSmith Tool&amp;#39;s presence at Dev Connections, he decided to give away money, just to seal the deal and CodeSmith, Vegas Style!!! Yes, I used CodeSmith as a verb, if you haven&amp;#39;t tried it, I highly recommend...(&lt;a href="http://community.codesmithtools.com/blogs/rhinojosa/archive/2006/10/09/codesmith-and-devconnections.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=25179" width="1" height="1"&gt;</description><category domain="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/Code+Generation/default.aspx">Code Generation</category><category domain="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/.netTiers/default.aspx">.netTiers</category><category domain="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/Technology+Climate/default.aspx">Technology Climate</category></item><item><title>Codesmith Rocks!!!</title><link>http://community.codesmithtools.com/blogs/rhinojosa/archive/2006/05/15/codesmith-rocks.aspx</link><pubDate>Tue, 16 May 2006 02:01:00 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:25180</guid><dc:creator>Thoughts.Generate(); : Code Generation</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://community.codesmithtools.com/blogs/rhinojosa/rsscomments.aspx?PostID=25180</wfw:commentRss><comments>http://community.codesmithtools.com/blogs/rhinojosa/archive/2006/05/15/codesmith-rocks.aspx#comments</comments><description>Ok, yes, I work for Codesmith! Let&amp;#39;s put that aside for a second, since i&amp;#39;ve been a huge Codesmith fan long before I became a proud Codesmith Employee, that&amp;#39;s what makes my job that much better, because I truly believe in this product 110...(&lt;a href="http://community.codesmithtools.com/blogs/rhinojosa/archive/2006/05/15/codesmith-rocks.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=25180" width="1" height="1"&gt;</description><category domain="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/Code+Generation/default.aspx">Code Generation</category><category domain="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/C_2300_/default.aspx">C#</category></item></channel></rss>