sketchucation logo sketchucation
    • Login
    ⚠️ Attention | Having issues with Sketchucation Tools 5? Report Here

    Ruby console remember size between calls and sessions

    Scheduled Pinned Locked Moved SketchUp Feature Requests
    sketchup
    11 Posts 4 Posters 926 Views 4 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      The Console's XY screen location is remembered in the registry BUT it seems it size is not...

      TIG

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        It remembers its size on my machine. I run Vista. I also have Jim's Ruby developer plugin installed, but I don't use it really since it might have some Vista 64bit compatibility issues.

        Chris

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

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jim
          last edited by

          Yeah, that's one reason I made the ruby toolbar. It remembers the position and size of the Console.

          Windows only.

          Hi

          1 Reply Last reply Reply Quote 0
          • Chris FullmerC Offline
            Chris Fullmer
            last edited by

            Aha! There you have it, it must be that that part of the script is working well (resetting it - emptying it does not work on my Vista machine though I think. I'll check again later).

            Chris

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

            1 Reply Last reply Reply Quote 0
            • H Offline
              HPW
              last edited by

              Hello Jim,

              Just download your ruby-toolbar and I will give it a try tomorrow.

              Is such added logik also possible for the DC 'Components options' window?

              Hans-Peter

              1 Reply Last reply Reply Quote 0
              • J Offline
                Jim
                last edited by

                @hpw said:

                Hello Jim,

                Just download your ruby-toolbar and I will give it a try tomorrow.

                Is such added logik also possible for the DC 'Components options' window?

                Hans-Peter

                Well maybe, but I thought there was options in the DC Attributes Dialog to set the DC Options Dialog size. I can't look at the moment.

                Hi

                1 Reply Last reply Reply Quote 0
                • Chris FullmerC Offline
                  Chris Fullmer
                  last edited by

                  Your memmory serves you well Jim. There is in fact width and height controls built into DC's that control their component Options window. In the Component Attributes window, click on "Add attribute" and the options are at the bottom. Dialogwidth and Dialogheight.

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

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    HPW
                    last edited by

                    Chris,

                    Can you show the attributes (Dialogwidth and Dialogheight) looks in the dictionary? (I do not have SU 7 Pro yet)

                    Using this snippet:

                    Sketchup.active_model.selection[0].definition.attribute_dictionary('dynamic_attributes').each_pair { |k,v| puts k + '; ' + v.to_s }
                    

                    from here:
                    http://www.sketchucation.com/forums/scf/viewtopic.php?f=289&t=18275

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      HPW
                      last edited by

                      Found it by try_and_error:

                        sel_def.set_attribute 'dynamic_attributes', 'dialogwidth', '460'
                        sel_def.set_attribute 'dynamic_attributes', 'dialogheight', '900'
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • Chris FullmerC Offline
                        Chris Fullmer
                        last edited by

                        Sure, this is from a simple dynamic component, that only has dialog height and widtrh asigned to it.

                        _dialogheight_label: DialogHeight
                        _dialogwidth_label: DialogWidth
                        _formatversion: 1.0
                        _has_movetool_behaviors: 0.0
                        _lastmodified: 2009-05-06 22:59
                        _lengthunits: INCHES
                        _name: Component#1
                        dialogheight: 560
                        dialogwidth: 345
                        nil

                        Hope that helps,

                        Chris

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

                        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