🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
  • WebDialog Javascript callback Maximum message size

    9
    0 Votes
    9 Posts
    3k Views
    C
    Be advised that execute_script is very buggy on Mac. It will mangle the string sent if it contains ";" or "," and probably other chars as well. Also "document." doesnt work.
  • Script to make edges into a curve: needed

    15
    0 Votes
    15 Posts
    2k Views
    JClementsJ
    Edison, I think I may a have a workaround for you. I am certainly not an expert at dealing with contours, but through recent experimentation and the availabilty of newer scripts this could be what you need. You'll will need to check the accuracy of the "re-segmented" contours, however, to see if they are within the tolerances/lever of accuracy you want. See the attached .skp for a mini-tutorial. You will need the Weld.rbby Rick Wilson and the BezierSpline script setby Fred06. If you plan to create a terrain from the contours, then I would suggest TIG's Hidden2Layer.rb (version 1.2) script and use it as mentioned here: http://www.sketchucation.com/forums/scf/viewtopic.php?f=57&t=8726 . In summary, the procedure is this: A. Import the contours. B. Triple click on a contour of segments and WELD. C. Then right click on it and choose the the BZ context option of PolyLine Divider. Do note that for some reason (I think it has to do with the number of segments), the BZ context options may not be available; in that situation then bisect the weld segments into smaller lengths (see the mini-tutorial, Step 2). D. After completing Step 3, then you may want to weld the "segment-reduced" contour path back together into one continuous polyline.[image: Fygv_BZContextMenu.jpg]Mini-Tutorial for BZ method of segment reduction UPDATE: If Weld.rb does not work on all segments of a contour, try a selecting a smaller set of segments. OR, try selecting a few contour elevations (use one of SU's side views to do this), copy and paste them into a new file (or create a component out of them and then do a context menu Save As to create separate .skp), then try to weld, etc., then repeat the process for another set of contours; finally paste these back into one file. Otherwise, have the segments simplified by the surveyor in AutoCad first, or have them subdivide the one DWG file into 4 or more subfiles.
  • [ruby doc] Pages.selected_page=

    2
    0 Votes
    2 Posts
    526 Views
    T
    I'll add this this evening. Thanks. Todd
  • Section cut again

    9
    0 Votes
    9 Posts
    1k Views
    BurkhardB
    Thanks a lot. Forget about create group from slice
  • Change active Scene/Page

    4
    0 Votes
    4 Posts
    600 Views
    R
    There is, but it's rather complicated. You need to use a series of Sketchup.send_action("pageNext:") commands until the Sketchup.pages.selected_page is the one you want to have active. EDIT: It appears there IS a pages.selected_page= method, that is undocumented. The method makes it UNcomplicated, but the undocumentedness re-complicates things
  • Comonent Attributes Not being saved

    2
    0 Votes
    2 Posts
    309 Views
    R
    After assigning the attributes to the definition, did you save out the definition (rather, an instance of it) to an external model?
  • PathCopy not showing

    6
    0 Votes
    6 Posts
    559 Views
    R
    I'll have to check - I may have hard-coded an expected (PC) path that will be different for Mac. Regardless, the script should work, even without the cursor change.
  • Script location help please

    3
    0 Votes
    3 Posts
    432 Views
    S
    Yup curvestitcher was the one I was thinking of. Thanks for the great script Rick.
  • Copying Along A Path

    10
    0 Votes
    10 Posts
    1k Views
    Dave RD
    That's cool. Well, I won't be getting any work done for awhile now. I'm going to be playing with this instead.
  • XML importer

    20
    0 Votes
    20 Posts
    2k Views
    CadFatherC
    it's a given there's no hurry Fred... ..i'm already glad to get an answer to my question - (18 replies to my languishing post in fact) cheers!
  • Is texture pixel color accessible from within ruby?

    5
    0 Votes
    5 Posts
    975 Views
    R
    If a possible application would be contour maps generated from grayscale images, then it's been done. Check the SketchUp Pro user group boards, and look at some OLD ruby stuff. I can't remember the names of things, but TBD had one, and maybe Dider had something.
  • Plugins failed to load

    4
    0 Votes
    4 Posts
    574 Views
    GaieusG
    Flatten.rb is a commercial script and should not be just "put" (copied?) from one jackass' folder into another one's. So please, make sure you are not breaching any copyright conditions.
  • ASCII Exporter for Unreal 3 Editor

    2
    0 Votes
    2 Posts
    550 Views
    R
    Hi Again, Does anyone know anyone that they think could help? Cheers
  • Push/pull to work on 'unopen' groups

    7
    0 Votes
    7 Posts
    753 Views
    A
    I wouldnt want to image the maths involved in offsetting something on a curved plane, offsetting a planar line/polyline is what I was trying to achieve... but since you mentioned offsetting a curve on a surface - that would mean offsetting a 3d curve - which could come very handy - for a lots of applications . If there is anything that could be done to help you with this development - let me know.
  • Reply at Depositary

    4
    0 Votes
    4 Posts
    537 Views
    J
    I've moved watkins post here, where you should be able to respond. Replys in the Depository should now closed.
  • Problem with input box displaying values

    6
    0 Votes
    6 Posts
    712 Views
    fredo6F
    For those interested in Windows-style dialog boxes (i.e. not Web dialogs), I had written a library Libtraductor.rbthat supports also language translation in dialog boxes and ease the checking of parameters (min, max, string patterns, ...). It also preserves defaults and previous values. I use it in Bezierspline and in JointPushPull (and actually in other unpublished scripts). Attached is the script, as well as a tutorial for programmers in English. Here is a snippet of the interface dlg = Traductor;;DialogBox.new title #Declaring fields, either string, numeric or unit-based numeric, or enumeration list; dlg.field_string symbol, label, default, validation_pattern dlg.field_numeric symbol, label, default, value_min, value_max dlg.field_enum symbol, label, default, enum_hash #Showing the dialog box; Hash_results = dlg.show hash_initial_values to drop in Skecthup Plugins folder Tutorial for Ruby script programmers
  • Is there a send_action for the 3DTextTool?

    8
    0 Votes
    8 Posts
    1k Views
    J
    You're welcome. There is at least one list of these send_action numbers. I found one on the Google Pro Group.
  • [ruby doc] Undocumented send_action commands

    3
    0 Votes
    3 Posts
    512 Views
    J
    Not that I am aware of.
  • Sine Curve (wave) script?

    24
    0 Votes
    24 Posts
    5k Views
    J
    I have updated the script to make it remember values between calls. http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=8917
  • Skp Viewer

    7
    0 Votes
    7 Posts
    2k Views
    D
    Hi Burchard Thx for the heads up on xnview in SU Very slick and a great idea. dtr

Advertisement