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 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: Builder54, hhhle, yaspis3344 and 17 guests

Visit our sponsors: