Best practices for creating an rbe
-
I've been trying to get a plugin signed and running into some issues which seem to be related with require... I get these errors...
@unknownuser said:Error: #<LoadError: cannot load such file
.I found this post https://forums.sketchup.com/t/cant-load-required-rb/42755/3 where Dan uploaded some templates but I'm not sure how the
@unknownuser said:MultiClass_MultiFile.zip
works. Does anyone have a sample code that I can look at or can someone please explain how those files should be structured and how they work together?Frank
-
If you are having issues with Trimble's signing portal, then the best place to ask is:
-
SketchUp forums: Developers > Extension Warehouse for Developers
.. or the main developers forum:
ThomThom And Julia monitor those forum categories and should be quick to answer (if the question and answer has not already been posted previously, which might often be the case.)
Also see newer help pages:
That said, the Ruby core
Kernel#require
method cannot load scrambled (rbs
) or encrypted (rbe
) files.You must use the API's
Sketchup::require
module method andyou need to omit the file extension (.rb
,.rbs
or.rbe
) when you call theSketchupExtension::new
class constructor in your extension registrar script. -
-
Thanks for the info Dan... I'll check out those forums. I wasn't even aware that the Sketchup API had it's own require method and it explains why I'm having problems. I guess I have some more learning and reading to do!
-
Where can I find info and/or examples on how to set this part of the loader file? I'm searching but not finding anything...
require "Author_MultiClassPlugin/MultiClassPlugin_SharedConstants.rb"
include SharedConstants # mixin the constant module
And this from the SharedConstants file?
SOME_SEARCH_PATTERN ||= /^Author/
Thanks
Advertisement