Revit beyond macros – building your tools as external commands

image by archi-lab

With #RTCEUR over, I decided to release something that I made this weekend to add another dimension to those amazing Macros that Harry Mattison so kindly releases during the conference. I was particularly interested in one of the requests that Harry has received and granted:

I personally has suggested to Chris to check out LMNts plug-in that I remember using few years ago that would do just that.

Ps. Shout-out to Tim Logan! I seem to be running into stuff that he has created and shared with others at no charge ALL THE TIME. That’s amazing. Keep up the good work.

Anyways, Chris’ response was that he is more interested in learning how to make one himself than to depend on others. I totally agree with that statement, and seeing how LMNts hasn’t yet released a version of this plug-in for 2016 I decided to do so myself.

Capture-01

If you navigated to the link provided above, there is a good explanation to how, this plug-in works. My version does exactly the same things (allows you to select Schedules and Legends), then specify Sheets that you want to copy them to and you are done. Please download it from the link below:

Grimshaw DT - LegendDuplicator2016 (2011 downloads)

How to install it: This part is also explained on LMNts website but I will quote it here for clarity.

“To install the plugin, unzip the provided file and copy the two files within the ZIP (ie the .ADDIN and .DLL) to your computer at either C:ProgramDataAutodeskRevitAddins[Version] or to C:users[UserName]AppDataRoamingAutodeskRevitAddins[Version].  You may also want to check that the files are not blocked by right clicking on the DLL and going to it’s properties.  If there’s an Unblock button be sure to unblock it before trying to use it.”

In spirit of “teaching people how to fish” instead of just giving them fish, I also decided to share my whack code for this plug-in. For those feeling adventurous feel free to download it and try and compile it yourself. I used VisualStudio Community 2015 to compile and Revit 2016. Download it from here:

archi-lab.net – LegendDuplicator – GitHub

Licence:

Keep in mind that this tool is being released “AS IS” and being licensed under GNU General Public License.

LegendDuplicator is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

LegendDuplicator is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

@license GPL-3.0+ http://spdx.org/licenses/GPL-3.0+

 

Ps. I only tested this sparingly, so feel free to let me know if it breaks in certain cases. I am open to suggestions. Also, I am not a programmer so if you feel like I am violating some unspoken programming rule anywhere within my code, go ahead and let me know. :-) Enjoy!

Ps2. I got that license stuff from Mostapha Sadeghipour Roudsari’s GitHub page – thanks!

Support archi-lab on Patreon!

Leave a Comment