File Upgrader Plugin of the Month

The third Revit Plugin of the Month has been released, after Adam Nagy’s

Room Renumbering
and
Martin Schmid’s

ASHRAE Viewer
:
the File Upgrader for Revit by Saikat Bhattacharya.
As always, the new ADN Plugin of the Month can be downloaded from the
<!– Autodesk Labs –>

Autodesk Labs ADN Plugins
page.

The File Upgrader can be used to batch upgrade previous versions of Revit files to the Revit 2012 format.
It can upgrade both project files and family content:

File Upgrader

The download includes a compiled and ready-to-install version for 32 and 64 bit Revit 2012, readme file describing its installation and usage, and the full source code.
You can therefore use it as is, tweak it for your specific needs, or freely integrate the functionality into your workflow in other ways.

Check it out on the labs!

Here are two other noteworthy releases that I picked up from other posts:

Autodesk BIM 360


Autodesk BIM 360
is composed of 3 main components:

  • Vault Collaboration AEC – fully secured, managed data.
  • Buzzsaw – collaboration tool.
  • Integrated mobile applications – iPhone and iPad access.

Photofly 2


Photofly 2.0
is now available, and Emily Kfouri wrote about both

the update
as
well as a detailed explanation on

how to use Photofly
to
effectively create a 3D model of a building with Revit and Vasari.

Later: Just now, Kean Walmsley published a great little write-up describing the steps involved in using the new version to

rapidly defining an impressive mesh with a texture
,
and highlighting that “this type of functionality is really going to change the way we think about the design process by drastically reducing the cost of 3D model capture”.


Comments

32 responses to “File Upgrader Plugin of the Month”

  1. Mallikarjuna Avatar
    Mallikarjuna

    Dear Sir,
    I want to know, when Escape key pressed in active window after placing some elements, which event will fired?.
    I want that event handler. I am trying to minimize users, without escape key pressing.
    please help me.
    Thankyou,
    Mallikarjuna

  2. Dear Mallikarjuna,
    Revit will not fire any event for the Escape key.
    If you want to catch that, you will have to use Windows or .NET events, and they may possibly not interact well with the Revit API.
    So you are on your own there. Good luck!
    Cheers, Jeremy.

  3. Mallikarjuna Avatar
    Mallikarjuna

    Dear sir,
    Thankyou very mcuh for your quick reply.
    Please suggest me, which C#.net event will suitable for this scenario?.
    I have tried Document_Changed event, but it is not working.
    please help me.
    Thank you,
    Mallikarjuna.

  4. Dear Mallikarjuna,
    Use Google. And you might also try using a spell checker :-)
    Cheers, Jeremy.

  5. Mallikarjuna Avatar
    Mallikarjuna

    Dear sir,
    I want to try to catch xyz co-ordinates of mouse click in editor in my application.
    Please help me out.
    Thank you,
    Mallikarjuna

  6. Mallikarjuna Avatar
    Mallikarjuna

    Dear sir,
    I am working on sample application related to catch mouse cursor co-ordinates when mouse hits on editor window.
    please help me out.
    Thank you,
    Mallikarjuna

  7. Dear Mallikarjuna,
    I can only suggest retrieving the Windows screen or client rectangle coordinates using standard Windows API calls. Unfortunately I have no idea how these might be translated to Revit XYZ model or view coordinates, so it will probably not be of much use to you in any case.
    Cheers, Jeremy.

  8. Mallikarjuna Avatar
    Mallikarjuna

    Dear Sir,
    I want to call Add-In Tab dynamically in revit.
    Please help me.
    Thankyou,
    Mallikarjuna.

  9. Dear Mallikarjuna,
    If you mean how to launch an existing Revit command, then that is unfortunately not possible:
    http://thebuildingcoder.typepad.com/blog/2011/09/modeless-forms-in-revit.html#1
    Cheers, Jeremy.

  10. Mallikarjuna D Avatar
    Mallikarjuna D

    Dear Sir,
    I have created my own tab in revit. I want to assign shortcut key for that tab.
    For example, if we press Alt + D, Add-In will active.
    Please help me, how to assign in revit.

  11. Mallikarjuna Avatar
    Mallikarjuna

    Dear Sir,
    I need a help, how to get ‘Segments and Sizes’ entire list information in Revit 2013 through C#.net?.
    Please help me.

  12. Dear Mallikarjuna,
    I have no idea what you mean by “Segments and Sizes entire list information”.
    Just like in previous versions of Revit, you can easily use the API to iterate over all building elements, extract their geometry, and export that data in any shape or form you please, including breaking it down into lists of segments and sizes.
    Have fun!
    Cheers, Jeremy.

  13. Mallikarjuna Avatar
    Mallikarjuna

    Dear sir,
    I mean, I have to get PipeSizes for specific pipetype in 2013.
    please help me.

  14. Dear Mallikarjuna,
    That is a completely different question, of course.
    Please look at the Revit 2013 SDK sample RoutingPreferenceTools:
    http://thebuildingcoder.typepad.com/blog/2012/03/new-revit-2013-sdk-samples.html#3
    Cheers, Jeremy.

  15. Mallikarjuna Avatar
    Mallikarjuna

    Dear Sir,
    It is great help to achieve the task.
    Thankyou for your help.

  16. Mallikarjuna Avatar
    Mallikarjuna

    Dear sir,
    I have implemented one windows application, and i am using that Application dll in Revit Application.
    But it is always refering old dll(windows application)in Revit application.
    Windows Application is building perfectly, but through revit application it is always showing old methods of windows applciation.
    Please help me.
    Thank you,
    Mallikarjuna

  17. Dear Mallikarjuna,
    I guess you have to update your project references.
    Cheers, Jeremy.

  18. Mallikarjuna Avatar
    Mallikarjuna

    Dear Sir,
    I am using one windows dll in Two Revit applications. I have refering this dll from Bin Folder.
    We have created our own tab(“TestRevit”). we are adding our revit applications(“test1″,”test2”) in this tab(“testRevit”).
    If we click first on “test1” tab after that if we click on “test2”, then “test2” application works with one method only because “test1” having one method only(“ADD”).
    suppose if we click first on “test2” after that if we click on “test1”, then “test1” works with two methods.( “ADD” and “Divide”).
    Eg:
    1. c:\test1\debug\bin\sum.dll(containf only one method “ADD”)
    2. c:\test2\debug\bin\sum.dll(contains two methods “ADD” and “Divide”)
    Note:- Test1 and Test2 is revit application , sum.dll is windows dll.
    (if required, we will provide our sample applications.)
    Please advice.
    Thank you,
    Mallikarjuna

  19. Dear Mallikarjuna,
    I would strongly advise you to avoid having two different DLLs with the same name. I would also ensure that the DLLs are all copied to one single consistent location. If you wish to make serious use of any .NET functionality from a Revit add-in, I would advise installing the add-in DLL and all its dependencies in the same directory as revit.exe, or in a subdirectory of that location:
    “The easiest way to make full use of some of the more complex .NET framework features which involve security settings and access rights, for example application settings and resource handling, is to install a class assembly in the same directory as the executable defining the AppDomain loading the it, i.e. Revit.exe in the Revit executable folder, which is the Program subdirectory under the Revit main installation folder. One example of this is making use of the using System.Configuration namespace to store application settings. The general recommendation for both AutoCAD.NET and Revit add-ins is for the installer to install the external command into the main application executable folder.”
    http://thebuildingcoder.typepad.com/blog/2009/02/revit-install-path-and-product-guids.html
    http://redbolts.com/blog/post/2009/02/10/Static-in-your-commands-User-settings-part-1.aspx
    Cheers, Jeremy.

  20. Mallikarjuna Avatar
    Mallikarjuna

    Dear Sir,
    I have created a sample application for filtering Duct.
    I want to get Shape information about Duct(Oval/Rectangular/Round) programmatically.
    please help me.
    Thank you,
    Mallikarjuna.

  21. Dear Mallikarjuna,
    Do these discussions help you at all?
    http://thebuildingcoder.typepad.com/blog/2011/05/improved-mep-element-shape-and-mount-ararat.html
    http://thebuildingcoder.typepad.com/blog/2011/03/distinguishing-mep-element-shape.html
    They are based on examining some string describing the element.
    A more reliable approach would be to go via the element geometry, determine the faces of the connectors, and analyse their shape geometrically.
    That is something I would like to do one of these days…
    Cheers, Jeremy.

  22. Mallikarjuna Avatar
    Mallikarjuna

    Dear Sir,
    I have Created a RibbonTab and RibbonPanel with PullDownButtonData.
    From Another application, i want to add only “PushButton” in already existed RibbonPanel as a PullDownButtonData.
    Please help me.
    Thankyou,
    Mallikarjuna

  23. Dear Mallikarjuna,
    If I understand you correctly, I think this should be possible, and it may even be supported by Victor’s ribbon creation utility:
    http://thebuildingcoder.typepad.com/blog/2012/10/ribbon-creation-utility.html
    Cheers, Jeremy.

  24. Mallikarjuna Avatar
    Mallikarjuna

    Dear sir,
    I want to add raster images on Revit families.
    Means, place our own icon or image(.jpg/.ico/.bmp) on Revit .rfa files on thumbinal in C#.net
    please help me out.

  25. Dear Mallikarjuna,
    The only official way that I know of to set the preview image is described here:
    http://thebuildingcoder.typepad.com/blog/2011/05/set-preview-image.html
    You can also try directly manipulating the appropriate OLE Open Document Storage stream:
    http://thebuildingcoder.typepad.com/blog/2010/06/open-revit-ole-storage.html
    Please let me know how it works out.
    Cheers, Jeremy.

  26. Mallikarjuna Avatar
    Mallikarjuna

    Dear sir,
    I want to add image or icon in Revit 3D view through programmatically in C#.net
    Please help me.
    Thankyou,
    Mallikarjuna

  27. Mallikarjuna Avatar
    Mallikarjuna

    Dear sir,
    I want to add image or icon in Revit 3D view through programmatically in C#.net
    Please help me.
    Thankyou,
    Mallikarjuna

  28. Mallikarjuna Avatar
    Mallikarjuna

    Dear sir,
    Please give me idea how to add ‘Decal’ images on revit families thorugh C#.net
    Thankyou,
    Mallikarjuna

  29. Dear Mallikarjuna,
    I see that you asked the same question in five different places, to me, Saikat, Mikako, and Xiaodong.
    That is a bit much, really. Please avoid that in the future.
    Anyway, as Saikat said:
    It does not seem possible to add an image in a 3D view in Revit using the Revit User Interface itself. The image button appears disabled when the active view is a 3D view. Therefore, it is probably not possible to insert an image in a 3D view using the API either. If the UI does not support it, in most cases, the API does not either.
    Cheers, Jeremy.

  30. Dear Mallikarjuna,
    I see that you asked the same question in five different places, to me, Saikat, Mikako, and Xiaodong.
    That is a bit much, really. Please avoid that in the future.
    Anyway, as Saikat said:
    It does not seem possible to add an image in a 3D view in Revit using the Revit User Interface itself. The image button appears disabled when the active view is a 3D view. Therefore, it is probably not possible to insert an image in a 3D view using the API either. If the UI does not support it, in most cases, the API does not either.
    Cheers, Jeremy.

  31. Mallikarjuna Avatar
    Mallikarjuna

    Dear Sir,
    ThankYou for your reply.
    I need this one as an urgent basis. So, i have asked in different places, sorry.
    Please give me any idea, is any other way to finish this requirement.

  32. Dear Mallikarjuna,
    I do not have any other idea.
    The only further thing I can provide is the standard answer to almost all Revit API questions: show how you achieve a task manually in the user interface, and we can mostly find a way to drive it programmatically.
    Cheers, Jeremy.

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading