💡 LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering Download Trial
  • Round straight with round ends

    4
    0 Votes
    4 Posts
    1k Views
    D

    Ah...yes, I didn't think of selecting more than 1 edge, thanks!

  • First plugin published by warehouse

    3
    0 Votes
    3 Posts
    1k Views
    K

    It already is available here. I am making some more changes before updating it here.

    Keith

  • Enable SketchUp tools

    6
    0 Votes
    6 Posts
    1k Views
    TNTDAVIDT

    Thank you for these solutions. ☀

  • Trying to set global axis from API

    5
    0 Votes
    5 Posts
    1k Views
    K

    Thanks for the comments. This looks like a much more involved solution than my problem is worth. I think I will just stay with the requirement that component joint face needs to hahe 2 edges, common vertex and intersect at 90 degrees to work with my joint tool plugin. I was thinking of a plugin that would add a rectangular face on the existing face to be used for joint detail then deleted when finished. This worked for parts aligmed to the globel axis but not with rotated parts.

    Keith

  • Problem with API or my plugin?

    2
    0 Votes
    2 Posts
    1k Views
    K

    This is the first time I didn't get a response on a code question. However by making this test plugin I did find out what was wrong with the results on the counter clockwise edge selection and this has led to a much simpler work around to clean up the push pull results. I am running a code that looks for edges with 0 or 1 face attached and removing them then loop thru again as the first loop exposes additional edges with 0 or 1 face only. I still think the code is correct and there is a bug in SketchUp API when a pus pull face intersects the outside edge. I have seen this in other code I have written.

    Keith

  • HTMLDialog vs WebDialog?

    23
    0 Votes
    23 Posts
    5k Views
    Dan RathbunD

    Basically I'm trying to prompt you to learn how to read Ruby error and backtrace messages.
    “filename:lineNo: inmethod”‘ or “filename:lineNo.”`

    http://ruby-doc.org/core-2.2.4/doc/syntax/exceptions_rdoc.html
    http://ruby-doc.org/core-2.2.4/Exception.html

    @medeek said:

    Okay 95% of that just went over my head, but I'll try and decipher into terms I can understand.

    Link Preview Image Data validation - Wikipedia

    favicon

    (en.wikipedia.org)

    An example in Ruby of testing if an object reference is pointing at an object of a certain class:
    if obj.is_a?(NilClass)
    ... or ...
    if obj.is_a?(Float)

    An example in Ruby of validating that an object reference call responds to a certain method call:
    if obj.respond_to?(:methname)
    ... and testing for the "asterisk" method specifically:
    if obj.respond_to?(:*)

    @medeek said:

    But why would this error only be raised for SketchUp running on MacOS and not Windows?

    I don't know (offhand) as I avoid Macs myself. (But OSX and MS Windows use different sets of keycodes.)

    Actually, looking at the backtraces (in your original error listing) the errors are kicked off by a LButtonDown keypress, but are occurring in the `` create_timber_geometry()`' method, lines 1064 and 1355.

  • Convert to length error

    2
    0 Votes
    2 Posts
    1k Views
    S

    Can't say with absolute certainty without seeing your code, but you are most likely right about the decimal point mark causing the error. Depending on your OS and its settings, the mark may or may not automatically change when you change the input language. You may have to change the locale and reboot.

  • AI in SketchUp

    2
    0 Votes
    2 Posts
    1k Views
    F

    For Sketchy Physics there are some models in 3D-Warehouse with approaches to AI.

  • Dynamic Component DCFunctionsV1 within in Module

    34
    0 Votes
    34 Posts
    8k Views
    michaelwhksgM

    A proposed layout for a new site that shows the pallet racking, with a dedicated mezzanine on the left and conveyor system for segregating the inventory via dispatch routes.

    Link Preview Image WarehouseBlueprint - Warehouse Layout Design Software

    Model engaging 3D warehouse in 15 minutes. Build up warehouse layout design with software. Create visual presentation. WarehouseBlueprint.

    favicon

    WarehouseBlueprint (warehouseblueprint.com)

    Warehouse Layout

    Warehouse Layout - Rendered

  • Hexagon

    2
    0 Votes
    2 Posts
    1k Views
    sdmitchS

    @medeek said:

    Is there a simple way to draw a hexagon with the API, I'm not seeing it. I would like to specify a center point and radius similar to what you do to add a circle.

    entities.add_ngon(center,normal,radius,sides)

  • Question about cubicpanoout.rb

    17
    0 Votes
    17 Posts
    3k Views
    filibisF

    @valerostudio said:

    This is an old posting but seems to be an issue in 2017. Anyone have a solution for this?
    If you are experiencing 'grey bars' problem, try using these resolutions: 1020, 2040, 4080 etc... (multiplied by two)
    I don't know why but it works that way.

    Also check this plugin for a better version with additional WebGL features: WebGL Cubic Panorama

  • Method or plugin for subdividing like this sample

    31
    0 Votes
    31 Posts
    5k Views
    T

    JQL, sorry your "gardening" efforts haven't born fruit. Your right that Twilight has it's roots in KT. Really surprised that other render engines don't have a bevel function, particularly those that are a lot more pricey than Twilight. "planting a seed" might have been the wrong term. Sounds like it's time for screaming, shouting and name calling.....

  • Geom::Transformation

    5
    0 Votes
    5 Posts
    1k Views
    anteolicA

    Thanks!

  • No output text on Windows 7 system command

    4
    0 Votes
    4 Posts
    2k Views
    M

    Jiva,

    It's complicated. I started using Ruby years ago with SketchUp. Been away from SketchUp for while, but I'm still using Ruby.

    As I recall, the files get split into two locations, you have to edit the SketchUp.exe file, etc.

    I've also been building Ruby for quite a while, so the files I used were my own and built with current compilers & toolchains. With SU 2017, it can only run with Ruby 2.3 due to the changes that occurred in Ruby 2.4.

    There may be a publicly available build of Ruby 2.3 in the (hopefully near) future...

  • DOC MULTIPLE REFERENCE MODELS

    4
    0 Votes
    4 Posts
    1k Views
    jujuJ

    Sorry, I'm struggling to understand what you're getting to, I won't be able to help you.

    Please be sure to update your profile (it is currently showing you're working on SU7), this will help others in assisting you.

  • SketchUp Update Broke the Foundation Plugin

    8
    0 Votes
    8 Posts
    2k Views
    Dan RathbunD

    Or single object extension via mixin module (as shown above.)

    unless bb.extend(BB_Volume).volume == 0.0 # do code here end

    Or if only supporting Ruby 2.x+ SketchUp versions, you can use class refinements that are only active within your files.
    See: http://ruby-doc.org/core-2.0.0/doc/syntax/refinements_rdoc.html

  • Ruby not returning correct dimensions

    4
    0 Votes
    4 Posts
    1k Views
    TIGT

    You have found your own solution.
    😉

  • Extension Licensing System

    4
    0 Votes
    4 Posts
    1k Views
    michaelwhksgM

    Thanks a lot, Rich. Will send a PM to him.

  • Extension Signing

    11
    0 Votes
    11 Posts
    7k Views
    G

    My CabMaker rbz is quite large, just over 20 megabytes. I often get a Browser time out - however if I wait a bit and then reopen the portal the message that I can download the extension is there. I then check the rbz for rbe files and rb files. If only the 1 rb file and lots of rbe then I am satisfied. Finally I install the plugin and test it out.

    The reason for the large size is the manual is almost 8 megs (180 pages with lots of images)
    Also my context sensitive help folder has 360 png files and is now over 6 megs.

    I use a batch file that backs up my rb files into the proper version numbered folder and creates the rbz package for the portal. The batch file also moves my testing configuration out of the plugin and moves it back after the package is complete.

    I also simplify things by using a public area for my plugins. This area is accessible by all versions of Sketchup from SU 7 all the way to SU 2017.

    require 'sketchup.rb'
    require_all('c:/users/public/documents/sketchup')

  • Delete a list of components by their definitions.

    24
    0 Votes
    24 Posts
    4k Views
    TNTDAVIDT

    **I can not understand why the texture applied to "TOTO" is purged.

    If I go through "purge_unused" the texture "TOTO" is not deleted.

    So I'll get around the problem with another method.

    To delete a list of materials, I can write this:

    mat_names = ['TOTO','LOLA','CUBE'] materials = Sketchup.active_model.materials mat_names.each{|mnj| materials.remove(mnj)}

    Can we do the same with "purge_unused", so that the unused materials of the list are deleted?

    Thank you for your help.**

Advertisement