I'm working on a little Ruby editor/debugger.
I wonder if I can remove the last line from the Ruby Console?
thank you.
I'm working on a little Ruby editor/debugger.
I wonder if I can remove the last line from the Ruby Console?
thank you.
Short and ride to the point
Thanks again Dan! Have a nice new year's eve...
I can't seem to find how I can give a quick confirmation, like displaying 1 second: "Hello world" without the need to press [OK] or [X]
I thought I've found it, but it doesn't work:
dlg = UI::WebDialog.new("test", false, "test", 300, 200, 50, 150, false) dlg.set_html("Hello world") dlg.show start_timer(1, false) { dlg.close }
It does sometimes disappear but even when I don't use start_timer(1, false) { dlg.close }
So that seems to be another bug?! Maybe only in SU 2013...
Hi,
Can code keep on running in the background or can plugins only be run from a user command and need to finish before you can continue to work on the model?
Or how can I write a Ruby plugin that is some event, like changing the viewing-angle?
thank you
Thank you Dan!
Do you also know what they mean with:
"Note that Win32API is deprecated in Ruby 1.9.2"
Does that mean I shouldn't use any Win32API to be compatible from 1.9.2 and up?
Found that on http://en.wikibooks.org/wiki/Ruby_Programming/Standard_Library/Win32API
Thank you!
Any link to learn using Win32API and Win32OLE in Ruby?
I can't get the backslash reading a path from registry-key in Windows 7 x64!
path = Sketchup.read_default("MyPlugin", "path")
I know I could change the backslash "" with a slash "/" or even 2 backslashes "\" before using write.default but isn't there a way to read a normal Windows path as in "C:\Program Files (x86)\SketchUp\SketchUp 2013\Plugins" from the registry?
In my search for an answer I found on http://ruby-doc.com/docs/ProgrammingRuby/html/ref_c_string.html#String.gsub:
"hello".gsub('.') {|s| s[0].to_s + ' '}
Typing this in the Ruby Console it displays just "hello", not what it should give according to that site:
"104 101 108 108 111 "
thanks
If you ever could upgrade this plugin then maybe you could add these things Thank you!
Thanks again.
Thanks for replying.
Well looking for this, I did find requests, but no solution so far. Mostly for disabling layers like one can in most other drawing programs. So a visible layer not selectable
Although I thank you for the explication of using scenes with section cuts, is not exactly a solution. I could however use that until a better solution comes up.
You need to see the context I want to use SU: Me drawing a kitchen in a room using mostly existing dynamic components, while the customer is dreaming and looking to the drawing build up. Because they don't have spatial awareness it would look nice if one always sees the background walls, floor and sealing, while I'm turning and turning to place all the cabinets against the walls. I could use scenes with section cuts, only I need to keep joggling through the pages.
Maybe is't because of the programs I'm used to. Maybe there is an other solution.
Can I have 2 simultaneous views, windows or even monitors? One I can draw in with section cuts, and one that I can turn around now and then using the walls-faces with 1 side transparent.
thank you
Hi,
I wonder if anyone has the time and skills to solve a more difficult, although very nice and much asked plugin for Sketchup?
THE PROBLEM:
If one is drawing an interior in a room or house while showing other people what you are drawing, then walls behind the interior should keep visible, while those in front should not be there.
3 Solutions I could think of, which are getting more difficult from 1 to 3:
I know one can make the backside of faces invisible, but one can not select and work through them as if they aren't there. So what I was thinking of, is a program running in the background, hiding every 100% transparent face and unhide them again as soon as the other colored side is facing the viewing(camera) angle again.
Because sidewalls from windows are still in front of the interior objects and sometimes one doesn’t want to color the outside of a room transparent , maybe one could automatically hide all faces/components in a particular layer that are in front of any other object on all other layers. Compared to the distance of the viewing eye/camera.
And if that can’t be done, then maybe one could add a “disable/not selectable” attribute on the layers besides the already existing “visible” box.
Thank you and greetings from Belgium.
Can't it be more like a real quarter circle ?
Can't it remove the corners instead ?
see the attached jpg...
Thanks.