Announcement

Collapse
No announcement yet.

TransactionMode.Manual Question

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

    TransactionMode.Manual Question

    I'm working through the Developer Guide samples, and I've run into a question I want to pass by you guys.

    I was able to get the Hello World sample to work without opening a project by changing the TransactionMode.Automatic to TransactionMode.Manual. However, now that I've created a PushButton for it, I can only run the Command through the PushButton after a program is open. The HellowWorld command still loads under External Tools and still runs without opening a project, but the PushButton will not operate without a project already being opened.

    Is this because of the way IExternalApplication works or am I missing something about the TransactionMode.Manual directive?

    Thanks,

    .Carl
    .Carl - Architect, BIM Manager, Father, Husband, Coach, Player, Disc Tosser, Driver... not necessarily in that order.

    Free Revit Chat | Cre8iveThings Blog | Live Architecture! | Past Live Architecture!

    #2
    I believe (with my very limited knowledge) that this is default behaviour. You cannot execute any (or very very limited) command when no project is opened. In fact, you cannot even create a new project without already having a blank project opened.
    Martijn de Riet
    Professional Revit Consultant | Revit API Developer
    MdR Advies
    Planta1 Revit Online Consulting

    Comment


      #3
      Well, I'm able to run the HelloWorld command without a project open, with only the Recent Files page showing.

      It was with TransactionMode.Automatic set that I could not do this without a project open. I'm just wondering if there is a way for Applications to be run without a project open as well.
      .Carl - Architect, BIM Manager, Father, Husband, Coach, Player, Disc Tosser, Driver... not necessarily in that order.

      Free Revit Chat | Cre8iveThings Blog | Live Architecture! | Past Live Architecture!

      Comment


        #4
        Nope, that's what I meant. The HelloWorld doesn't really "do" anything in Revit. Just pops up a screen. Actual "Revit-commands" cannot be done without a project opened.
        Martijn de Riet
        Professional Revit Consultant | Revit API Developer
        MdR Advies
        Planta1 Revit Online Consulting

        Comment


          #5
          All the new Ribbon Button that I added does is run the same HelloWorld command that runs without a project open. So why does it work from Add-Ins > External Tools > HllowWorld but not from Add-Ins > HelloWorld (PushButton I've added)?
          .Carl - Architect, BIM Manager, Father, Husband, Coach, Player, Disc Tosser, Driver... not necessarily in that order.

          Free Revit Chat | Cre8iveThings Blog | Live Architecture! | Past Live Architecture!

          Comment


            #6
            Sorry dude, can't help you with that. I don't fully understand how it works either. I just know that every time I want to do something without an active project I am drawing dead.
            Martijn de Riet
            Professional Revit Consultant | Revit API Developer
            MdR Advies
            Planta1 Revit Online Consulting

            Comment

            Related Topics

            Collapse

            Working...
            X