🏢 PlaceMaker | 25% off for February including new Google Earth data imports! Learn more
  • Undefined method

    12
    0 Votes
    12 Posts
    670 Views
    chrisglasierC
    @jim said: Cross-platform? Possibly. I guess it can happen when scripts are loading that there is no active_model yet ... Note in this post Finally, there is a difference in the way that the Mac boots up SketchUp that you should be cautious about: there is no Sketchup.active_model when the Ruby scripts are first loaded. So if your script is making changes to the active_model at load time, it will not work on the Mac. The answer? Ensure code that references the active model is part of a UI event handler, responding to the user selecting a tool or a menu item. You can also use an AppObserver to get a callback whenever a new model is opened, at which point it's safe to talk to the active_model.
  • Organising Rubies

    9
    0 Votes
    9 Posts
    525 Views
    J
    @rickw said: Only to the extent that if the original author didn't make it Organizer I have been working at making my plugins compatible. Although Organizer is not a free script, I want to support my users who do use it. Particulary for single-file scripts, it's as easy as: ($submenu || UI.menu('Plugins')).add_item("Menu Text") { command } And yes it does work if the script is scrambled.
  • Surface HI RES

    3
    0 Votes
    3 Posts
    298 Views
    W
    @fabiorossi said: anyone knows a plugin through which you can increase the polygons of a curved surface, for example if I have the lateral surface of a cylinder obtained by extruding a circle with a bit number of segments How do I increase that number of segments without having to shared by a circle with multiple numbers of segments? thanks!! hey brother , i just joined the forum recently , so i am sry ur reply is a year late but anyway if u havent got it yet u can increase the segments on any arc or polygon by just giving it a right click and clicking on entity info , a small window will open in which u will find segment written in it , just increase the segments as u want . as i said just thought of giving it a try even if its too late
  • Plugin request

    6
    0 Votes
    6 Posts
    363 Views
    daikuD
    I'd also love to see a good "skinning" plugin. I my case, I need to skin something like this:[image: 2POX_Murin_small.jpg]
  • Sketchup for Machine Design and Interaction with Data Base

    3
    0 Votes
    3 Posts
    3k Views
    M
    I can't even begin to answer a lot of your database questions as I don't do a lot of programming. However, I do understand components. We manufacture custom HVAC ducting and piping, so while the component list is small, the need for the list work is still there. So, I made a dynamic component of a flange, with a bolt pattern. See my attached sketchup file using this dynamic component. Under file, click generate report. Using the native tools with sketchup, this seems at the very least feasible to me. With the report generator, I am able to harvest the information I need with the ItemCode section, which would let me identify my large components. The small component information can be used to build my device with the proper CNC machining equipment. Although it has X,Y,Z information that is relative to the coordinates of the minor components, it would require simple vector addition to get the precise location of each hole in the model, and feed that to the CNC. Working in reverse is a bit more complicated, but dynamic components would make working in reverse possible (an advantage). You could edit the data in your tables, use a script to redraw the dynamic component with the updated values, and viola! It would be updated. X, Y, Z and LenX, LenY, LenZ values would be recalculated and ready for the CNC. This does take some time however, as well designed dynamic components would take time. Unfortunately, this will not be updated instantaneously. There would have to be a request for redraw, or a request to save the generated report, so these scripts could not be used if you wanted instantaneous information. Still, it would beat working with the sometimes buggy "observers" of ruby. And the report generator is actually a ruby script (so you could make it anew). The only issue I would see then is finding someway of having your ASP net "ping" sketchup to regenerate the report and redraw the model. Dynamic Hole 2.skp
  • Is this possible with ruby?

    6
    0 Votes
    6 Posts
    366 Views
    coulteriC
    I'll look at it. Maybe I will be able to write it in the future. Thanks.
  • Sneak Preview anyone?

    8
    0 Votes
    8 Posts
    370 Views
    J
    @thomthom said: Does it manage existing rubys as well? Management is not the main focus of this installer. I think if plugin installation were easier, more people would try plugins. And with an option to completely remove them, it may lower any barriers further. I clearly don't want to clobber a users plugins folder, but that's just a matter of checking what is already there. I wouldn't know how to get information about the origin of all the files in the Plugins folder. I do agree the issues of installation and management are closely related. But if I can get the installer installed, and developers to package for the installer, installing becomes easier for everyone, as does upgrading plugins. I want a safe and reliable installer/un-installer first. For developers, most plugins can be "installed" from their current .zip files - it simply un-zips the archive to the Plugins folder. Beyond that, I am thinking about options for pre- and post-install scripts, as well as pre- and post-removal scripts so developers can do some preparation or cleanup if needed when their .zips are installed.
  • Copy along path lock one axis ruby

    3
    0 Votes
    3 Posts
    457 Views
    T
    Thanks! I will try to find that plugin. The path has to be level across the walkway as it goes down. Sort of like a winding downhill stair case. I just wanted to do it with a component or predefined face. (Sorry if the question was basic) Thanks! Stuart
  • Downloading files from the Internet using Ruby

    8
    0 Votes
    8 Posts
    433 Views
    thomthomT
    @unknownuser said: @whaat said: I wonder if I can pass the binary string from a WebDialog back to Ruby using a callback function and then write the file to the user's temp directory? Does this sound possible? why not ? just try it have in mind that window.location might have a size limitation (depends on the browser) - so more than 2000 chars can bring trouble I've not tried this, but Chris mentioned you can store data in hidden input fields and extract data from there. http://forums.sketchucation.com/viewtopic.php?f=180&t=21166#p177786
  • Filenames Case-sensitive?

    3
    0 Votes
    3 Posts
    143 Views
    M
    It's built on *nix. I once took an extensive website from Windows to a Linux-based ISP. Broken-link city! Decided that capital letters have no place in any pathname, regardless of OS.
  • SketchUp and EnergyPlus

    5
    0 Votes
    5 Posts
    3k Views
    M
    Just to let you know that Demeter has now be renamed LiveEnergy Modeller and a new version is available for download on our website at: http://greenspacelive.com. LiveEnergy Modeller is currently available on an Alpha testing basis unti 31st October 2009. We would value any feedback suggestions etc. I've also put more information in a SketchUcation post here: http://forums.sketchucation.com/viewtopic.php?f=80&t=21789. Thanks, Malcolm Murray
  • Ruby to Divide a Face?

    4
    0 Votes
    4 Posts
    596 Views
    D
    Laticizer would help a little, but it's not ideal because it creates a frame, including the outer lines of the wall I pick. A better solution I have just found is in 1001 bit tools and is the 'Create horizontal groove lines on selected surface' tool. I just need to rotate the face 90 degrees to add vertical grooves. It would be good to add horizontal and vertical grooves together to stop this happening, as shown in attached image, but I'm not complaining! [image: t1NE_0.1.jpg]
  • Arc - By Radius and Arc Length ???

    2
    0 Votes
    2 Posts
    299 Views
    pilouP
    Not exactly that you want but maybe this can help for a more big precision ArcCurve-set_segments.rb & changearcsegments by Tig
  • Req: woodwork.rb

    6
    0 Votes
    6 Posts
    1k Views
    D
    @jhoutman said: Hello, I am the author. I am sorry I rarely stop by this forum. I changed email address so probably everything got lost. Let me know what changes you like and I will probably do them. My main hobby is woodworking. A sub hobby is Sketchup. A sub-sub hobby is ruby scripts. I do have small word documents describing the the use of the tools. And have some updates. Joel Hello,jhoutman I'm glad to see you back! And thanks for this very helpful plugin! When making boards - say shelf, it would be very handy to use simple expressions - width of the cabinet minus double thickness of the plywood. Also, a drop down list with most used names for the parts - top, bottom, back etc. in the "Input Board" window. Thanks in advance.
  • Question:small_icon = and large_icon= method of UI::Command

    3
    0 Votes
    3 Posts
    289 Views
    J
    @tig said: I think it's because the path is taken relative to the path of the calling script's folder. Since script is in a folder that contains the images/... folder. then it is found OK... unless the script has been scrambled, in which case the relative path no longer works and you need to use the full path to the images.
  • SketchUp IDE?

    7
    0 Votes
    7 Posts
    1k Views
    tbdT
    @martinrinehart said: Is that FreeMind? How do you get the thick lines? nope, it is MindManager let's start with a public file where we can gather the requirements and see what we will code - SURIDE req list. feel free to join in and post your wishes
  • The Bug from Hell, Redux

    4
    0 Votes
    4 Posts
    266 Views
    M
    @msp_greg said: When writing a component stepper and a layer stepper, I had to escape () both single and double quotes everywhere ... Thanks! Bug gone.
  • Ruby Console woes

    17
    0 Votes
    17 Posts
    866 Views
    J
    @martinrinehart said: Let's do something about this. Hello Martin, I knew enlightened minds like myself existed in SketchUp land, but just did not have the physical evidence until now. Well that's still only less than a handful of Python coders i have a count of... Myself, Greg, You, and a very interested fan tomot who stood by me last year through trials and tribulations and got nothing in return. And there where a few other seeming interested parties... (Sorry if i left anyone out) hmm, not enough to start the revolution, but it's a start nonetheless! But seriously, Python IDLE is a great yardstick to judge entry level IDE's on. If you like "fancy" IDE's, well you will be disappointed with IDLE. But IDLE is built for one thing, introducing noobies to the Python programming language in a very comfortable way. So we all know that a new multi-line interactive console is desperately needed. I can't see why SketchUp dev would not alow us to build this for them, and then they could throw it in the source distro. But we must get this into the core SketchUp release. If someone just releases another plug-in and that ugly Ruby console stays in SketchUp then we might all just as well download one of the already existing Ruby IDE's out there. But a real Ruby SUIDLE("swiddle" or "sweedle") OR SUIDE("sweede") would be a god send for everybody! And Taking IDLE's modular approach we could start simple and just add to our hearts desire! The current Python IDLE weighs in a 1.53MB but a lot of this can be trimmed. Only the most important features are really needed... Minimum Features -syntax highlighting -bracket matching Icing on the Cake -code completion -object browsing -smart indent -call tips -"your wish here" But most importantly this whole redundant cycle of the current Ruby scripting experiance is quite laborious. Here is a short script that describes the process in painstaking detail... from patience import * from meds import Prozac, Asperin rants = [ 'OMG!, not again!', 'rats, here we go again!', 'Somebody just shoot me already!', ] def lament(self); self.sanity -= 1 print random.choice(rants) def medicate(); self.swallow(Prozac, Asprin) count = 0 while self.sanity > 0; count += 1 if count % 5 == 0; self.medicate() self.write_or_tweak_code() try; su = SketchUp.open() try; su.test_script_functionality(); break except ScriptRuntimeError; self.lament() except ScriptLoadError; self.lament() finally; su.close() print 'Finally! \ It only took %d cycles to complete this task *sarcasm*' %(count) ...needs to go the way of the Dodo.
  • Binary to Ruby Archiver

    4
    0 Votes
    4 Posts
    174 Views
    tbdT
    @jim said: Will need to consider including files and folders in the archive. you just need to add the complete path to the filename and a way to create/check for directories. easy
  • Subdivide and smooth missing right click options..

    5
    0 Votes
    5 Posts
    410 Views
    marked001M
    right...that'd work... i'll just be more careful next time and keep the original safe and sound... first time really using the plugin for a project. thanks for the help.

Advertisement