Become a Fan

BIMAdvent Twitter

    follow me on Twitter

    December 2011

    Sun Mon Tue Wed Thu Fri Sat
            1 2 3
    4 5 6 7 8 9 10
    11 12 13 14 15 16 17
    18 19 20 21 22 23 24
    25 26 27 28 29 30 31

    Autodesk, AutoCAD, Maya, Navisworks, and Revit are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and/or other countries. All other brand names, product names, or trademarks belong to their respective holders.

    « Need a BMW X5 in Revit? | Main | Wish you had the Pick Add command in Revit?? »

    01/23/2011

    Comments

    Feed You can follow this conversation by subscribing to the comment feed for this post.

    philbert943

    This is awesome! Except it doesn't put the parameters under the correct group. When I run it, all parameters are added under "Graphics". Help?

    philbert943

    Oh I see now, it's "BuiltInParameterGroup.PG_Graphics" putting them all there. So is the group the parameter belongs to not part of the shared parameter file?

    Steve Germano

    Hi Phil thanks for the comment.

    I believe your correct, in this example we have the group hard coded. You would want to use a variable for the group name and have that variable reset and used to write each shared param from the file.

    Let me know if you get stuck and I'll try to help you out.

    philbert943

    Still hung up on the group arguement ("BuiltInParameterGroup.PG_Graphics"). It's seems you have to pick from the list. Isn't that information stored in the shared parameter file (5th item)?

    Steve Germano

    Hi Phil - Thats correct, we designed the app that way for the use of our content creation team. Feel free to change that and use the app in any way you would like. We will have a much more expanded version of this app available for download in the future. For now this code was intended to show how you can read from a shared parameter file and batch write to a family. Hope that helps.

    Yaoho

    Sounds really cool...How is this intalled?

    Steve Germano

    Hi Yaoho - Once you download and unzip go to the following folder: IBD Write Shared Parameters\IBD Write Shared Parameters\bin\Debug

    In this folder you will find the IBD Write Shared Parameters.dll file. You may use the app by loading this dll into the Revit Add-In Manager.

    If you do not already have the add-in manager installed you can install it from this post here:http://ibdrg.typepad.com/ibd-resource-group/2011/05/how-to-start-programming-the-revit-api-part-2.html

    The add-in manager is part of the SDK supplied from the Autodesk API team. If enough people find the app useful I will try to add it to a ribbon button and supply a installer for it.

    Hope that helps, let me know if you have any questions!

    Yaoho

    Thanks alot for the quick response and all of the info. Unfornately I still can't get it to work.
    Here are the steps that I have followed:
    1. I installed the Add In Manager
    2. I then went to the Add ins tab>External Tools>Addin Manager(Manual Mode)>Load>i selected the .dll file you specified above>close the Add in manager>Close then Open Revit again and the tool doesn't appear on the ribbon. Your help is truly appreciated. Thanks.

    Yaoho

    Sorry i forgot a step. After i loaded the .dll file through the add in manager i save it then i closed it. Thanks again.

    Steve Germano

    Hi Yaoho, your almost there! You missed he step to actually run the app. Once you load the DLL into the add-in manager you will see two subcategories, you will want to select the "ibd.Revit.Commands" subcategory and then click "RUN" in the add-in manager.

    This will instantly run the app, there is not ribbon button for this command, you have to run it from the add-in manager each time you want to use it. This is a typical workflow for developers to test their apps without having to program a ribbon button also.

    I hope that gets you up and running and batching some shared params! :)

    Cheers,
    Steve

    Mark

    Hi, great add-in but i'm having some trouble. Did a little test and got it to work ok, but now coming up against "No valid types in this family" error message, and can't figure out what is causing it. Doesn't seem to be the family category (in revit), datacategory or groupname (in excel file). Any suggestions?

    Steve Germano

    Hi Mark,

    Glad you found it useful. You need to have at least 1 family type present or the API cannot write parameters to the family. Try to just add a type then rerun the program and it should work!

    Be sure to check the blog coming up here soon, we are releasing a ton of apps early next year with lots of freebies!

    Verify your Comment

    Previewing your Comment

    This is only a preview. Your comment has not yet been posted.

    Working...
    Your comment could not be posted. Error type:
    Your comment has been posted. Post another comment

    The letters and numbers you entered did not match the image. Please try again.

    As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

    Having trouble reading this image? View an alternate.

    Working...

    Post a comment