I’ve created a plugin that creates a face and a path that I want to extrude the face along using the Eneroth Upright Extruder extension. I can use the extension easily enough from the Sketchup application, but I want to call the
self.extrude(extrusion, path, vectorUpright=nil)
method defined in the Eneroth Upright Extruder module(module Ene_uprightExtruder). I guessed that I could do something like this:
for extension in Sketchup.extensions if "Eneroth Upright Extruder" == extension.name extension.extrude(, ) end end
but, I get the error
> Error: #<NoMethodError: undefined method `extrude' for #<SketchupExtension:0x7a2176c>>
when I execute my script from the Sketchup plugins menu. So SketchupExtension is not an instance of Ene_uprightExtruder. How do I get the instance, so that I can call the extrude method?