sketchucation logo sketchucation
    • Login
    1. Home
    2. Frankn
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ”Œ Easy Offset | Offset selected faces in SketchUp in positive and negative offsets. Download
    F
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 27
    • Posts 105
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Creating Components in Cab.rb

      Thanks for the link Dan, I'll give it a try and see how it compares to CutList 4.1

      So is it better to use... entities.add_line([0, 0, 0], [10, 10, 10]) ...which is something new I'll have to learn πŸ‘Š then what this script is using?

      @unknownuser said:

      Well don't feel bad.. because Components are in the second semester course.

      So what you're saying is I'm trying to run before I can walk... πŸ˜†

      If there's a simple tutorial on components somewhere please point me to it, I'd really like to understand this aspect of scripting because it seems like something I'd use a lot of.

      Well back to the books/web for me... wish me luck I need it so far what you and Jim have given me causes Sketchup to crash πŸ‘Š 🀣 and I know it isn't the code you've given me but I think it's where I'm placing it into the script...

      Serenity now!!!

      Thanks,
      Frank

      posted in Developers' Forum
      F
      Frankn
    • RE: Creating Components in Cab.rb

      Thank you so much Jim for taking the time to answer such a seemingly simple thing to do. πŸ˜„

      I still get confused with this part...

      entities = new_component_definition.entities
      entities.add_line([0, 0, 0], [10, 10, 10])

      Is the second line equivelent to the following?

      ls=[] #left panel
      ls[0] = [0, depth, kick]
      ls[1] = [0, depth, height-thick]
      ls[2] = [0, thick, height-thick]
      ls[3] = [0, thick, kick]
      ls_base = entities.add_face ls
      ls_base.pushpull thick

      It's starting to make more sense. πŸ˜„

      Out of curiosity and in the name of learning how to do things why is this code different then what you gave before, which is what I've been trying to make work?

      Frank

      posted in Developers' Forum
      F
      Frankn
    • RE: Creating Components in Cab.rb

      Hi,

      Sorry for digging up an old post but this is exactly the file I'm trying to modify to add components to. As per Dan Rathbun's advice I've read, searched tried to emulate other scripts and I just can't get it to work.

      I just don't graspe the inner workings of how to create components and the more I search the more I get confused because there seems to be a number of different ways to do this and obviously none of which my ruby newbie brain is understanding.

      Any help would be greatly appreciated,
      Frank

      posted in Developers' Forum
      F
      Frankn
    • RE: A few newbie questions...

      Thanks for all the links Dan I really do appreciate your help and time you took to show me how things work around here. Like they say, give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. Looks like I have a lot of reading to do. πŸ˜„

      In my defense I have zero programming experience and I've search a whole lot but just haven't been able to find answers that made sense to my newbie brain. πŸ˜„

      Frank

      posted in Developers' Forum
      F
      Frankn
    • A few newbie questions...

      Let me start by apologizing for what will undeniably be a series of easy things for anyone here to do... but I've searched and tested for answers for the last few days and can't seem to figure these out.

      First... I know how to add an item to a menu and even creat a submenu. But how do I add servel scripts/items to a menu I already created? Example... I created a series of 3(so far) ruby scripts but I'd like for all of them to be in the same submenu... Plugins -> SUBMENU -> ITEM1 -> ITEM2...

      Second... and this one I haven't even figured out at all!!! How do I create components? Example... my script creates a cabinet, how do I make every panel a seperate component?

      Third... how can I call or the scripts from a subfolder within the plugins folder? I want to put all the scripts I create inside a sinlge folder for better organization.

      If it's any help I'm working with the cab.rb script and trying to modify it for my needs...

      Thanks in advance for your time,
      Frank

      posted in Developers' Forum
      F
      Frankn
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 6 / 6