Edit Flag plugin need update for sketchup 2021

Edit Flag plugin need update for sketchup 2021

Postby gudio83 » Mon Dec 28, 2020 7:46 pm

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
0
User avatar
gudio83 
 

Re: Edit Flag plugin need update for sketchup 2021

Postby TIG » Tue Dec 29, 2020 1:41 pm

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:

Code: Select all
LOAD_TAG = Module.nesting[0].name << ':' << File.basename(__FILE__)


Edit it to read:

Code: Select all
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...
1
TIG
User avatar
TIG 
Global Moderator
 

Re: Edit Flag plugin need update for sketchup 2021

Postby gudio83 » Mon Jan 04, 2021 11:55 am

Tnanks TIG. Your solution working fine
0
User avatar
gudio83 
 

Re: Edit Flag plugin need update for sketchup 2021

Postby pipinek » Wed May 25, 2022 12:19 am

gudio83 wrote: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.
0

pipinek 
Premium Member
Premium Member
 

Re: Edit Flag plugin need update for sketchup 2021

Postby TIG » Wed May 25, 2022 11:42 am

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'...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: Edit Flag plugin need update for sketchup 2021

Postby pipinek » Wed May 25, 2022 2:56 pm

TIG wrote: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.
0

pipinek 
Premium Member
Premium Member
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: fredo6, interiorsdefined, lulubunny13 and 11 guests