đź«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
  • Time Tracker

    10
    0 Votes
    10 Posts
    445 Views
    thomthomT
    Moved the thread to the Developer's forum. We have reorganized so that the Plugin section is only a list of plugins you can download and use.
  • Plugins by Sub menu by Authors

    9
    0 Votes
    9 Posts
    1k Views
    thomthomT
    Moved the thread to the Developer's forum. We have reorganized so that the Plugin section is only a list of plugins you can download and use.
  • Mouse event or...

    3
    0 Votes
    3 Posts
    198 Views
    thomthomT
    Moved the thread to the Developer's forum. We have reorganized so that the Plugin section is only a list of plugins you can download and use.
  • Bounding box

    4
    0 Votes
    4 Posts
    326 Views
    thomthomT
    Moved the thread to the Developer's forum. We have reorganized so that the Plugin section is only a list of plugins you can download and use.
  • Web Dialog and Data

    10
    0 Votes
    10 Posts
    1k Views
    thomthomT
    Moved the thread to the Developer's forum. We have reorganized so that the Plugin section is only a list of plugins you can download and use.
  • Locate camera...

    9
    0 Votes
    9 Posts
    966 Views
    thomthomT
    Moved the thread to the Developer's forum. We have reorganized so that the Plugin section is only a list of plugins you can download and use.
  • Intersecting models

    5
    0 Votes
    5 Posts
    313 Views
    thomthomT
    Moved the thread to the Developer's forum. We have reorganized so that the Plugin section is only a list of plugins you can download and use.
  • Hi am a newbie here, starting scriptwriting

    5
    0 Votes
    5 Posts
    285 Views
    thomthomT
    Moved the thread to the Developer's forum. We have reorganized so that the Plugin section is only a list of plugins you can download and use.
  • GrowFamily

    29
    0 Votes
    29 Posts
    1k Views
    thomthomT
    Moved the thread to the Developer's forum. We have reorganized so that the Plugin section is only a list of plugins you can download and use.
  • In Need of a Plugin

    7
    0 Votes
    7 Posts
    2k Views
    thomthomT
    Moved the thread to the Developer's forum. We have reorganized so that the Plugin section is only a list of plugins you can download and use.
  • Rotate Component Axis

    9
    0 Votes
    9 Posts
    485 Views
    honoluludesktopH
    Hmm... on further inspection, while I can apply the method, I did not get the desired output. The resulting transformation has the bounding box, and axis (I think) pointing in the right direction, but the component did not return to its original location. Maybe I can figure it out this weekend. I often use UI.messagebox (variable) to check my work as I go along, but some (?) of the transformations do not seem to display until the program has been completed.
  • No UI.hide_inspector ?

    10
    0 Votes
    10 Posts
    204 Views
    Chris FullmerC
    Make sure to add it tot he feature request someone. They are responsive to requests and they like to be able to track them. Chris
  • Tools and keys pressed

    4
    0 Votes
    4 Posts
    331 Views
    thomthomT
    "degree" seem to work as input as well. @tig said: I don't think you can 'switch off' the VCB character recognition, IF you want to use it to take lengths etc, BUT you can switch of the VCB completely, with this def, within your Tool using Off is the default. @tig said: You can then watch for user key-presses [Tool.onKeyDown or Tool.onKeyUp] within your own Tool without risk of the VCB taking something the wrong way... Problem is that the shortcuts still trigger. I was enabling the VCB in hopes it'd prevent that and catch the keys... I've even tried returning false on the Key events - in hopes to suppress the keys being sent to the rest of the system - like you do in HTML + Javascript. But no luck there either. Bugrit, millennium hand an' shrimp! Anther idea crash and burns.
  • Sub-component creation, decoration, etc?

    19
    0 Votes
    19 Posts
    1k Views
    thomthomT
    Yea - I miss a bug-fix list in the release notes. Gotto test this with older SU versions though.
  • How to display Tree structure

    8
    0 Votes
    8 Posts
    369 Views
    Al HartA
    You can also use the SKP "Simple Extrension" API to put your tree structure into a C++ list box. Here is a sample we use to display component categories and select components for placement. (click on image to remove scroll bars) [image: MVsq_tree.jpg]
  • Options for Input Dialog?

    11
    0 Votes
    11 Posts
    445 Views
    TIGT
    @martinrinehart said: @scetchnscribble said: I'm looking for a few simple, but well written, examples to learn from. I'm looking for Ruby writers to test drive chapters 18 and 19: http://www.martinrinehart.com/models/tutorial/ Should get you from Ruby to checkboxes fast. I'll be looking at it - several of my scripts would benefit from web-dialogs and the ability to keep them open whilst you tweak stuff interactively... Later this week I'll try and feed-back...
  • Model.X_operation

    3
    0 Votes
    3 Posts
    149 Views
    Chris FullmerC
    Yeah, I use start_operation and abort_operation in pretty much every script. They work with the "undo stack". So if you write a script that loops 20 times and adds a line in each loop, SketchUp will count that as 20 separate operations. So to fix wthat, you can do: ` model.start_operation "Line Adder" code to add my lines.... model.commit_operation` By wrapping the code within the start and commit operations, it all just turns into a single commend. So ctrl-z (or EDit > Undo) will undo all 20 lines in one shot. AND the "Line Adder" text will be displayed in the Edit > Undo menu. Chris
  • Div.appendChild or innerHTML += ?

    5
    0 Votes
    5 Posts
    359 Views
    thomthomT
    @martinrinehart said: See Chapter 20, when I finish it, for a thorough answer. Quick answer: Depends on content. Just text? innerHTML is far easier. Want to add a table? innerHTML is the hard way. Isn't there also innerText for adding just pure text? Though - this might be IE only...
  • Components to layers?

    8
    0 Votes
    8 Posts
    371 Views
    TIGT
    It IS possible but I'd not recommended it... Best if a Component's base geometry is left on Layer0 and the Instances are placed on Specific Layers in each Model that way you can have some 'trees' on and some off by having them on TREE-PH01 and TREE-PH02 layers for example... An outline to do what you want is a tool you run and it asks you for a folder to process, starting in the Components folder. You navigate to say your 'Trees' folder and pick one of the SKPs in there. Now it knows which folder to process. Now asks for the Layer name - it could read the base-folder name and capitalize it and truncate to 4 characters to suit AIA standards etc - in the dialog you [accept or] enter a name - say 'TREE' for the layer. It then imports each SKP file in turn as a Component. It takes that Component-Definition's entitles [and any sub-component-instance definition's entities ?] and puts them onto a Layer called 'TREE'. It then exports that Component back into the same location, overwriting the original. All SKPs are processed. You do a folder of similar Components at a time. You might need some pre-processing thinking and say split your Planting into folders like Trees, Shrubs, etc IF you want separate layers for these... My import_from_folder.rb is an example of how to import files... perhaps more applicable my batchEraseFlatInstances.rb which does something similar to what you want, BUT that goes through a list of SKPs in a selected folder - imports them, edits them to erase 'flat' instances within them and then does a save_as on the definition back to where it was...* The changing of layers etc is also to be found in many scripts available here and could be substituted for the erase 'flat'... part of this script*...
  • View.draw - what font and size?

    5
    0 Votes
    5 Posts
    297 Views
    TIGT
    @thomthom said: I changed the Screen Text and the Leader Text in Model Info - but none of that affected the text produced by view.text. In a way I hope that it doesn't use the setting of any of these - as calculating the position of text would be completely impossible if it did (as oppose to just difficult if it's fixed.) You are quite right - I quickly did the test using Chris's Bender Script that puts up 'start' and 'end' text, BUT I now discover that this text isn't view.text at all, as I had thought - it's actually some plain leader-text that is added then deleted ! Sorry for the confusion Seems that the draw.text IS predetermined and unchangeable after all

Advertisement