Announcement

Collapse
No announcement yet.

coding the app

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    coding the app

    Hi boys and girls,

    This thread is dedicated to coding the different apps. So if you have apps that can be added, please post the code here. Anyone with questions about the coding or wanting apps to be added, please post the codes here.

    For starters I'll be working on a Win7/RAC2012 app. Since the possibility to create user-defined Ribbon Panels is introduced in 2012. The OS is only important for the placement of the files on installation. As far as I know Revit Addons aren't OS-sensitive.
    Martijn de Riet
    Professional Revit Consultant | Revit API Developer
    MdR Advies
    Planta1 Revit Online Consulting

    #2
    Hi Martijn, I have been doing some testing to demonstrate the ideas I was talking to you about (with the individual commands loaded via a separate xml). i should be able to post a working sample in the next day or two.
    http://krispcad.blogspot.com/

    Comment


      #3
      Great thanks! Would love to pick your brains about this, cause I'm stuck bigtime...
      Martijn de Riet
      Professional Revit Consultant | Revit API Developer
      MdR Advies
      Planta1 Revit Online Consulting

      Comment


        #4
        Just to whet your appetite, see screenshot of the "RFO Ribbon" and "About" box, the "KrispCAD" panel is loaded from a separate xml file... will try to upload the source tonight
        Attached Files
        http://krispcad.blogspot.com/

        Comment


          #5
          oooo .. sexy ;-)
          bim cad tech com

          Comment


            #6
            Originally posted by krispy5 View Post
            Just to whet your appetite, see screenshot of the "RFO Ribbon" and "About" box, the "KrispCAD" panel is loaded from a separate xml file... will try to upload the source tonight
            This looks awesome!!! I really would like to see how this works. Hope to see this coming soon. It's my wife's birthday tomorrow so I won't be able to do much, but maybe I can have a peak tomorrow night...
            Martijn de Riet
            Professional Revit Consultant | Revit API Developer
            MdR Advies
            Planta1 Revit Online Consulting

            Comment


              #7
              Hi All,

              I have attached the RibbonAddin files and addin manifest file so you can start testing (everything is working on my PC).

              To install, unpack the "RfoRibbon.zip" file to a location on your computer (for example: "C:\RFO_Ribbon") and keep all those files together as is, then unzip the "RFO_RibbonAddins.zip" file to the Revit's "Addin" folder (this zip file only contains the addin manifest file) once you have unzipped the addin manifest you will need to edit it in notepad to include the location of the first lot of files you unpacked (just find the line "<Assembly>RibbonAddins.dll</Assembly>" and enter the path before, for example: "<Assembly>C:\RFO_Ribbon\RibbonAddins.dll</Assembly>".

              FYI the default location of the Revit "Addins" folder on Vista is:
              C:\Users\%username%\AppData\Roaming\Autodesk\REVIT \Addins\2012
              and on XP is:
              C:\Documents and Settings\%username%\Application Data\Autodesk\REVIT\Addins\2012

              I'll upload the source code in a separate reply.
              Attached Files
              http://krispcad.blogspot.com/

              Comment


                #8
                As promised, attached is the source code.
                Attached Files
                http://krispcad.blogspot.com/

                Comment


                  #9
                  Manual

                  As my part started tiny, tiny it will continue.
                  Since I have heard some requests for an explanation of how it works, here is a tiny manual.
                  This utility does the following:
                  1. Searches all family instances for the existence of the following parameters that must be of the type Yes/No: "Mirrored", "HandFlipped", "FacingFlipped" and "Pinned".
                    Then transfers the corresponding property that is available in the API to the instance parameter.
                  2. Finds out if a shared family is hosted in another family. If that is the case, and if there is a parameter called “Super” of type text, places the Mark parameter of the parent family in that “Super” parameter.

                  The category is not important to the utility, since these properties are common to all.
                  The parameters are not required to be shared.
                  Note that the parameter names must be exactly the same (including upper case).
                  Probably integrating a help option in the addin is too much for now, but a nice pdf along with the zip file could be easily done.
                  Last edited by feio; May 19, 2011, 08:51 PM.
                  Gonçalo Feio
                  "Ignorance, ignorance, sheer ignorance - you know there's no confidence to equal it. It's only when you know something about a profession, I think, that you're timid and careful." George Orson Welles

                  Comment


                    #10
                    Originally posted by feio View Post
                    As my part started tiny, tiny it will continue.
                    Since I have heard some requests for an explanation of how it works, here is a tiny manual.


                    Probably integrating a help option in the addin is too much for now, but a nice pdf along with the zip file could be easily done.
                    I do like the manual idea though. Will be looking into that.
                    Martijn de Riet
                    Professional Revit Consultant | Revit API Developer
                    MdR Advies
                    Planta1 Revit Online Consulting

                    Comment

                    Related Topics

                    Collapse

                    Working...
                    X