• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

New API doc - typos and questions

Scheduled Pinned Locked Moved Developers' Forum
370 Posts 35 Posters 256.4k Views
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.
  • J Offline
    Jim
    last edited by 10 Apr 2009, 20:27

    Any ideas about a way to mark these errors as they are fixed?

    Hi

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 11 Apr 2009, 10:19

      We could ask Coen to have a strike-through BBC tag. [deleted] or something...
      Or, put a big fat FIXED in bold green. Might be easier.

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • A Offline
        avariant
        last edited by 13 Apr 2009, 14:46

        From Image.explode:

        entitiesarray     an Array object of entities if successful
        

        which I interpret as the face and edges created in the explosion. However, the result from my testing always returns an empty array.

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 13 Apr 2009, 14:57

          I see that behaviour as well: http://www.sketchucation.com/forums/scf/viewtopic.php?f=11&t=17150&hilit=+explode

          Thomas Thomassen — SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • C Offline
            Chris Fullmer
            last edited by 14 Apr 2009, 07:39

            http://code.google.com/apis/sketchup/docs/ourdoc/polygonmesh.html#add_polygon

            add polygon detail just repeats the add_point example.

            Lately you've been tan, suspicious for the winter.
            All my Plugins I've written

            1 Reply Last reply Reply Quote 0
            • S Offline
              scottlininger
              last edited by 14 Apr 2009, 22:32

              @thomthom said:

              Seems that InstanceObserver.onClose is dead as well. http://code.google.com/apis/sketchup/docs/ourdoc/instanceobserver.html#onClose
              But onOpen works.

              Thomas,

              I'm about to push an update with all of the recent changes above. This one puzzled me, though. The ToolsObserver examples work fine for me on the onOpen and onClose. Can you clarify what "dead as well" means? 😄

              @unknownuser said:

              Does this list work 'across-platforms' - my understanding was that PCs and Macs differ ?

              Tig, these action codes only work on the PC, but I still think I'll add them to the docs. There are some cool things in there that PC-only shops might need.

              Thanks, guys! New update should be live in the next day or so.

              • Scott Lininger
                SketchUp Software Engineer
                Have you visited the Ruby API Docs?
              1 Reply Last reply Reply Quote 0
              • S Offline
                scottlininger
                last edited by 14 Apr 2009, 22:34

                @thomthom said:

                We could ask Coen to have a strike-through BBC tag. [deleted] or something...
                Or, put a big fat FIXED in bold green. Might be easier.

                Jim, is there a way that I could be granted edit rights just to this thread? Then I could add a FIXED note inside the reports as I correct them?

                • Scott Lininger
                  SketchUp Software Engineer
                  Have you visited the Ruby API Docs?
                1 Reply Last reply Reply Quote 0
                • T Offline
                  thomthom
                  last edited by 14 Apr 2009, 22:41

                  @unknownuser said:

                  I'm about to push an update with all of the recent changes above. This one puzzled me, though. The ToolsObserver examples work fine for me on the onOpen and onClose. Can you clarify what "dead as well" means? 😄

                  Dead as in: I never see it trigger.

                  Thomas Thomassen — SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thomthom
                    last edited by 14 Apr 2009, 22:43

                    ToolObservers? How are they related to onClose and onOpen?

                    Thomas Thomassen — SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      remus
                      last edited by 14 Apr 2009, 23:02

                      @unknownuser said:

                      Jim, is there a way that I could be granted edit rights just to this thread? Then I could add a FIXED note inside the reports as I correct them?

                      I'll ask gai if he can make you a mod for the ruby forum 👍

                      http://remusrendering.wordpress.com/

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        scottlininger
                        last edited by 14 Apr 2009, 23:20

                        @thomthom said:

                        ToolObservers? How are they related to onClose and onOpen?

                        I meant to say, InstanceObservers. 😛

                        In any case, they fire fine for me.

                        • Scott Lininger
                          SketchUp Software Engineer
                          Have you visited the Ruby API Docs?
                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          Jim
                          last edited by 14 Apr 2009, 23:57

                          @remus said:

                          @unknownuser said:

                          Jim, is there a way that I could be granted edit rights just to this thread? Then I could add a FIXED note inside the reports as I correct them?

                          I'll ask gai if he can make you a mod for the ruby forum 👍

                          Scott, there's no way to give edit-rights on a single topic. So you get edit rights to the whole Ruby Forum.

                          If you have a list of changes, we can take care of marking them fixed. I'd hate to see you spend time doing it if you have more important work to do.

                          Hi

                          1 Reply Last reply Reply Quote 0
                          • GaieusG Offline
                            Gaieus
                            last edited by 15 Apr 2009, 00:09

                            Hi Scott, I have sent you a PM, too, about it. The mods have also be informed to welcome you in the team.
                            😆

                            Gai...

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              thomthom
                              last edited by 15 Apr 2009, 06:36

                              @unknownuser said:

                              @thomthom said:

                              ToolObservers? How are they related to onClose and onOpen?

                              I meant to say, InstanceObservers. 😛

                              In any case, they fire fine for me.

                              Hmm... When I tried to implement it in my plugin the onClose never fired. I also tried Jim's observer test script: http://sketchuptips.blogspot.com/2008/03/plugin-oberver-tests.html - and that never fired either. Could you post a working sample where onClose fires? (The onOpen always works though.)

                              Thomas Thomassen — SketchUp Monkey & Coding addict
                              List of my plugins and link to the CookieWare fund

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                scottlininger
                                last edited by 15 Apr 2009, 17:20

                                @thomthom said:

                                Could you post a working sample where onClose fires?

                                Give this a go... Could be that we're seeing a sneaky bug...

                                class MyInstanceObserver < Sketchup;;InstanceObserver
                                   def onOpen(instance)
                                     UI.messagebox("onOpen; " + instance.to_s)
                                   end
                                
                                   def onClose(instance)
                                     UI.messagebox("onClose; " + instance.to_s)
                                   end
                                end
                                
                                model = Sketchup.active_model
                                model.definitions[0].instances[0].add_observer(MyInstanceObserver.new)
                                
                                • Scott Lininger
                                  SketchUp Software Engineer
                                  Have you visited the Ruby API Docs?
                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  thomthom
                                  last edited by 15 Apr 2009, 17:47

                                  Nopes. Doesn't work.

                                  Thomas Thomassen — SketchUp Monkey & Coding addict
                                  List of my plugins and link to the CookieWare fund

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    Jim
                                    last edited by 15 Apr 2009, 20:03

                                    Works for me...

                                    Hi

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      thomthom
                                      last edited by 15 Apr 2009, 20:08

                                      Scott just found out that it works if the script loads when SU loads. But if you put it a subfolder for instance, and then manually load it, it won't work.
                                      Jim's Observer tests never fire the event in SU7. However, in SU6 it works fine.

                                      Thomas Thomassen — SketchUp Monkey & Coding addict
                                      List of my plugins and link to the CookieWare fund

                                      1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        Jim
                                        last edited by 15 Apr 2009, 21:11

                                        Just wondering if you have Dynamic Components on, and what happens if you turn them off?

                                        Hi

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          thomthom
                                          last edited by 15 Apr 2009, 21:32

                                          @jim said:

                                          Just wondering if you have Dynamic Components on, and what happens if you turn them off?

                                          Well I'll be! After disabling DCs the onClose even works!

                                          btw, the DefinitionObserver works in SU6. But not SU7. Noticed that when I tested this observer in SU6.

                                          Thomas Thomassen — SketchUp Monkey & Coding addict
                                          List of my plugins and link to the CookieWare fund

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 18
                                          • 19
                                          • 4 / 19
                                          4 / 19
                                          • First post
                                            61/370
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement