sketchucation logo sketchucation
    • Login
    šŸ¤‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Start_operation and commit_operation issue

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 2 Posters 591 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      Garry K
      last edited by

      I've run into a wierd situation where the status from start_operation and commit_operation is good yet the first time through the undo doesn't behave as expected.

      Instead of undoing all the various operations - the undo is 1 step at a time - just as if there wasn't a start and commit.

      The second time through with the plugin and it works as expected.

      Too much code to show. Question is if anyone has run into this kind of thing.

      1 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by

        there are reports of this with embedded operations...

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 Reply Last reply Reply Quote 0
        • G Offline
          Garry K
          last edited by

          I've read lots of reports about start_operation and commit.
          But nothing about specifically first time through failure.

          Maybe it is how I'm searching history.

          1 Reply Last reply Reply Quote 0
          • D Offline
            driven
            last edited by

            It may not be your issue, but the most resent I know is found on the dark side....

            Link Preview Image
            Difficulties wrapping the operations of a plugin into one undo

            I’ve written a plugin which is based on the parametric class. My plugin creates two classes depending on the parametric class. parametric’s create and edit methods have start_operation/commit_operation functionality buil…

            favicon

            SketchUp Community (forums.sketchup.com)

            john

            learn from the mistakes of others, you may not live long enough to make them all yourself...

            1 Reply Last reply Reply Quote 0
            • G Offline
              Garry K
              last edited by

              Sorry,

              Start and commit are not nested. A few lines of debug code proves that.
              Still at a loss.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement