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

Author/credits API ?

Scheduled Pinned Locked Moved Developers' Forum
13 Posts 4 Posters 871 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.
  • T Offline
    thomthom
    last edited by 2 Mar 2011, 16:16

    😲
    They protected the attribute??

    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
      TIG Moderator
      last edited by 2 Mar 2011, 16:19

      Are they saved as attributes ?
      The bold ones are relevant ?

      Sketchup.active_model.attribute_dictionaries.each{|dict|dict.each_pair{|k,v|puts dict.name+" = "+k+", "+v.to_s}}

      GeoReference = GeoReferenceNorthAngle, 359.856819594067
      GeoReference = Latitude, 49.2179779934131
      GeoReference = LocationSource, Google Earth
      GeoReference = Longitude, -122.810932099834
      GeoReference = ModelTranslationX, -20227104.4083539
      GeoReference = ModelTranslationY, -214634055.964147
      GeoReference = ModelTranslationZ, -39.3700760693234
      GeoReference = TimeStamp, 1277506001
      GeoReference = UsesGeoReferencing, true
      GeoReference = ZValueCentered, -39.3700760693234
      GSU_ContributorsInfo = LastModifiedByKey,
      GSU_ContributorsInfo = NicknamesKey, SnowTiger
      GSU_ContributorsInfo = UserIdsKey, 1379538105755232331646158
      GSU_ContributorsInfo = VersionKey, 1000

      temp = temp, 0
      TempShadowInfo = City, N/A
      TempShadowInfo = Country, N/A
      TempShadowInfo = Dark, 20
      TempShadowInfo = DaylightSavings, false
      TempShadowInfo = DisplayNorth, false
      TempShadowInfo = DisplayOnAllFaces, true
      TempShadowInfo = DisplayOnGroundPlane, true
      TempShadowInfo = DisplayShadows, false
      TempShadowInfo = EdgesCastShadows, false
      TempShadowInfo = Latitude, 49.2179779934131
      TempShadowInfo = Light, 80
      TempShadowInfo = Longitude, -122.810932099834
      TempShadowInfo = NorthAngle, 359.856819594067
      TempShadowInfo = TZOffset, -9.0
      TempShadowInfo = UseSunForAllShading, false
      3DWarehouse = ModelID, 51672e6c82c9025a6ec596733cc71eed
      2Dtools = z, 0"

      TIG

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 2 Mar 2011, 16:21

        @thomthom said:

        :shock:
        They protected the attribute??

        Looks like it ? πŸ˜•

        TIG

        1 Reply Last reply Reply Quote 0
        • T Offline
          tbd
          last edited by 2 Mar 2011, 16:31

          Dan: batch editing lots of files

          SketchUp Ruby Consultant | Podium 1.x developer
          http://plugins.ro

          1 Reply Last reply Reply Quote 0
          • D Offline
            Dan Rathbun
            last edited by 2 Mar 2011, 16:32

            Yes but it's not something I wish to post publically. (It involves the Google account login, and a person's proprietary claim on their work?)

            EDIT: .. well gee you guys just publish your IDs why dont ya?

            Why would you want to change these settings?

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • D Offline
              Dan Rathbun
              last edited by 2 Mar 2011, 16:34

              @unknownuser said:

              Dan: batch editing lots of files

              Hmmm... if it is not yet set.. you should be able to set it. Enter a feature request?

              I'm not here much anymore.

              1 Reply Last reply Reply Quote 0
              • D Offline
                Dan Rathbun
                last edited by 2 Mar 2011, 16:37

                <span class="syntaxdefault">attdicts</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">delete</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'GSU_ContributorsInfo'</span><span class="syntaxkeyword">)<br /></span><span class="syntaxcomment">#<Sketchup;;AttributeDictionaries;0x5f39760><br /></span><span class="syntaxdefault">attdicts</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">count<br />0</span>
                

                I'm not here much anymore.

                1 Reply Last reply Reply Quote 0
                • T Offline
                  tbd
                  last edited by 2 Mar 2011, 16:45

                  yeah. that removes the credits. but the idea is to add them πŸ˜‰ (still the same error as when trying to modify them)

                  so it is not possible in current version to add credits programmatically

                  SketchUp Ruby Consultant | Podium 1.x developer
                  http://plugins.ro

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Dan Rathbun
                    last edited by 3 Mar 2011, 05:55

                    I was thinking maybe you could create a dictionary with a temp name, delete the old one, then rename the new one, but ... I don't see a rename() or name= method for dictionaries.

                    I'm not here much anymore.

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      TIG Moderator
                      last edited by 3 Mar 2011, 08:39

                      There is no 'name=' option for dictionaries - you have to clone the whole thing with a new name and delete the original.

                      The core-code magically prevents the specific dictionary name [GSU_ContributorsInfo] from being 'made' or edited by the standard users [although we have seen that 'deleting' it is possible - but I'd think that's probably an oversight by Google] - BUT of course it IS editable somehow... because Google can do it !

                      TIG

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

                      Advertisement