sketchucation logo sketchucation
    • Login
    1. Home
    2. chowette
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    C
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 2
    • Groups 1

    chowette

    @chowette

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    chowette Unfollow Follow
    registered-users

    Latest posts made by chowette

    • RE: [Plugin][$] RoundCorner - v3.4a - 31 Mar 24

      @fredo6 said:

      I think on Linux, the problem may come from the order of loading.

      Yes this is the problem, if I run

      load "Fredo6_Roundcorner.rb"
      

      in the console, it runs ok.

      @fredo6 said:

      So the best is to delete the file Fredo6_Roundcorner.rb (and thus run without security mode).

      that does nothing; eg. no error, but no plugins loaded either.
      I have fixed it by requiring explicitly libFredo6 before using it.

      here is my Fredo6_Roundcorner.rb

      
      =begin
      #---------------------------------------------------------------------------------------------------------
      #*********************************************************************************************************
      # Copyright © 2015 Fredo6 - Designed and written August 2011 by Fredo6
      #
      # Permission to use this software for any purpose and without fee is hereby granted
      # Distribution of this software for commercial purpose is subject to;
      #  - the expressed, written consent of the author
      #  - the inclusion of the present copyright notice in all copies.
      
      # THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
      # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
      # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
      #-----------------------------------------------------------------------------
      # Description	;  Generic top loader for LibFredo6-compliant scripts.
      #
      # This file does checking on the environment for correct installation of LibFredo6 and the script itself
      # The file is identical for all my plugins relying on LibFredo6
      #*********************************************************************************************************
      #---------------------------------------------------------------------------------------------------------
      =end
      
      require 'sketchup.rb'
      require 'extensions.rb'
      require 'Fredo6_!LibFredo6.rb'  # explicit call to fix loading order under wine on linux
      
      module Fredo6
      
      if defined?(LibFredo6.top_load)
      	hsh_ext, plugin, ext = LibFredo6.top_load(__FILE__, true)
      	if hsh_ext && plugin && !ext
      		ext = SketchupExtension.new hsh_ext[;name], hsh_ext[;floader]
      		ext.creator = hsh_ext[;creator] 
      		ext.description = hsh_ext[;description] 
      		ext.version = hsh_ext[;version] 
      		ext.copyright = hsh_ext[;copyright] 	
      		status = Sketchup.register_extension ext, true
      		plugin.load_finalize ext
      	end	
      else	
      	UI.messagebox "You must install LibFredo6 version 6.9 or higher to run #{File.basename(__FILE__, ".rb")}"
      end
      
      end	#module Fredo6
      
      

      note sure if it is the right thing to do...

      Chowette

      posted in Plugins
      C
      chowette
    • RE: [Plugin][$] RoundCorner - v3.4a - 31 Mar 24

      I am having the same issue here.
      It does work ok on my laptop with Win7 and SU2016 and only libfredo and round corner.
      But on my linux box under wine with both libfredo and roundcorner, it does show the same error message as _reinhart asking for libfredo...

      Is there a debug flag somewhere to get some details in the ruby console? Maybe something else i can try to give you a more detailed error report. As a software dev, I can help you debug this, but with some guidance because I am not familiar with ruby.

      chowette

      posted in Plugins
      C
      chowette