Unable to use plugin point.rb
-
This is the message I receive. Can anyone help? Or offer another way to draw points in SketchUp?
Thanks!
Jack
Error Loading File point.rb /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/point.rb;41; parse error, unexpected ',', expecting kEND Sketchup;;set_status_text ("Specify first Point;"), SB_PROMPT ^ /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/point.rb;83; parse error, unexpected ',', expecting kEND Sketchup;;set_status_text ("Click for next point;"), SB_PROMPT ^ /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/point.rb;84; parse error, unexpected ',', expecting kEND Sketchup;;set_status_text ("Length"), SB_VCB_LABEL ^
-
Where did you get
point.rb
from ? Probably from the 'crai Depot' - which has the older AND newer versions ?
Your version is about 4 years old and therefore incompatible with recent versions of Ruby.
From just the error message I can see that
Sketchup::set_status_text ("Specify first Point:"), SB_PROMPT
will cause issues with all of the latest versions of Ruby, because parenthesized arguments must ALL be inside the () AND there should be no space after the calling method.
Whereas
Sketchup::set_status_text("Specify first Point:", SB_PROMPT)
would work.It's easily sorted...
If you look in the SCF 'Plugins Index' for the latest version of it [by the same author] http://forums.sketchucation.com/viewtopic.php?p=95648#p95648
this version will work OK... [I use it!]
Make sure you remove the older version because the files have different names and you don't want both of them to load and perhaps clash... -
Both EN and FR have been updated today.
Download them here: http://rhin.crai.archi.fr/rld/plugin_details.php?id=291 -
Didier
Wasn't the EN version already correct in the later version - you have [had?] two versions of the script by the same author [Matt666] just with different filenames/versions - one's syntax was right, whilst he earlier one was wrong ? ... The older 'point.rb' has no toolbar, while the current 'PointTool.rb' script comes zipped and does. -
Hi,
TIG you're right.
I updated the latest version (with toolbar) and also made the french version.
Regards,
Advertisement