ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • How is better and faster?

    5
    0 Votes
    5 Posts
    233 Views
    Dan RathbunD
    I usually keep the toolwindows "in my stack" rolled up, with the EntityInfo open, on the bottom of the stack. (Because it varys in height depending on what is selected, when it's at the top, the whole stack jiggles up and down in a most annoying way.) Anyway.. I only unroll a toolwindow when I'm actually using it.
  • SKX Project? Win32::API ?

    33
    0 Votes
    33 Posts
    1k Views
    Dan RathbunD
    if they were to.. yes are they likely to... if they poke about and learn a bit, and end up using the Installer, they will have minGW compiled Ruby, and should use a copy of the minGW interpreter DLL with Sketchup. ... but if they go with what ever Google gives them .. a large percent of the users, they'll have th mswin32 compiled DLL.
  • WebDialogs made with hashes don't store settings?

    10
    0 Votes
    10 Posts
    301 Views
    thomthomT
    @driven said: although I think they did before the latest upgrade I tried the hash in V7.1 - didn't work there either. Created the section key, but not any of the position and size keys. @dan rathbun said: I will say that the UI::WebDialog.new() method is "cranky" when it comes to processing arguments... if you put nil as the pref_key arg, the method stops processing the remaining args. I tested that yesterday, Doesn't do that in SU8M1. @dan rathbun said: Note that processing of a hash is also cranky... it doesn't work correctly if string keys are used (at least on SU 7.x,) Seems hashes with keys are cranky as well. I always use symbols. @driven said: has anyone got a working example of any WD that can be re-positioned... You can always reposition and resize after you created the WD object. Note that, if you set a preference key, then the size and position you give in new will be ignored if there exist values in the registry. @dan rathbun said: One of the changes, for SU 8 was an updated user agent string ... I wonder if that's causing this problem? I see the same problems in SU7.1. So it doesn't appear to be new. And I'd be surprised if the web control's user-agent-string affected the a ruby method.
  • SketchUp 8 Bugs & Troubles!

    25
    0 Votes
    25 Posts
    3k Views
    J
    Thanks Brad! As far as I know, only the 4 stipple types have been documented. If other types are supported, it would be great to get those documented and to be able to use them.
  • Has anyone successfully added dynamic 3D model to website?

    8
    0 Votes
    8 Posts
    655 Views
    C
    ICEVision supports Sketchup files as well as a variety of other formats. http://icevision.ice-edge.com/features.jsf
  • Static component/object in front of camera

    6
    0 Votes
    6 Posts
    409 Views
    Chris FullmerC
    I've got a few snippets of code I could send you if you want to dig through them. Does it have to really be a sketchup component? Or can it just look like a navigation wheel? A few of us have played a LOT with the draw methods. You probably can do exactly what you want with those. If interested, I'll PM you an example or two. Chris
  • Note to self - Delete Thumbs.db before .zipping a plugin

    5
    0 Votes
    5 Posts
    384 Views
    J
    @dan rathbun said: And by the way... in the same list, you can eliminate the thumbs.db file if you check "Do not cache thumbnails" Yeah, but it's slow enough when I hit a folder with a lot of files in it. Caching thumbnails is speedier for me.
  • Strange warning

    3
    0 Votes
    3 Posts
    221 Views
    Dan RathbunD
    ** Please, could you change the topic title to "Warning: Float out of range" @didier bur said: def myMethod() > x=y=z=0.0 When loading the rb file, this message appears in the console: @unknownuser said: warning: Float 0.0 out of range Do you get the same warning if you do: def myMethod() x=y=z=(0.0e0) end I get no warnings at all at the Console.
  • Group#copy fails on Mac?

    6
    0 Votes
    6 Posts
    261 Views
    J
    Well, it wasn't mover2, and it's still not resolved. Will check SketchyPhysics, thanks.
  • Opening the ruby console

    3
    0 Votes
    3 Posts
    203 Views
    TIGT
    http://sketchuptips.blogspot.com/2007/08/plugin-ruby-toolbar.html Takes it a step further and also adds a toolbar button to do it for you - using the same Sketchup.send_action("showRubyPanel:") as Pixero suggested...
  • Help witn AppObserver.onQuit

    3
    0 Votes
    3 Posts
    165 Views
    honoluludesktopH
    OK, makes sense. The only other way I can think to do the above is to have a timer on one instance that checks a memory flag from time to time, but that's too much overhead.
  • Array doesn't work...

    4
    0 Votes
    4 Posts
    373 Views
    K
    Works! Thank you!
  • Help with arrays

    11
    0 Votes
    11 Posts
    246 Views
    Dan RathbunD
    @pixero said: Its actually the continuation of this thread: [url]=ttp://forums.sketchucation.com/viewtopic.php?f=180&t=33862]How to compare points on a plane?[/url] OK. So the data_array contains Geom::Point3d objects? What kind of object does the test_array contain? What is the logical condition that you want the data_array elements to be added to the new_array? If a false results from the logical test, is putting nil into the new_array OK, or do you wish some other value (perhap [0,0,0] or whatever) ? We need to be careful when comparing Geom::Point3d objects, as Google overrode the .< and .== methods (to make them dependant upon the 0.001" internal tolerance.) You should decide if that's OK for your purposes.
  • Help with componentdefinition=definitions.load name

    17
    0 Votes
    17 Posts
    850 Views
    honoluludesktopH
    Well, I completed my program, and did it by not using a path. It's my guess that SU keeps track of where SU is, so if you: Save a component to file as name.skp. Edit the saved file. (this is the function of the plugin) Erase the component instances (that was saved) from the original model entities. definitions.purge_unused componentdefinition = definitions.load name.skp entities.add_instance componentdefinition, each_transformation The key to make this work is step 4. The only problem that can come about is if you require the erased components to remain in the select "Components" window.
  • Loading a second set of points to draw lines.

    4
    0 Votes
    4 Posts
    203 Views
    Dan RathbunD
    Some links for you: Ruby Newbie's Guide to Getting Started Ruby Resources [info] Using Ruby Modules and Jim Foltz has an InputBox class wrapper that makes it easier to use the UI.inputbox method. Not sure where it's kept, but he'll see this post and let ya know.
  • How to compare points on a plane?

    17
    0 Votes
    17 Posts
    858 Views
    Dan RathbunD
    Perhaps the time to make the method call? Hmm.. but they are called only once or twice. It doesn't make sense... the 1st test is what inject does but in C code: rb_iterate(rb_each, obj, inject_i, (VALUE)&memo); and this is max, in rb_iterate(rb_each, obj, rb_block_given_p() ? max_ii ; max_i, (VALUE)&result); We should run the test several times in different orders.
  • A little suggestion.

    6
    0 Votes
    6 Posts
    305 Views
    thomthomT
    @chris fullmer said: I've written a entire RGB color picker for the SketchUp UI. I just haven't had the time/real need to implement it. Maybe I should get it into my color scripts and just release them to see how it goes. I'm not sure if my color picker is too bulky to even really be useful. But it is a great improvement over the old system. Ahh, but come to think of it, it is still necessary to enter RGB values using my color picker if you want to be prcise. So in that case, I suppose I could still revamp my RGB input methods too. Chris Aye! The color picker was looking good.
  • My Apple Keyboard VK_KEYS

    15
    0 Votes
    15 Posts
    3k Views
    Dan RathbunD
    @driven said: all the shortcut keys, SU and system just carry on working and don't register in the console at all, here at least The DELETE key registered "onKeyUp : Key code: 46 ( VK_DELETE )" in the Console (on my PC,) and deleted the selected face. It seems weird that keys would bubble up from a Tool instance keytrap callback. I can see having a bubble method that allows passing the key up to Sketchup, but to do it all the time?
  • Linetool.rb snap

    4
    0 Votes
    4 Posts
    560 Views
    thomthomT
    aiai... I meant to do a new version of that guide. ...one that made sense...
  • Something new for SU ruby one year after.???

    11
    0 Votes
    11 Posts
    563 Views
    C
    What you're describing is exactly how the QT Framework works, it's cross platform, and the Ruby bindings already exist. It also enjoys the advantage of being open-source, although the QT Designer IDE is proprietary. So just as you can write and compile C# code for the .NET framework without Visual Studio, the task is greatly simplified with the native IDE. GUI work is well outside my day to day development however, so I'm not sure if it could be made to work with the Sketchup API. I'll defer such decisions to those better qualified to make them.

Advertisement