sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Edit Flag plugin need update for sketchup 2021

    Scheduled Pinned Locked Moved Plugins
    6 Posts 3 Posters 10.4k 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.
    • gudio83G Offline
      gudio83
      last edited by

      Hello everybody,
      Does anybody have any contacts with the Author of Edit Flag plugin - AshScott?
      The plugin seems to didn't work with SU2021, but it is very useful for construction projects.

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        I don't think the author has been around for many years...

        However, the error relates to one line of code - where newer Ruby versions are less forgiving about messing about with 'frozen-strings' etc...

        Edit this file using a plain-text editor like Notepad++ or TextWrangler.

        ../Plugins/Coastal_Concepts_EditFlag/EditFlag.rb

        Find line #19 which reads:

        LOAD_TAG = Module.nesting[0].name << ';' << File.basename(__FILE__)
        

        Edit it to read:

        LOAD_TAG = Module.nesting[0].name.dup << ';' << File.basename(__FILE__)
        

        Save the edited RB file and restart SketchUp...

        Now with the additional .dup code you are working with a copy of the Module's name, not the name itself ! It now adds menu items etc as intended...

        TIG

        1 Reply Last reply Reply Quote 0
        • gudio83G Offline
          gudio83
          last edited by

          Tnanks TIG. Your solution working fine

          1 Reply Last reply Reply Quote 0
          • P Offline
            pipinek
            last edited by

            @gudio83 said:

            Tnanks TIG. Your solution working fine

            Greetings,

            How about SU 2022. I have changed the code as above. Alas it does not function with the 2022 version.
            Is there any fix for it?

            Thank you in advance.

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              It works fine for me in v2022, with the simple .dup edit...
              Are you following the instructions exactly - e.g. editing the correct file, then saving it and restarting SketchUp.
              Its entry is in the Edit menu and should be 'ticked'...

              TIG

              1 Reply Last reply Reply Quote 0
              • P Offline
                pipinek
                last edited by

                @tig said:

                It works fine for me in v2022, with the simple .dup edit...
                Are you following the instructions exactly - e.g. editing the correct file, then saving it and restarting SketchUp.
                Its entry is in the Edit menu and should be 'ticked'...

                Thank you, Indeed it works. I've made a mistake, mea culpa.

                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