Sketchucation Tools 5.0.7 | Licensing improvements and bug fixes Learn More

Alkategóriák

  • No decscription available

    20 Témakörök
    462 Hozzászólások
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • Texture from url?

    39
    0 Szavazatok
    39 Hozzászólások
    7k Megtekintések
    thomthomT
    For HTTPS connections you need to enable SSL when you create the HTTP connection. Note that there's a bug in Ruby that shipped with SU2014-2016 that might cause problems under Windows where the shipped SSL certificates might not work.
  • SU to VB6.0 (Or there and back again.) :)

    9
    0 Szavazatok
    9 Hozzászólások
    8k Megtekintések
    Dan RathbunD
    @marthmatica said: So as an example I did a SkecthUp cafe creator, driven from Excel face point data per row. Maybe someone will find this useful, or a better way to do it, or improve my Ruby, since I am just starting on the Ruby end. Ruby improved. See new topic: [Code] Geometry Creation from Excel worksheet data
  • Dynamic Component Instances and File Size?

    15
    0 Szavazatok
    15 Hozzászólások
    2k Megtekintések
    P
    this maybe solved by a simple trick via Dave http://forums.sketchup.com/t/components-with-attributes-creates-unique-copy-when-attributes-changed/21491/3
  • Checking Template Units

    3
    0 Szavazatok
    3 Hozzászólások
    683 Megtekintések
    thomthomT
    You don't really check the templates - you just ask the current model the user is using. The current model might be of a different unit than their selected template. At my previous job we switched a lot between mm and m in our project files. You use model.options to inspect the current model's options: options_manager = Sketchup.active_model.options options_manager.keys.each { |options_provider_name| puts options_provider_name options_provider = options_manager[options_provider_name] options_provider.each { |key, value| puts "> #{key} - #{value}" } } Output from that snippet: PageOptions > ShowTransition - false > TransitionTime - 2.0 UnitsOptions > LengthPrecision - 0 > LengthFormat - 0 > LengthUnit - 2 > LengthSnapEnabled - false > LengthSnapLength - 0.03937007874015748 > AnglePrecision - 1 > AngleSnapEnabled - true > SnapAngle - 15.0 > SuppressUnitsDisplay - false > ForceInchDisplay - false SlideshowOptions > LoopSlideshow - true > SlideTime - 1.0 NamedOptions PrintOptions > PrintWidth - 8.5 > PrintHeight - 11.0 > ComputeSizeFromScale - false > SizeInPrint - 1.0 > SizeInModel - 1.0 > VectorMode - false > FitToPage - true > NumberOfPages - 1 > LineWeight - 0.5 > PixelsPerInch - 150.0 > SectionSlice - false > ModelExtents - true > PrintQuality - 0 > ScaleAdjustment - 1.0 > QualityAdjustment - 1.0 So in this case you want to inspect UnitOptions: model = Sketchup.active_model model.options["UnitsOptions"]["LengthUnit"] Note that you want to use the constants in the class Length against the values returned here. Length;;Decimal Length;;Architectural Length;;Engineering Length;;Fractional Length;;Inches Length;;Feet Length;;Millimeter Length;;Centimeter Length;;Meter So something like this: model = Sketchup.active_model unit_type = model.options["UnitsOptions"]["LengthUnit"] metric = case unit_type when Length;;Millimeter, Length;;Centimeter, Length;;Meter true else false end I'm doing this check because LengthFormat got options that can be used with both imperial and metric units.
  • Help hiding groups and components from Ruby prompt.

    5
    0 Szavazatok
    5 Hozzászólások
    858 Megtekintések
    S
    Heh, I opened that can of worms and closed it real quick. I went to an array from a list of model names to hide. I am much happier this way. Thanks
  • Cross-platform hardware detection

    12
    0 Szavazatok
    12 Hozzászólások
    1k Megtekintések
    D
    I know variations on ifconfig en0 ether.to_s.split('ether ')[1].strip have proven robust for a few authors... but my question to all of them is why? @bomastudio what is your licensing strategy? you may not need to be so invasive... john
  • Scrambler issue

    31
    0 Szavazatok
    31 Hozzászólások
    5k Megtekintések
    WhyDiW
    Hi Driven Mac version has always been in the tube but at the very bottom of the stack. Each time we talk about we decrease its rank. what a shame! As you said the user number led us at first but you've just added an argument that might change our mind. On the other hand I would have liked to make you pleased. My thought also goes to slbaumgartner who helped me in the past (I think he also is Mac user). Mac users are so kind to help us and we haven't done much four you. So I'm ready to get even more involved although I know hardly anything about OSX. We meet next Friday evening and If you wish I may fight a bit so that Mac version raises at the top of the pile. Would you? I think I could achieve to persuade from these two arguments.
  • Geocoder for Sketchup Ruby API

    3
    0 Szavazatok
    3 Hozzászólások
    749 Megtekintések
    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 Szavazatok
    41 Hozzászólások
    12k Megtekintések
    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 Szavazatok
    5 Hozzászólások
    2k Megtekintések
    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 Szavazatok
    5 Hozzászólások
    784 Megtekintések
    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 Szavazatok
    15 Hozzászólások
    5k Megtekintések
    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 Szavazatok
    11 Hozzászólások
    2k Megtekintések
    J
    That's the plan.
  • Savepanel - file formats?

    19
    0 Szavazatok
    19 Hozzászólások
    3k Megtekintések
    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 Szavazatok
    3 Hozzászólások
    789 Megtekintések
    S
    Thanks, I will analyze that, and for shure I will check your blog
  • Mac and Windows 'New Model' differences...

    17
    0 Szavazatok
    17 Hozzászólások
    2k Megtekintések
    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 Szavazatok
    2 Hozzászólások
    1k Megtekintések
    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 Szavazatok
    5 Hozzászólások
    1k Megtekintések
    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 Szavazatok
    4 Hozzászólások
    1k Megtekintések
    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 Szavazatok
    6 Hozzászólások
    1k Megtekintések
    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]

Advertisement