20100820

Making Revit forms from image files in 9 EZ steps



I've gotten a lot of questions about how to get up and running on the bitmap to panel plug-in that I posted about here

buildz: API Yi Yi: bitmap to panel plugin
and here
Bitmap Panel Video by Emanuel Favreau

This is a relatively simplified and updated description of how to get a relatively simple Revit file up and running on release 2011. More details on how to operate it can be found here, but the following information should get you going.

The following assumes that you have Revit 2011 installed and are curious about API plugins



1. Unzip this file to some place on your hard drive

2. Move ParameterValuesFromImage.addin to the following place on your computer:

XP:


C:\Documents and Settings\<user>\Application Data\Autodesk\Revit\Addins\2011\


Vista/Win7:


C:\Users\<user>\AppData\Roaming\Autodesk\Revit\Addins\2011\


3. Open ParameterValuesFromImage.addin in a text editor (such as notepad) and change the path of this line


<Assembly>C:\Revit SDK 2011\ParameterValuesFromImage.dll</Assembly>



to where ever you unpacked the .dll file


For example, the new line might read:



<Assembly>C:\buildz\ParameterValuesFromImage.dll</Assembly>

4. Open PanelHosted.rfa
5. You should now have a new tab called "Add-Ins", with a button called "external tools".
6. Hit drop down in external tools, you should have "Set Parameter Values From Image data". Click this
7. Divided surface should become a blocky slope.
8. Edit PanelHosted.rfa_grayscale.bmp in an image editor
9. Repeat step 6.

23 comments:

XCW said...

Zach,
Do you know how to load this add-in for R2012? It complains about VenderId not registered if I try.
Cindy

Martin Møller said...

Yep, I have the same problem.. Good thing the 2011 is still installed.. But would be nice to use it in 2012.
Martin

Zach Kron said...

Try this installer for the 2012 version (a Vasari and a Revit installer):
http://www.buildz.info/downloads/20120502_RevitParameterValuesFromImage2012.zip
Not well tested, so any feedback you have is welcome.

Nishant said...

Revit could not complete the external command.
I am getting this error. Please help.

Anonymous said...

Source code please ....

Zach Kron said...

Nishant: It sounds like you don't have the bitmap in the right place or a correctly configured parameter
Anonymous: the source code is in the Revit SDK samples folder, under Massing.

Anonymous said...

How do the .bmp files get generated ?
Do we create them or they get created automatically ?

Zach Kron said...

You will need to author your own .bmps. I like the image editor "Gimp", it's an open source app with a really great library of gradient patterns. Very useful for this kind of work.

Lily Hui said...

Hello, wondering if anyone got the plugin to work in 2012? I keep getting a request for VenderId. Thanks! L

Emma said...

Hi Zach, I'm trying to install this on 2012.My Assembly line looks like this.

C:\Revit SDK 2011\Software Development Kit\Redbolt_package\commands\Massing\ParameterValuesFromImage.dll

How should I change it? Thanks!

Zach Kron said...

Emma, try the 2012 installer I mentioned a little way up in the comments. Are you on Revit or Vasari?

Emma said...

I'm on Revit. I've got it to work already, so thanks!

My mistake earlier was copying the addin file from your zip. I didn't have to replace the addin file.

Thanks again!

Andre said...

Had it working great in 2010, need it in 2011, ran the .exe, but nothing shows up. Is there a way to manually install it? Thanks,

Zach Kron said...
This comment has been removed by the author.
Zach Kron said...

The exe is for 2012, the manual install is for 2011 and is described in the post, use this download: http://www.buildz.info/downloads/20100820_Ez_Buildz_Panelz.zip
There seems to be a lot of interest in the last few days, is someone teaching a course?

Andre said...

No idea about a course. I'm just in charette mode and like to use it to generate facades... I haven't needed it since switching to 2012.

Andre said...

No course that I know of, but I believe there was an update roled out lately. Perhaps that could have broken something?

Andre said...

I had IT un-install and re-install the .exe which didn't work at first, but after some trial and error I got it to work by making two changes:

1. I found a stray .dll:
ParameterValuesFromImage2012.dll
in:

C:\Users\xxxxxxx\AppData\Roaming\Autodesk\Revit\Addins\2012

which I copied here:

C:\$UserFiles-Local\RevitAPI

then changed the
ParameterValuesFromImage.addin
file to append 2012 to the name of the .dll called

That started to work but launched with an error message.

2. So I edited the .addin file some more.
I copying a line in from another .addin file.

ADSK

I put it right after the line starting with "FullClass" just like in the file I copied it from.


2.5 At some point I put a copy of everything in this folder:
C:\$UserFiles-Local\RevitAPI

also into this folder:
C:\ProgramData\Autodesk\REVIT\Addins\2012

Now it works. Wonderful!

Anonymous said...

I have windows 7 and I don't know where to copy the the parametersvaluefromimage.addin file, therefore I don't get any addin menus when I open revit. Can anyone help me out with this? Do I need to create a addin folder within revit?

Zach Kron said...

Win7 with Revit 2011 should have a folder here:
C:\Users\\AppData\Roaming\Autodesk\Revit\Addins\2011
If you are using Vasari or Revit 2012, you can just use the installer that is indicated earlier in the comments.

桜守姫此芽 said...

Hi, I wanna know what the exact scale of numbers will be provided to fill the grayscale parameter, in an old post, it's said to be from 0 to 12 but I believe it's not the case in that 2012version. I met with some problem when using this addon and I think it's caused by the wrong gray value scale, as I assumed grayscale/12 <=1 in that family.

revitomus prime said...

Hi Zach, have you tried in revit 2013 ?
i have problem as the plugin doesn't work in revit 2013 my office is using revit 2013..
or is there a new way to do it in revit 2013?
regards

Zach Kron said...

Hi Revitomus,
the addin needs to be upgraded to 2013. I have not had a chance to recompile it, but it is in the Software Development kit if you have someone in your office with the knowhow

Post a Comment