⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • What is this?

    2
    0 評價
    2 貼文
    185 瀏覽
    R
    Looks like an example of using a DLL to get sketchup to talk to another program. Perhaps something similar is included with the SDK? othrwise it'll just be something somebody else has put together to try it out/demonstrate it.
  • Adding observers to a group of entities

    3
    0 評價
    3 貼文
    180 瀏覽
    C
    Here is an abridged version: class EntityObserver def onChangeEntity(entity) puts entity.to_s + " changed" end end $entityObserver = EntityObserver.new def addObserver Sketchup.active_model.selection.each{|entity| entity.add_observer($entityObserver)} end def removeObserver Sketchup.active_model.selection.each{|entity| entity.remove_observer($entityObserver)} end If you have one entity selected, it adds and removes fine, but if you have more than one entity selected, it only removes the first entity in the selection.
  • Can I "store" a material as object in a variable?

    16
    0 評價
    16 貼文
    602 瀏覽
    N
    Yes, I just noticed that is no use to have bitmap data as binary in ruby. Because when asigning texture image to a created material m = materials.add "mat1" m.texture = "C;/texure.jpg" We don't really add that texture, but pass the path to SketchUp and there, inside that evil thing some magic happens and it grabs the texture with the claws. So, yes... we need the bitmap as file on disk before any attempt to do anything.
  • Components

    12
    0 評價
    12 貼文
    751 瀏覽
    honoluludesktopH
    TIG, Got it, thanks: model = Sketchup.active_model selection = model.selection selection.each do |i| puts "Component(s)" if i.is_a? Sketchup;;ComponentInstance puts i.definition.name i.definition.entities.each do|j| if j.is_a? Sketchup;;ComponentInstance puts j.definition.name j.definition.entities.each do|k| if k.is_a? Sketchup;;ComponentInstance puts k.definition.name end end end end end end Now, to organize as a proceedure to accomplish the above (3 levels) to the nth level:-}
  • Componentreporter.rb

    6
    0 評價
    6 貼文
    788 瀏覽
    M
    I went through the cutlist.rb instructions again on my project and it works great. I had to move a number of component axis. Thanks.
  • Good introductory books on 3D programming?

    13
    0 評價
    13 貼文
    560 瀏覽
    thomthomT
    I think I have to get a few of these books. Computational geometry: algorithms and applications let me calculate a 2D convex hull. (I had no idea what it was before.) http://books.google.no/books?id=tkyG8W2163YC&dq=Computational+Geometry:+Algorithms+and+Applications&printsec=frontcover&source=bn&hl=no&ei=bLYFS9r_DcP3-AbKiozWDQ&sa=X&oi=book_result&ct=result&resnum=4&ved=0CBkQ6AEwAw#v=onepage&q=&f=false
  • Removing 2D entities from skp using script

    15
    0 評價
    15 貼文
    883 瀏覽
    RunnerPackR
    I think the defacto standard in this forum is that the original poster (e.g. you) edits his/her first post and adds [Solved] to the beginning of the title, to let people know there is a solution in the thread. I could be wrong, though, since I'm also quite new here...
  • Help downloading and installing Fredoscale

    2
    0 評價
    2 貼文
    1k 瀏覽
    numbthumbN
    Hi there! Take a look at the http://forums.sketchucation.com/viewtopic.php?f=180&t=17948&st=0&sk=t&sd=a, scroll down, find and download FredoScale 2.0h.zip. A brief explanation should also be there. Let us know if this helps. Oh, and FredoScale 2.0 requires LibFredo6 3.1 http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=17947#p144178
  • Looking for a plugin to dispaly cordinate

    5
    0 評價
    5 貼文
    233 瀏覽
    honoluludesktopH
    Thanks, Chris.
  • Asking For Help Points are not planar (resolved)

    9
    0 評價
    9 貼文
    871 瀏覽
    M
    @thomthom said: @mcdull said: i have solved the problem ,thank u And what was it? when i generate 3d wall,some points are not planar.i have changed the function.
  • Setting a certain unit as standard

    13
    0 評價
    13 貼文
    789 瀏覽
    M
    Thank you Thom and Martin.. I understand better now :
  • Reading the SU API

    17
    0 評價
    17 貼文
    878 瀏覽
    M
    @honoluludesktop said: ... If so is it efficient? Twentieth century issue.
  • Ruby methods in dynamic component attributes?

    3
    0 評價
    3 貼文
    276 瀏覽
    RichMorinR
    Thanks! That is exactly what I was looking for! I've updated my blog entry (http://www.cfcl.com/rdm/weblog/archives/001716.html) with some speculation on how this capability might be used.
  • In over my head?

    13
    0 評價
    13 貼文
    826 瀏覽
    M
    Yeah i noticed a few of those, as well as some other problems Was having alot of issues trying to get it even to run a few parts of it the other night. Been reading the programming Ruby book found on the ruby-doc.org website. going to have to go through the code and tear it apart piece by piece over the course of this week, and hopefully have something workable by this weekend. Hopefully.
  • What button is the user holding down?

    5
    0 評價
    5 貼文
    220 瀏覽
    F
    Yeah. Looking into it, there is a lot more work involved. I'd have to change my program quite a bit to fit it into this programming structure.
  • [WebDialog]Behind nset Sketchup API

    10
    0 評價
    10 貼文
    3k 瀏覽
    chrisglasierC
    Jim has got the device working in a couple of browsers. He asked me to post these images on his behalf to see if anyone else is interested in this aspect - I am more interested in finalising the machine that runs this or other such devices from the desktop. [image: Oasw_080.jpg] [image: RJlF_081.jpg]
  • Returning other than boolean by send_action()

    5
    0 評價
    5 貼文
    275 瀏覽
    R
    Have you tried SceneExporter, either to do what you want, or as an example of how it could be done? The Pro version will hopefully have the Save dialog working soon.
  • TIG's DXFlayercols.rb

    3
    0 評價
    3 貼文
    531 瀏覽
    G
    cheers dude
  • Ruby Gems?

    3
    0 評價
    3 貼文
    697 瀏覽
    N
    I found something that in the end could lead to a way of using ruby gems with SketchUp Ruby http://docs.rubygems.org/read/chapter/15#page101 and http://docs.rubygems.org/read/chapter/3#page83 I could not understand too much from that, but I hope that somebody will refine that in a easy to use manner.
  • JavaScript Help from Google

    2
    0 評價
    2 貼文
    141 瀏覽
    Chris FullmerC
    I believe that they showed this during the IP conference this last year. Maybe dig through the IO videos to see if they had any sessions devoted to it. Chris

Advertisement