sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Tool Scale does not update dictionary. WHY? is Bug?

    Scheduled Pinned Locked Moved SketchUp Bug Reporting
    sketchup
    1 Posts 1 Posters 1.1k Views 1 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.
    • romuloigorR Offline
      romuloigor
      last edited by

      Tool Scale does (
      http://sketchup.google.com/crimages/mod-ToolScaleLarge.png
      ) not update dictionary

      1 - Create a Dynamic Component "CUBE".
      2 - Update LenX value and Click "Apply" Button

      Result: Component set new value and Dictionary "dynamic_attributes" is updated.

      1 - Create a Dynamic Component "CUBE".
      2 - (
      http://sketchup.google.com/crimages/mod-ToolScaleLarge.png
      ) Tool Scale Component "CUBE" and Not Click in "Apply" Button

      Result: Component set new value and Dictionary "dynamic_attributes" is NOT updated. WHY?, is Bug?

      I get source code of Apply Button in "C:\Program Files\Google\Google SketchUp 8\Tools\DynamicComponents\js\configurator.js" line 389

      /**
       * Responds to requests (usually initiated via the UI) to apply any changes
       * made to the configuration panel so they appear in SketchUp.
       */
      cfg.doApply = function() {
        var key;
        var parts;
        var entityID;
        var attribute;
        var value;
        var noRedraw;
        var attributeCount = 0;
        var changes;
        var elem;
        var name;
      
        // Current field isn't always picked up if the user didn't tab out but
        // instead just hit return...so grab its value.
        if (su.isValid(elem = document.activeElement)) {
          name = elem.getAttribute('id') || elem.getAttribute('name');
          if (su.notEmpty(name) && (name != 'applyButton')) {
            // Force the blur of the currently selected element to ensure that
            // storeChanges for that value is fired.
            elem.blur();
          }
        }
      
        // If the changed value list doesn't have values then we can simply return.
        if (su.isEmpty(su.getKeys(cfg.changedValues))) {
          return;
        }
      
        // The changed values hash can carry the data to be serialized for
        // transmission over the bridge, we just need to include the entities.
        comp.pushAttributeSet(cfg.entityIds, cfg.changedValues);
        cfg.changedValues = {};
      
      };
      
      

      ![Create a Component "CUBE"](/uploads/imported_attachments/Lcr8_Scale_Bug_01.png "Create a Component "CUBE"")


      ![Update LenX value and Click "Apply" Button](/uploads/imported_attachments/s8DL_Scale_Bug_02.png "Update LenX value and Click "Apply" Button")


      ![Tool Scale Component "CUBE" and Not Click in "Apply" Button](/uploads/imported_attachments/4S7p_Scale_Bug_03.png "Tool Scale Component "CUBE" and Not Click in "Apply" Button")


      I get source code of Apply Button

      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