⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • Geocoder for Sketchup Ruby API

    3
    0 Votes
    3 Posts
    681 Views
    M
    No it's not built inside google map. i'm creating a model of a house that exists in real life, ad i write it's address in an inputbox. now i want to creat a plugin that shows the location of that house on google map based on the address i wrote .
  • DLL callback to ruby

    41
    0 Votes
    41 Posts
    11k Views
    Dan RathbunD
    You will need to do some studying: Read and bookmark this post: [Info] C/C++ Ruby extensions & SketchUp plugins You will need to download the Ruby C source, as your DLL code must: %(#404080)[include "ruby.h"] Read the old "Pick-Axe" book's chapter on writing a Ruby extension. Programming Ruby: Extending Ruby Take note of the Ruby C-side functions: rb_eval_string( *string_to_eval* )* rb_funcall ... described in section "Evaluating Ruby Expressions in C" okay, a dedicated C side Ruby book is also now available: http://media.pragprog.com/titles/ruby3/ext_ruby.pdf
  • Level Import to UE4

    5
    0 Votes
    5 Posts
    1k Views
    Dan RathbunD
    @bentet said: Can anyone give me some pointers on where I can start? I can write a few simple things in ruby, but this kind of functionality is somewhat beyond my scope at the moment. A tutorial link and a few pointers from more experienced developers would go a long way. --> topic: SketchUp-Ruby Resources Before you can use the SketchUp API with Ruby, you need to learn the basics of Ruby, including how to look up methods for the Ruby Base classes.
  • Convert Layer Pointer to Layer Name, How?

    5
    0 Votes
    5 Posts
    665 Views
    TIGT
    As @Jim says, you need to access the layer by its ' .name' So you need something like: Sketchup.active_model.selection.each{|e|e.material="red" if e.layer**.name**=="Bozworth"}
  • Using Visual Basic 2008 Express dialog form in Ruby.

    15
    0 Votes
    15 Posts
    4k Views
    M
    Who just loads up some guys exes and dlls with no source? Geez, just load up the vb project.
  • Cannot get C extensions to run in Sketchup

    11
    0 Votes
    11 Posts
    2k Views
    J
    That's the plan.
  • Savepanel - file formats?

    19
    0 Votes
    19 Posts
    2k Views
    Dan RathbunD
    FYI: Back in Jan, Jim brought up this limitation in the OEM forum, and Thomas responded that neither panels functions are coded correctly (Jim filed a bug,) and cannot take both a filename and a typelist. http://forums.sketchup.com/t/openpanel-and-savepanel/5489
  • Create Geometry

    3
    0 Votes
    3 Posts
    716 Views
    S
    Thanks, I will analyze that, and for shure I will check your blog
  • Mac and Windows 'New Model' differences...

    17
    0 Votes
    17 Posts
    2k Views
    D
    cheers Tig, the plugin runs my 'selector' tool after new_skp has been cleaned up... the 'selector' can be scaled, rotated or moved before running the cuts... any solids remain solids afterwards... [image: Uj0D_sixSectoins.gif] I need a PC version to attract more testers... john
  • Word/PDF Sketchup ruby API

    2
    0 Votes
    2 Posts
    931 Views
    M
    Hello, for those who are interested i found the solution to my question: i installed the Prawn library using the ruby console in sketchup : Gem.install("prawn") then i used this code to generate an example of a pdf file: require 'prawn' Prawn::Document.generate('C:\Users\laptop-acer01\Desktop\test.pdf') do text 'this is a test file' text 'end of file.' end
  • Create an xml file using sketchup ruby API

    5
    0 Votes
    5 Posts
    1k Views
    M
    Thank you for your answer i did adjust my profile, and it's my first time using sketchup and sketchup ruby api and i'm supposed to deliver a projet using those two and i searched so much randomly as i didn't know the exact methode to search about
  • Code to eyedrop

    4
    0 Votes
    4 Posts
    961 Views
    thomthomT
    I got a simple tool to pick materials in Material Replacer: https://bitbucket.org/thomthom/material-replacer/overview You can use that as reference.
  • [ruby] material colorize

    6
    0 Votes
    6 Posts
    1k Views
    K
    I use the tool to quickly switch two modes: textured / colored AND grey scale I have a fully textured 3d model and a sectioncut with faces in several shades of grey. In layout I need a grey scale representation without textures. The grey scale colors of the section cut must be preserved. So the tool temporary converts the colors to grey scale, makes the material color for those materials with a texture to white and sets the style to shaded. Previously I needed two scenes in SU and one extra layer in LO to achieve the same result in LO. [image: yVkx_switch.jpg]
  • Loading skp model

    3
    0 Votes
    3 Posts
    868 Views
    M
    yes that how i solved it full path and the number 7 that was displayed reffers to : SU_ERROR_SERIALIZATION if an error occurs during reading of the file thnx ^^
  • Face Tilt and orientation

    5
    0 Votes
    5 Posts
    804 Views
    M
    What i'm looking for is the degree of the angle between the face (wall for example) and the red axe and have that angle degree for each face,for example face 1 20°, face 2 80° ...
  • Debug in aptana studio

    2
    0 Votes
    2 Posts
    787 Views
    thomthomT
    Did you launch SketchUp with the correct params to listen to port 1234? https://github.com/SketchUp/sketchup-ruby-debugger I never tried to set it up for Aptana, but I set it up for RubyMine. Posted some instructions here: http://forums.sketchup.com/t/please-help-me-to-setup-de-debugger-on-rubymine-for-mac/289/2?u=thomthom Maybe some of that info is transferable.
  • Face orientation

    11
    0 Votes
    11 Posts
    3k Views
    M
    hello how do u make difference between the walls (wall 1, wall 2) and when u receive the orientations how do u know each orientation belongs to which wall (wall 1 or wall 2 ) ?
  • Problem with imported geometry.

    11
    0 Votes
    11 Posts
    1k Views
    D
    Jim's was updated to use Assimp and the external SU C++ SDKrecently in the last 3 months... just sayin... john
  • Slapi C SDK for 2015

    2
    0 Votes
    2 Posts
    562 Views
    thomthomT
    What are you in need of the old version for?
  • Call C++ from ruby in Sketchup

    3
    0 Votes
    3 Posts
    860 Views
    A
    I notice this was last updated for SU 2015, last commit Nov 7 2014 - does it still work with SU 2016?

Advertisement