ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • I need a help

    3
    0 Votes
    3 Posts
    184 Views
    D
    Hail Jolran Thank you your help. I will read this lots of informations what was linked by you. I start make my plugin. Now i can make input box and i can give the width, lenght and soo on. And after this plugin draw for me. But i don't know yet, how can i save in a storage my "woods", and after i put in the screen only one click? faanyagjo.rb
  • Load Newton.dylib file via Ruby

    2
    0 Votes
    2 Posts
    128 Views
    thomthomT
    I moved that post to the Developers forum, and I'm closing this one to keep the conversation collected in one thread.
  • Removing unused commands and shortening toolbars

    8
    0 Votes
    8 Posts
    398 Views
    U
    Thanks TIG for the heads up on how to do that - so far I've only needed that small cmd set, and yes I've since realised it's Didiers' plugin not ThomThoms'.
  • Query Tool Toolbar Button

    6
    0 Votes
    6 Posts
    818 Views
    A
    That error does not come from this download, but from "utilities/utilitiestools.rb" that comes with SketchUp. Probably it can't find some resources. You should have a file "…/Google SketchUp 8/resources/en-US/utilities.strings" (or different language code), does this file exist?
  • To detect if a component contains a component

    5
    0 Votes
    5 Posts
    238 Views
    G
    @dan rathbun said: Here's another edition (wrapped in method,) that only works upon the active editing context (to help prevent BugSplats!,) tests first for any definitions and lastly filters out images and groups. thank you for the code i tried it, but it doesn't work, at least on my computer
  • Model Time of Day - Does Anybody Know of a Script or Plugin?

    3
    0 Votes
    3 Posts
    167 Views
    Dan RathbunD
    IF you can, access the ShadowInfo hash directly rather than changing EVERYONE's DynamicComponent class. See: ShadowInfo P.S.: It would be nice if possible, to append a custom DC function, in a singleton manner, to ONLY the specific DC instance in question, rather than modify EVRYONE's set of DC functions. (But I'm not sure it can be done, the way the DCs are currently coded.)
  • New order for toolbars

    2
    0 Votes
    2 Posts
    121 Views
    Dan RathbunD
    You can access toolbars by their name, if you load them into a hash. See: [ Code ] User::ToolbarSet collection
  • Creating SketchUp scene from saved files using Ruby script

    11
    0 Votes
    11 Posts
    2k Views
    M
    Thank you all for your help.
  • Online model generation using ruby

    2
    0 Votes
    2 Posts
    106 Views
    J
    You wouldn't need the Pro version - free would work. The SketchUp/Ruby side of this won't be too hard. You could simply poll for changes in a file, read in the instructions, draw things, and export an image file from a SU plugin. As far as the server goes, if you do not have one setup you could try installing like wamp on your local machine for testing.
  • Transform by vectors and Hash.

    12
    0 Votes
    12 Posts
    303 Views
    jolranJ
    @unknownuser said: NO not now, because the vertice positions are part of the definition, and not part of the individual instance(s). Thanks for answering Dan. It could be an useful addition to the API, IMO. What confuses me is that we are moving the vertices when scaling the instance(s) using Sketchup normal scaling behavior. So why would it be different if doing a tapering ? I know the calculations for tapering is much more complex, but... Maybe there is need for some symmetry calculation I havent thought about.
  • Add_polygon seems very slow

    11
    0 Votes
    11 Posts
    227 Views
    D
    thank you very much for the replies dan and Thomthom, I'll take a look at the code Thomthom experimental, to see if I can use some of this code (google translator)
  • [Tutorial] PickHelper - Visual Guide

    34
    0 Votes
    34 Posts
    2k Views
    H
    @unknownuser said: That doesn't produce visual flickering? Nope, at least none that I notice on my Macbook Pro. Even if there was a little, it would be acceptable for the rock solid performance. --J
  • Group.make_unique VS group.name = name

    14
    0 Votes
    14 Posts
    475 Views
    jolranJ
    That would be better for me. I'll try to clean out the rubbish from the script first. BTW, thanks a lot. You are very helpful back soon..
  • Add_arc etc.

    26
    0 Votes
    26 Posts
    2k Views
    thomthomT
    Probably be good to make a wrapper for the add_arc method.
  • Adding groups to an existing group

    3
    0 Votes
    3 Posts
    147 Views
    sdmitchS
    Thanks TIG. I sure there is a logical explination as to why you have to add an instance to the container group and delete the original but seems strange to me. Anyway, using your suggestions, this is the modified code and it works just like I wanted. mod = Sketchup.active_model ent = mod.active_entities sel = mod.selection grpA = ent.add_group; grpA.name="container" tr=Geom;;Transformation.new() for f in ent.grep(Sketchup;;Face) grpB=ent.add_group f; tr=grpB.transformation grpB.name="#{f.bounds.width} X #{f.bounds.height}" grpC=grpA.entities.add_instance(grpB.entities.parent,tr) grpC.name=grpB.name grpB.erase! end puts "grpA contains #{grpA.entities.length} entities"
  • Mouse move handling when dropping

    2
    0 Votes
    2 Posts
    173 Views
    Dan RathbunD
    @algorytmus said: ... except when something is dragged from another application but when moving the mouse (preview drop) over a model (sketchup view) none of those mouse events are fired for me in the Tool implementing class. What is something ??? a SKP file ?? an Image file ?? (1) The application drag-and-drop handler is not directly exposed via the SketchUp API. Instead, native SketchUp tools are activated when VALID objects are dropped: Images: The ScaleTool is activated after the image is inserted, and selected.* SKP file: The MoveTool is activated after the skp is added to the DefintionList, and an instance is inserted and selected. So in both cases, dropping those valid objects, SHOULD cause your tool's deactivate() callback to fire, just prior to the native tool becoming active.
  • Webdialog and input box

    5
    0 Votes
    5 Posts
    238 Views
    A
    You have confirmed my fear that a simple issue compromises what I can do. Unless there is a way to put an image into an input box it looks as if I will have to put the input which has about a dozen data items into the webdialog.I will have to master pushing data back to Ruby from the Webdialog. Thanks
  • [Ruby] Help - Sometimes a group, sometimes not.

    11
    0 Votes
    11 Posts
    359 Views
    T
    Thanks Dan, I'll go check that out.
  • Use of start/commit_operation

    10
    0 Votes
    10 Posts
    271 Views
    J
    Dan and thomthom, thanks for your time and answer.
  • Get list of faces with associated corners

    8
    0 Votes
    8 Posts
    200 Views
    thomthomT
    Another thing to beware of: SketchUp stores ALL units in inches - internal. Always. It is only right when a unit is displayed in the UI that it is converted into the model units. So all coordinate data you get from SketchUp is in the Length class - which is a subclass of Float with extra methods to convert into model units for presentation. Something to beware of when you output the data. More info on units in SketchUp: http://www.thomthom.net/thoughts/2012/08/dealing-with-units-in-sketchup/

Advertisement