<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://community.codesmithtools.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Robert Hinojosa</title><subtitle type="html" /><id>http://community.codesmithtools.com/blogs/rhinojosa/atom.aspx</id><link rel="alternate" type="text/html" href="http://community.codesmithtools.com/blogs/rhinojosa/default.aspx" /><link rel="self" type="application/atom+xml" href="http://community.codesmithtools.com/blogs/rhinojosa/atom.aspx" /><generator uri="http://communityserver.org" version="4.0.30619.63">Community Server</generator><updated>2006-05-15T21:01:00Z</updated><entry><title>Give instant generation feedback with the ProgressBar</title><link rel="alternate" type="text/html" href="/blogs/rhinojosa/archive/2007/06/25/give-instant-generation-feedback-with-the-progressbar.aspx" /><link rel="enclosure" type="application/codesmith" length="818" href="http://community.codesmithtools.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.02.59.84/ProgressExample.cst" /><id>/blogs/rhinojosa/archive/2007/06/25/give-instant-generation-feedback-with-the-progressbar.aspx</id><published>2007-06-25T14:21:00Z</published><updated>2007-06-25T14:21:00Z</updated><content type="html">&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;</content><author><name>Robert Hinojosa</name><uri>http://community.codesmithtools.com/members/Robert-Hinojosa/default.aspx</uri></author><category term="Code Generation" scheme="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/Code+Generation/default.aspx" /><category term="Tips &amp;amp; Tricks" scheme="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/Tips+_2600_amp_3B00_+Tricks/default.aspx" /></entry><entry><title>Tips &amp; Tricks: ActiveSnippets</title><link rel="alternate" type="text/html" href="/blogs/rhinojosa/archive/2007/06/09/tips-amp-tricks-activesnippets.aspx" /><id>/blogs/rhinojosa/archive/2007/06/09/tips-amp-tricks-activesnippets.aspx</id><published>2007-06-10T04:06:00Z</published><updated>2007-06-10T04:06:00Z</updated><content type="html">&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;</content><author><name>shannon</name><uri>http://community.codesmithtools.com/members/shannon/default.aspx</uri></author><category term="Code Generation" scheme="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/Code+Generation/default.aspx" /><category term="Tips &amp;amp; Tricks" scheme="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/Tips+_2600_amp_3B00_+Tricks/default.aspx" /><category term="ActiveSnippets" scheme="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/ActiveSnippets/default.aspx" /></entry><entry><title>CodeSmith and DevConnections</title><link rel="alternate" type="text/html" href="/blogs/rhinojosa/archive/2006/10/09/codesmith-and-devconnections.aspx" /><id>/blogs/rhinojosa/archive/2006/10/09/codesmith-and-devconnections.aspx</id><published>2006-10-09T21:51:00Z</published><updated>2006-10-09T21:51:00Z</updated><content type="html">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 it. Let&amp;#39;s see, I learned this one in grade school: CodeSmith Tools + Surprises + $ 5,000 + Dev Connections + Vegas + Vegas ============= House Money &amp;amp; Then Some! Start playing with the house&amp;#39;s...( read more )...(&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;</content><author><name>Anonymous</name><uri>http://community.codesmithtools.com/members/Anonymous/default.aspx</uri></author><category term="Code Generation" scheme="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/Code+Generation/default.aspx" /><category term=".netTiers" scheme="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/.netTiers/default.aspx" /><category term="Technology Climate" scheme="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/Technology+Climate/default.aspx" /></entry><entry><title>Codesmith Rocks!!!</title><link rel="alternate" type="text/html" href="/blogs/rhinojosa/archive/2006/05/15/codesmith-rocks.aspx" /><id>/blogs/rhinojosa/archive/2006/05/15/codesmith-rocks.aspx</id><published>2006-05-16T02:01:00Z</published><updated>2006-05-16T02:01:00Z</updated><content type="html">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%!It&amp;#39;s soo easy to use codesmith that quite honestly, if you&amp;#39;re not having Codesmith generate at least 25% of your work, in the future, i&amp;#39;m certain you will wake up one day and realize how much time you could have saved and think of me, ok...(&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;</content><author><name>Anonymous</name><uri>http://community.codesmithtools.com/members/Anonymous/default.aspx</uri></author><category term="Code Generation" scheme="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/Code+Generation/default.aspx" /><category term="C#" scheme="http://community.codesmithtools.com/blogs/rhinojosa/archive/tags/C_2300_/default.aspx" /></entry></feed>