sketchucation logo sketchucation
    • Login
    1. Home
    2. Bob James
    3. Posts
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 66
    • Posts 1,110
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Global Layer Name Change

      Many thanks, TIG. I don't know anything about ruby language (that is, I don't know how to program in ruby), but I'll sure give it a try.

      The real layer names are more like:

      Aqua - Payload Vertical
      Aqua - Payload Horizontal
      Aqua - Tilt Fixture
      Aqua - Simple Stand
      etc......
      Walls
      Floor
      Ceiling
      etc......
      Those with a prefix are unique to the current scenario: those without a prefix are "standard" for all scenarios.

      So, if I understand your approach, I would first strip off the prefixes, then add the new one.

      "txt1 = "Aqua -"; "txt2=""; layer.name=layer.name.gsub(txt1,txt2)]"
      Would this strip the Aqua prefix and ignore those without that prefix?
      How would I then change the prefix (to only those that had the Aqua prefix before) to "Jason"?
      How would it deal with layers that did not have a prefix (or had some other prefix)?

      Are there some ruby commands that would do something like (with txt_oldprefix and txt_newprefix being inputs):
      txt_oldprefix = "Aqua"
      txt_newprefix = "Jason"
      LOld = Len(txt_oldprefix)
      LName = Length(layer.name)
      If (left(layer.name,LOld) = txt_oldprefix,then layer.name = txt_newprefix + right(layer_name,LName-LOld))

      Maybe I'm just too dense and should continue going through each layer name and change it by cut and add. It's just such a bummer when there are twenty-something affected layers πŸ˜’

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • Global Layer Name Change

      Is there a ruby to change the names of several layers at once. I have a main model into which I put different customer equipment. The customer equipment layer names begin with the customer name. When I'm dealing with a new customer and some of the equipment is basically the same, I want to change all of the names. For example,

      Jones - Tug
      Jones - Trailer
      Jones - Tractor
      Jones - 5th Wheel Dolly

      I want to be able to quickly change it to:
      Adamson - Tug
      Adamson - Trailer
      Adamson - Tractor
      Adamson - 5th Wheel Dolly

      Or if I've developed a new model and want to re-organize the layers with prefixes.

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • RE: [Plugin] Layer Manager New Release

      Layer Manager is one of my top-usage plug-ins: especially the "all layers invisible except current" (the one with the red dot) and "all layers visible" (the one with the green dot).
      Didier has just released a new version that "remembers" the state of the toolbar so you don't have to keep opening it.

      Very useful (at least for me).


      Picture 22.png

      posted in Plugins
      Bob JamesB
      Bob James
    • RE: Can't Make Layer Manager Toolbar "stick"

      @thomthom said:

      Contact the maker of the plugin and explain what's happening.

      Yes, I'd seen mention of the problem elsewhere. I thought first just to modify Didier's ruby, but it is incrypted: so I sent a PM to him. Have not heard back.

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • Can't Make Layer Manager Toolbar "stick"

      Layer Manager is one of my most used rubies. However, each time I start SU7 (Mac) I must go to View/Tool Palettes/Layer Manager to get the toolbar: all my other toolbars "stick" (i.e., when I start a new session of SU7 the toobars are where they were when I last used SU7).

      Is there some way to fix this?

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • RE: [Plugin] Component Spray update

      @jackson said:

      It'd be great to be able to scatter trees randomly, but at an average of say 1 instance per 10mΒ². [/quote]

      I'm looking for a way to randomly place people in a room: Jackson's suggestion would really do that job.

      Didier: Looking forward to your having enough time to re-address this Ruby.

      posted in Plugins
      Bob JamesB
      Bob James
    • RE: Call to Mac users for script portability

      Great! Thanks for the quick answer.

      In your U-Tube demo you stretch a sphere into a cylinder.
      I clicked on the Stretching Tool, oriented the grid by clicking on a line in another part of the screen, but when I stretch it I don't get the cylinder.
      Obviously, this is the first time I've tried this incredible tool.


      Picture 20.png


      Picture 18.png


      Picture 19.png

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • RE: Call to Mac users for script portability

      I don't seem to get the expected result on my iMac when using the Radial Bending function: the object just "leans" instead of bending (see attached picture)

      All other functions work great!


      Picture 17.png

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • RE: [Plugin] Toggle Units

      Only the 10th and 11th icon work on my Mac version. Also, as mentioned previously, the buttons stay depressed even when you press a different one.
      Also, there is not much difference in the gray color between pressed and not pressed for the "Dec" button (when it is in its "not-pressed" condition it is already grayed out, but not quite as much as when it is pressed). See Attachment.

      When I get it working it will be of significant value since I often work with both decimal inches and feet/inches.


      !["Dec" not pressed](/uploads/imported_attachments/zvhk_Picture16.png ""Dec" not pressed")

      posted in Plugins
      Bob JamesB
      Bob James
    • RE: [Plugin] Layer Manager New Release

      Curious problem on my Macs (work and home): The Layer Manager toolbar does not appear automatically. Each time I open SU7 I have to go to View/Tool Palettes and click on Layer Manager. Sort of a nuisance, but Layer Manager is a major player for me in SU.

      Is this normal or do I have a problem? ❓

      posted in Plugins
      Bob JamesB
      Bob James
    • RE: Google....give us back our back button[SOLVED]

      I, too, moved my SU6 component library over to SU7; but it seems like Google could come up with a better (improved) library for SU7.
      But I also like the ability to directly insert a warehouse model so I wouldn't want to see that go away.

      Back Button: Absolutely!!

      posted in SketchUp Feature Requests
      Bob JamesB
      Bob James
    • RE: Ruby to organize plugins

      @unknownuser said:

      @unknownuser said:

      Jeff,

      Where can this be found for download/purchase?

      you can buy it here..

      http://www.apple.com

      just spend a few grand on their hardware and they'll throw the feature in for free. πŸ˜„

      it's built into leopard.. it works with all apps... i see you also have a mac so try it out on there.

      certain apps don't get that big of an advantage (photoshop for instance: the clone stamp tool is only in a tool bar and you can't navigate the menus to get to it so it won't show up in the search).. it works really well with sketchup however because all of the tools/actions can be found via the menus.

      it's only searching the menus items and help files..

      Okay, you got me there 😳 Seems like a sucker punch though πŸ˜†
      Thanks, though, I'd not realized that the Help button would do that.

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • RE: Ruby to organize plugins

      Jeff,

      Where can this be found for download/purchase?

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • RE: Ruby to organize plugins

      I put IDXRenditioner.bundle in the SmustardOrganizerExcludeFolders.txt file, but I still get the same error.
      What's really strange is that IDXRenditioner.bundle is a Mac file for IDXRenditioner and is not, and should not be, in the PC Plugins folder. πŸ˜’

      I've reloaded IDX Renditioner so I know it's the latest PC version 1.1.5.78

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • RE: Ruby to organize plugins

      Chris,

      Here's the whole error statement.


      Picture 13.png

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • RE: Ruby to organize plugins

      Now if I could just get it to work 😞

      File Organizer.rb is in the Plugins folder but I get the error message: "Error Loading File Organizer.rb"

      Using SU7 version 7.0.10247


      Picture 11.png

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • RE: Ruby to organize plugins

      Super 😍
      Many thanks, Chris. Just what I was looking for.

      I've purchased and installed it on my PC.
      I'm primarily a Mac user, but I have SU7 for both Mac and PC.

      Rick: Looking forward to the Mac version πŸ‘

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • Ruby to organize plugins

      With all of the really great new plugins, and my old favorites, my Plugins menu has gotten out of hand. Some plugins I use every day, so no problem. But others I need them when I need them (if you get my line of thought πŸ˜‰ ). So, it would be really valuable to have some way of organizing the Plugin menu with user defined categories.

      Can this be done?

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • RE: Animation2.rb

      Jim,

      Thank you: to think that I thought I wouldn't need Ruby Examples 😳

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • Animation2.rb

      I wanted the old capability under animation to spin the model. I downloaded the old animation2.rb, but got this:

      Error Loading File animation2.rb
      /Library/Application Support/Google SketchUp 7/SketchUp/Plugins/animation2.rb:1: Invalid char `\003' in expression

      What can I do to fix this ruby so it will work? Is there a newer ruby that will do the same thing?

      posted in Developers' Forum
      Bob JamesB
      Bob James
    • 1
    • 2
    • 52
    • 53
    • 54
    • 55
    • 56
    • 55 / 56