ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Layer manager problems

    12
    0 Votes
    12 Posts
    551 Views
    L
    That's what it was! Thanks, Chris.
  • Create component with a subroutine question

    4
    0 Votes
    4 Posts
    234 Views
    Chris FullmerC
    If you are creating them all like this: $bad_global_variable_new_group = entities.add_group $bad_global_variable_new_group = entities.add_group $bad_global_variable_new_group = entities.add_group $bad_global_variable_new_group = entities.add_group The variable only points to the last one. The first 3 will be lost.
  • Fumbling Towards Timezone Frenzy

    4
    0 Votes
    4 Posts
    347 Views
    T
    No problem, Chris. If you have any further questions about this - feel free to message me (or post here and message me so that I'll read it for sure )
  • [Bug] Add_group inside a component

    19
    0 Votes
    19 Posts
    702 Views
    M
    Aaah... Cool!
  • Need help: get length of arc/spline

    12
    0 Votes
    12 Posts
    646 Views
    pilouP
    @unknownuser said: if you explode it Yes but it's dangerous to manipulate TNT
  • Contour lines

    4
    0 Votes
    4 Posts
    365 Views
    coulteriC
    Yes. Maybe good idea to do it in another software (like AutoCAD). Thanks.
  • How to use lock_inference ?

    2
    0 Votes
    2 Posts
    194 Views
    Chris FullmerC
    You need to have an inputpoint for inference to work. Check out the InputPoint class for how that works. That's about all I can say. I am currently working on inputpoints too, and its going slowly. There is a good example in the utilities directory. Open utilitiestools.rb and look at the TrackMouseTool in there. It is found in Tools>Utilities>Query Tool inside of Sketchup. It uses inference points. It seems more complex than I thought it should be, but it definitely works. Chris
  • UI.play_sound on mac

    2
    0 Votes
    2 Posts
    137 Views
    Chris FullmerC
    Check out this post tothe Ruby API blog. It should help hopefully, http://sketchupapi.blogspot.com/2009/01/playing-sounds-in-sketchup.html Chris
  • Line thickness plugin?

    7
    0 Votes
    7 Posts
    10k Views
    R
    @gaieus said: Yup, in LO 2 you can now explode your model and assign any kind of line style (thickness,dashes and such) to the individual lines (2D only and cannot be reverted).LO has finally grown up and if some tweaks and a couple of "feature requests" are implemented,it can be a full featured presentational as well as drafting tool - still keeping updateable relation with the 3D SU model. Do you have to export 2d as jpeg to do that in LO?
  • Problem with UVHelper

    3
    0 Votes
    3 Posts
    281 Views
    thomthomT
    Ah! I see it now. Use tw = Sketchup.create_texture_writer instead of tw = Sketchup::TextureWriter.new. I'll add it to the list of errors in the manual: http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=17047
  • ( req) automatic zoom

    7
    0 Votes
    7 Posts
    507 Views
    bagateloB
    3dsmax have tool called "zoom selection", is fantastic. Sketchup have script to emulate this, I use key Z to activate. If no selection is active, Sketchup show me zoom extents...
  • Move entities to a group?

    7
    0 Votes
    7 Posts
    406 Views
    TIGT
    @thomthom said: But that's the problem. I want to add it to a group. But I experience crashes. Like the manual says. So how do you add entities to a group after you make an empty group? See here... http://www.sketchucation.com/forums/scf/viewtopic.php?p=140959#p140959
  • "include" vs "require"

    2
    0 Votes
    2 Posts
    245 Views
    tbdT
    5 sec search on google - What's the difference between "include" and "require" in Ruby? Answer: The include and require methods do very different things. The require method does what include does in most other programming languages: run another file. It also tracks what you've required in the past and won't require the same file twice. To run another file without this added functionality, you can use the load method. The include method takes all the methods from another module and includes them into the current module. This is a language-level thing as opposed to a file-level thing as with require. The include method is the primary way to "extend" classes with other modules (usually referred to as mix-ins). For example, if your class defines the method "each", you can include the mixin module Enumerable and it can act as a collection.
  • FaceMe Components have extra large BoundingBox?

    9
    0 Votes
    9 Posts
    384 Views
    AdamBA
    Mea culpa AABB = Axis aligned Bounding box (blue box) OBB = Oriented Bounding box (red box) [image: 5gTb_SketchUpScreenSnapz035.png]
  • Observers removed when entity is deleted?

    2
    0 Votes
    2 Posts
    234 Views
    AdamBA
    I've found it to be a "theological gray area"! Because if you have an observer on an object there is an argument that this is a reference and therefore the observee is going to hang around and not be GCed. Let alone the Observer proper. As a general rule for Ruby programming - particularly for SU where the Ruby objects are essentially proxies - if you have the opportunity to break references, do so. Adam
  • Windowizer4 now available!

    55
    0 Votes
    55 Posts
    14k Views
    R
    I had noticed problems with wxSU as well (one reason I didn't adopt), but not specifically with Windowizer4. I'll have to dig in and see what I find out. Thanks,
  • How to read/parse XML files inside SU

    5
    0 Votes
    5 Posts
    793 Views
    A
    If I remember right, I had a fully installed Ruby on my PC and took the REXML lib from it. The directory contains 55 files and five folders. I loaded it this way from my script: require 'rexml/document' unless defined? REXML If you also want to load this way you have to make sure that the Ruby interpreter search in the right place. Put the REXML folder to Plugins or Tools folder - should work with the above code. To make sure that your script only runs if REXML is loaded, put this condition to your codee: if defined? REXML # YOUR CODE HERE else UI.messagebox "REXML is missed, can't load plugin." end Sorry for my late answer - I'm moving from town to town at the moment. azuby
  • Function: toggle toolbar

    6
    0 Votes
    6 Posts
    637 Views
    Chris FullmerC
    Woohoo! That might be my first correct response in this forum I'm glad it helped, Chris
  • Objects (grouped) Selection to Components

    5
    0 Votes
    5 Posts
    450 Views
    M
    This kind of thing? It will probably need for a question "Do you want to convert all entities into components in the selection?" EDIT : Please see below for the plugin.
  • Observer event BEFORE entity is deleted

    2
    0 Votes
    2 Posts
    166 Views
    thomthomT
    hrmm... I tried using an extra hash to keep a reference list. But as it turns out, the entity that onEraseEntity returns doesn't match the ones I've stored...

Advertisement