sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Attributes and dictionaries

    Scheduled Pinned Locked Moved Plugins
    7 Posts 3 Posters 297 Views 3 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.
    • E Offline
      ezt
      last edited by

      I have a question about using attribute dictionaries/attributes.

      I have need to add an attribute dictionary to components, to also add attributes to the dictionary (for example a product code, description, price etc,) and save the changes with the component. I then need to have the facilities to edit these attributes when the components are added to a models.

      I do not want to use Dynamic components for this (editing of these is not available in SU Free).

      I found a script to add the dictionary and attributes to components, and save them with the component. But I have not been able to find any which allows easy editing of the attributes when the component is later added to a model

      Does anyone know of a script which will allow the modifying of attributes (preferably through a dialogue box) for a selected component, and which allows for the change to be saved with the component if required?

      1 Reply Last reply Reply Quote 0
      • E Offline
        ezt
        last edited by

        Thanks kyyu

        I have tried that one, but it does not save the added attributes with the component, and the 'Get attributes' does not allow changes.

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

          I use this plugin from smustard's site: http://www.smustard.com/script/Attributes

          You can use the right click > Attributes > "Get Attributes" feature and just type in a new value. There is a more fancy one, that uses dialog box. But this one, I've found much simpler to use and has just the single rb file.

          I'm not sure about saving the attribute with the component? I did a quick test and I couldn't get an imported component to retain it's attribute.

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

            What's the plugin that allow attibutes to be save with the component?

            'Get attributes' does allow changes. I've used it alot in the past.

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

              Try this plugin:

              http://code.google.com/p/sketchupattributemanager/

              Hi

              1 Reply Last reply Reply Quote 0
              • E Offline
                ezt
                last edited by

                kyyu:

                The plugin that saves attribute dictionaries and attributes is the one Jim posted.

                Jim:

                I have this and use it to create and save the attribute dictionaries/attributes.

                What I am after is a simplified version of this which only shows the attributes in a particular dictionary in a simpler gui, and allows them to be modified.

                If I new how to code I could probably create a modified version of it - but I know nothing about coding. 😞

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

                  I see the difference. The 2nd plugin applies and reads attibutes to the component definition. Where as the 1st plugin, uses the component instance. It works fine for edges, faces, groups. But for components, they can't see the attibutes set by the other. Also, I don't know if it matters. But if you are changing the definition of a component, then the change is not unique.

                  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