🏢 PlaceMaker | 25% off for February including new Google Earth data imports! Learn more
  • Uniq! not working ?

    18
    0 Votes
    18 Posts
    1k Views
    R
    Working now Must have missed something last time i tried it.
  • Isaland detection bpoly autocad function

    12
    0 Votes
    12 Posts
    2k Views
    O
    did everyone just give up on this ?
  • Create group

    4
    0 Votes
    4 Posts
    237 Views
    P
    oh, ok.... it's simple. thx guys
  • Code Profiling

    28
    0 Votes
    28 Posts
    4k Views
    J
    I tried once to see it was possible to use the same folder for both systems. I just set each one to ignore the repos and configs of the other. It appeared to work; at least in my simple test folder. I tried and hg-git also, although it took some extra installation and setup. It also seemed to work just fine, although I had more warnings than I cared for - made me nervous.
  • Transformation

    9
    0 Votes
    9 Posts
    298 Views
    honoluludesktopH
    I was drawing the matrix from memory of a screen dump the night before and thought elements [9], [10], and [11] were the component's origin. So I tried to make that fit the illustration of your matrix, and erroneously guessed at the order:-)
  • Bug Splat Reporting

    4
    0 Votes
    4 Posts
    227 Views
    AndrewSA
    @martinrinehart said: Does anyone know if there is a relationship between Bug Splat reports and getting bugs fixed? Everything that has been said in previous responses is true. BugSplat tells us how often bugs occur that have the same signature. Therefore, if we set out with the aim to fix some of our most common bugs, we start at the top of the BugSplat list and work our way down. Every time we do a maintenance release or major release, we spend a fair bit of time fixing as many of the most frequently occurring issues as possible. Also, if a specific bug comes to our attention and it seems like a very big problem when it does occur, even if it doesn't occur very often, we will concentrate some effort on trying to establish how to reproduce it and whether we have any BugSplat data to help us dig deeper. Yes, there's a big correlation between BugSplat and bug fixing activities. Andrew
  • [code] Animation controller

    2
    0 Votes
    2 Posts
    1k Views
    M
    @jim said: This is a test piece I did last year. I post it as an example, although I think it basically works. Thanks, Jim. I DL'd, took a brief look and said, "Chapter 16". Gotta finish 15, first.
  • Transformation Matrix Tool

    19
    0 Votes
    19 Posts
    908 Views
    M
    @honoluludesktop said: Martin, My apologies;-) Apologies not needed. Besides, you're the only guy here who has the correct version number on Win XP.
  • Wood Cherry Original

    4
    0 Votes
    4 Posts
    560 Views
    M
    @jim said: The actual code that causes the BugSplat is relevant. May we see it? Not likely to get back there anytime soon. Materials have been so uncooperative that I've banned them from the Ruby portion of my tutorial. @tig said: a work around to effectively 'import a skm', is to have previously made a face with the required material and save that as a small skp file. Then in the main model use the import method to add this skp as a component, the desired material will come in with it. TIG, you have my undying affection for all the great information you provide! This, however, sounds a lot like a "you can't" answer to "I'd like to write a little Ruby..."
  • [code] Timer class

    3
    0 Votes
    3 Posts
    1k Views
    M
    @cjthompson said: you might want to put: t = Timer.new( 1/fps.to_f, tt ) Matz made some brilliant decisions, and some other decisions. The decision not to coerce to float was, maybe, one of the other decisions. How many times are you really helped by 9/2 returning 4?
  • How to inspect all faces?

    7
    0 Votes
    7 Posts
    267 Views
    thomthomT
    You probably want to look into the PolygonMesh class as well. if you use face.mesh - it willl return a PolygonMesh for that face. The PolygonMesh is triangualted. I got a plugin that let you hover over a face and visually see the PolygonMesh representation of that face: http://forums.sketchucation.com/viewtopic.php?f=323&t=21472
  • Creating pulldown menus

    4
    0 Votes
    4 Posts
    154 Views
    TIGT
    @richmorin said: I'm not sure about the distinctions and terminology here, so: This is the dialog one gets by selecting a component and using the "Window > Component Options" menu bar item on a Mac. It's the 'Dynamic Component Options' Window/Dialog...
  • Don't name a method "next"!

    9
    0 Votes
    9 Posts
    521 Views
    thomthomT
    Windows7, Ruby 1.8.0 - Console Session (IRB) C;\Users\Thomas>irb irb(main);001;0> next() LocalJumpError; unexpected next from C;/Ruby/lib/ruby/1.8/irb/workspace.rb;81;in `evaluate' from C;/Ruby/lib/ruby/1.8/irb/context.rb;219;in `evaluate' from C;/Ruby/lib/ruby/1.8/irb.rb;150;in `eval_input' from C;/Ruby/lib/ruby/1.8/irb.rb;263;in `signal_status' from C;/Ruby/lib/ruby/1.8/irb.rb;147;in `eval_input' from C;/Ruby/lib/ruby/1.8/irb/ruby-lex.rb;244;in `each_top_level_statement' from C;/Ruby/lib/ruby/1.8/irb/ruby-lex.rb;230;in `loop' from C;/Ruby/lib/ruby/1.8/irb/ruby-lex.rb;230;in `each_top_level_statement' from C;/Ruby/lib/ruby/1.8/irb/ruby-lex.rb;229;in `catch' from C;/Ruby/lib/ruby/1.8/irb/ruby-lex.rb;229;in `each_top_level_statement' from C;/Ruby/lib/ruby/1.8/irb.rb;146;in `eval_input' from C;/Ruby/lib/ruby/1.8/irb.rb;70;in `start' from C;/Ruby/lib/ruby/1.8/irb.rb;69;in `catch' from C;/Ruby/lib/ruby/1.8/irb.rb;69;in `start' from C;/Ruby/bin/irb;13 Maybe IRB bug!! irb(main);002;0> exit C;\Users\Thomas>
  • Hiding Outliner Window

    24
    0 Votes
    24 Posts
    3k Views
    F
    Hi Tig (and all others), Thanks for the responses, fixed my problem wonderfully. Kudos. I did try using start_operation() with the second parameter set to true, but the Outliner window is still redrawn when each dynamic component is redraw using $dc_observers.get_latest_class.redraw_with_undo(compInst).
  • Best way to export each layer as a file

    5
    0 Votes
    5 Posts
    246 Views
    TIGT
    @xiobus said: Anyone have suggestions on the best method or any methods on saving each layer as its own file? It already wrote it... http://forums.sketchucation.com/viewtopic.php?p=183609#p183609 export_by_layer('type')
  • View.pickhelper

    19
    0 Votes
    19 Posts
    1k Views
    Dan RathbunD
    @thomthom said: View.pick_helper http://code.google.com/apis/sketchup/docs/ourdoc/view.html#pick_helper @unknownuser said: If you supply x and y, they are screen coordinates of the point at which you want to do a pick. Typically, there will be points that were passed to a method on a tool class. From that I'm given the impression that I can do: ip = view.pick_helper(x, y) And it'd then return a PickHelper that's picked a point. But that does not seem to work. The API should probably say "If you supply x and y, they are screen coordinates of the point at which you will want to do a pick." (refering to the pick as a future event, yet to occur.) @thomthom said: If I do this: ip = view.pick_helper ip.do_pick(x, y) Then it works. Because the description of PickHelper.do_pick states: "The do_pickmethod is used to perform the initial pick." So, prior to this method getting called, the picklist should always be empty; and PickHelper.count should return 0. @thomthom said: Bug? YES bug. I think it either may have once worked and because of changes it no longer does, OR it was intended to work, but when the code for PickHelper class was written it wasn't possible, or someone forget the intention, etc. (perhaps more than one person was working on it and things got lost in the shuffle.) What is supposed to happen when you call: ph = view.pick_helper(x,y,apt) ? I think something like this: class Sketchup;;View def pick_helper(*args) case args.size when 0 Sketchup;;PickHelper.new() when 1 raise ArgumentError,"x and y required", caller else Sketchup;;PickHelper.new().init(args) end end#def end#class @thomthom said: then what's the point of the arguments in the view_pickhelper method? So the arguments for View.pick_helper were really 'intended' to be passed to PickHelper.init, so that you could then use either PickHelper.test_point or PickHelper.do_pick without having to again specify the x,y. Any method that takes an apeture would also use either the one set by .init or (as we are told in the API,) the "standard Sketchup aperture size". However, PickHelper.do_pick always requires the two x,y arguments (regardless of whether .init was first called.) And PickHelper.test_point, I cannot get to return true (regardless of whether .init was first called, or all arguments are specified.) Even when the point argument is exactly the same as the x,y .. still .test_point returns false. p3.test_point [200,200],200,200,20 >> false _
  • GPS coordinates

    3
    0 Votes
    3 Posts
    1k Views
    thomthomT
    I'm moving this thread to the Developer Section.
  • [Webdialog] onresize firing twice

    12
    0 Votes
    12 Posts
    863 Views
    chrisglasierC
    Dan, my view is not to introduce anything that might antagonise Mr Mac ... there's seems enough problems with starting and window.location wobblies as bemoaned in this topic. On the other hand I would quite like machine owners to be able to determine the way their information is best viewed by manipulating the window - I guess maybe later. All seems much easier with .hta's but then so limited in other respects. Thanks for your input.
  • DC Toolbar slowing Sketchup?

    2
    0 Votes
    2 Posts
    150 Views
    J
    Yep, I've noticed this slow-down also. For me, it seems to be worst when I simply select a lot of geometry. Probably more noticeable on older machines.
  • Support for data serialization formats

    7
    0 Votes
    7 Posts
    904 Views
    Dan RathbunD
    @dan rathbun said: @richmorin said: I have a bunch of configuration data that I want to serialize, write to a file, and have my plugin load. Suggestions, anyone? The 3rd, option is to use the Sketchup.write_defaultand Sketchup.read_defaultmethods to store your plugin options in the Windows Registry (win32) or Plist file (Mac). Con here is that your options must be 'flatfile' data. No multi-level data is allowed. Actually not entirely true. You can set up the text fields of your attributes anyway you wish, since it's your plugin that will use them. If it's easier, and faster for loading.. you can have 'array' fields. ie, a single attribute value can actually be a CSV list of multiple values. (You can use whatever delimiter you wish, not just comma.) del = '%' # delimiter valListString = arrayOfValues.join(del) # then assign valListString to attribute value # reading is opposite # assign attribute value to valListString arrayOfValues = valListString.split(del) # you'd need to iterate the array and convert # any number strings to numerics # see the Sketchup extenstion String.to_l Sketchup extenstion String.to_l

Advertisement