ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Resizing images via SU Ruby

    2
    0 Votes
    2 Posts
    299 Views
    thomthomT
    Oh crap. That linked to a PHP library... ?
  • Select a Group in Ruby code instead of using the mouse

    3
    0 Votes
    3 Posts
    320 Views
    TIGT
    If you want to clear any previous selection first use... Sketchup.active_model.selection.clear then Sketchup.active_model.selection.add(mogroup)
  • [SOLVED]set standard view

    15
    0 Votes
    15 Posts
    805 Views
    P
    Overview of the code for each standard view (informative) Top direction = Z_AXIS.reverse Sketchup.active_model.active_view.camera.set( ORIGIN, direction, direction.axes.y) Sketchup.active_model.active_view.zoom_extents Bottom direction = Z_AXIS Sketchup.active_model.active_view.camera.set( ORIGIN, direction, direction.axes.y) Sketchup.active_model.active_view.zoom_extents Front direction = Y_AXIS Sketchup.active_model.active_view.camera.set( ORIGIN, direction, direction.axes.y) Sketchup.active_model.active_view.zoom_extents Back direction = Y_AXIS.reverse Sketchup.active_model.active_view.camera.set( ORIGIN, direction, direction.axes.y) Sketchup.active_model.active_view.zoom_extents Left direction=X_AXIS Sketchup.active_model.active_view.camera.set( ORIGIN, direction, direction.axes.y) Sketchup.active_model.active_view.zoom_extents Right direction=X_AXIS.reverse Sketchup.active_model.active_view.camera.set( ORIGIN, direction, direction.axes.y) Sketchup.active_model.active_view.zoom_extents Iso direction=Geom;;Vector3d.new -0.666667, 0.666667, -0.333333 Sketchup.active_model.active_view.camera.set( ORIGIN, direction, direction.axes.y) Sketchup.active_model.active_view.zoom_extents This emulates the standard cameras, combined with zoom extents. Credits to ThomThom!
  • Render options - profile only?

    4
    0 Votes
    4 Posts
    343 Views
    Dan RathbunD
    @honoluludesktop said: Not the profile in "styles"? NO ... That is DrawSilhouettes in the Page's rendering_options hash. rendering_options['DrawProfilesOnly'] must have been related (or was intended to be used for something related.)
  • Plugin for Sketchup using VB.NET or C#

    7
    0 Votes
    7 Posts
    10k Views
    P
    i'm not into the dll stuff, but i'm currently working on communication between Sketchup and Microsoft PowerPoint and Microsoft Project. Win32OLE.so can be used in that case
  • An intereting question

    6
    0 Votes
    6 Posts
    353 Views
    Dan RathbunD
    @zps222 said: Is it possible that Only run the ruby script to build the model, without "openning" SketchUp. You can use Ruby to write a Collada XML file (.DAE), and then that can be imported into Sketchup.
  • Is window.location="skp:" a protocol?

    6
    0 Votes
    6 Posts
    871 Views
    Dan RathbunD
    Yup ... but really the better course would be duplex pipes.
  • Ruby widechar filenames not supported

    2
    0 Votes
    2 Posts
    264 Views
    thomthomT
    I ran into that as well. My write-up from back then: http://forums.sketchucation.com/viewtopic.php?f=180&t=20657 (Probably outdated and not 100% correct.) I had thought of doing a CExtension available, with some basic file, read,write,exist? methods - but I'm not that familiar with C yet.
  • Points equal but distance is not larger or less?

    3
    0 Votes
    3 Posts
    293 Views
    AdamBA
    Sure you know this, but if you're comparing distances rather than interested in the absolute distance, the fastest way will be to project a vector onto itself using scalar product. p1.dot(p1) < p2.dot(p2) Adam
  • JS loading problem under Mac OS X SU

    14
    0 Votes
    14 Posts
    2k Views
    Dan RathbunD
    @richmorin said: It turns out that the relative paths to my library JS (and probably CSS) were working under the browsers, but not under SU. !@#$%^ (Thanks, Dan!) Ok that's a common booboo, nothing too bad. There's a fix we talked about in another thread where we were brainstorming how to set up a "mini" 3Dwarehouse for Eric's SketchTHIS.net website: Re: Download to Sketchup button
  • Get list of colour names?

    5
    0 Votes
    5 Posts
    313 Views
    Dan RathbunD
    @thomthom said: Thought it'd be in a collection class. Like Colors (if it had existed) It is... but the collection is inside the class, where it belongs. @thomthom said: Or Sketchup.colors - as a list of the colours SketchUp recognized. That could be implemented... but would just be a method that accessed the data structure in the Color class. Don't want to overload the parent module with too many methods.
  • WebDialog Sub Forum? (Poll added)

    25
    0 Votes
    25 Posts
    2k Views
    4
    @ webdialog votes: Yes!I have in fact been using sketchup's "UI::WebDialog.new()"frequently. The Attachment below is a webdialog that contains easy-to-access tools. Contains weld, delete complanar edges, makeface, and more.Just make sure 'ToolsInDialog.rb'(file) and 'stuff'(folder) are in "Plugins".It may have errors, but it is being checked. [image: Nyif_Capture.JPG] Tools In A Dialog
  • About generating KMZ using Ruby Script instead of &quot;Click&quot;

    2
    0 Votes
    2 Posts
    303 Views
    TIGT
    Use Sketchup.active_model.export("folderpath/file.kmz",false) Next for exporting to Google Earth ? Try UI.openURL("folderpath/file.kmz") ?
  • About color

    14
    0 Votes
    14 Posts
    670 Views
    Z
    Thank you all guys
  • View.zoom(entity) for entities outside the context?

    2
    0 Votes
    2 Posts
    187 Views
    thomthomT
    Using view.zoom(entity) - then transforming the camera's eye, target and up worked.
  • Getting the oriented boundingbox?

    5
    0 Votes
    5 Posts
    330 Views
    thomthomT
    Success!
  • WebDialog.write_image troubles.

    8
    0 Votes
    8 Posts
    515 Views
    TIGT
    @adamb said: you sure, TIG? I'm certain I tried doing a html+js progress bar and found its actually run from inside the Ruby execution loop. Yes I've just done it! Sleeping will slow the changes to the displayed dialog but it won't stop it loading as it is currently set...
  • Followme on multiple line

    4
    0 Votes
    4 Posts
    351 Views
    N
    haha yeah I was looking at the argument ! Arguments: edge1 An Edge object to follow. I like java for having api doc clearer Ill read the description too in the future. thanks !
  • [Resolved] How select a face created in another face?

    7
    0 Votes
    7 Posts
    350 Views
    L
    @unknownuser said: If you are using entities.add_face, the new face created is returned as the result. You can create the face with either lines (edges) or points. No big deal. Yes .. You're right. This morning I could get tested and worked properly in this way. Thanks
  • Two JavaScript Points

    2
    0 Votes
    2 Posts
    216 Views
    Dan RathbunD
    @martinrinehart said: Dan, if you know the answer, please be a little slow to post it. .. yuz callin' me Slow, cuz'n ??

Advertisement