sketchucation logo sketchucation
    • Login
    ๐Ÿค‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Unit inputs limitation in older plugin

    Scheduled Pinned Locked Moved Extensions & Applications Discussions
    extensions
    3 Posts 2 Posters 481 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      slave
      last edited by

      Hi,
      I have downloaded older plugin from Ruby Depot,"Geodesic_Sketchup.rb",
      but input for radius are in inch only.
      Converting mm to inch, like decimal number is not accepted by plugin.
      Any possibility to add option for mm, or to use sketchup units?
      (if plugin can be modified ,depend of license)

      Thank you in advance for any help/advice.

      1 Reply Last reply Reply Quote 0
      • AdamBA Offline
        AdamB
        last edited by

        Here you go. (NB the SCF forum has converted ":octahedron" into ๐Ÿ˜ฎctahedron)

        Open the Geodesic_SketchUp.rb script in a text editor and replace the lines:

        def self.create( frequency = nil, primitive = :open_mouth:ctahedron, radius = 36 )
        	if !frequency
        		prompts = [ 'Primitive:', 'Radius (in "):', 'Subdivisions:' ]
        		values = [ primitive.to_s, radius, 2 ]
        		primitive_types = ['tetrahedron|octahedron|icosahedron']
        		results = inputbox prompts, values, primitive_types, 'Create Geodesic'
        		return unless results
        		primitive, radius, frequency = results
        		primitive = primitive.to_sym
        	end
        

        with this :

        def self.create( frequency = nil, primitive = :open_mouth:ctahedron, radius = "36" )
        	if !frequency
        		prompts = [ 'Primitive:', 'Radius (in "):', 'Subdivisions:' ]
        		values = [ primitive.to_s, radius, 2 ]
        		primitive_types = ['tetrahedron|octahedron|icosahedron']
        		results = inputbox prompts, values, primitive_types, 'Create Geodesic'
        		return unless results
        		primitive, radius, frequency = results
        		primitive = primitive.to_sym
        		radius = Sketchup.parse_length(radius.to_s)
        	end
        

        Save it and restart Sketchup.

        Adam

        Developer of LightUp Click for website

        1 Reply Last reply Reply Quote 0
        • S Offline
          slave
          last edited by

          Thank you Adam,
          I appreciate your help and very fast replay.
          Work as it need.
          Thanks again

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement