Edit Flag plugin need update for sketchup 2021
-
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
-
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... -
Tnanks TIG. Your solution working fine
-
@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.
-
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 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.
Advertisement