sketchucation logo sketchucation
    • Login
    1. Home
    2. Frankn
    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!
    ⚠️ Important | Libfredo 15.8b introduces important bugfixes for Fredo's Extensions Update
    F
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 27
    • Posts 105
    • Groups 1

    Frankn

    @Frankn

    10
    Reputation
    1
    Profile views
    105
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Frankn Unfollow Follow
    registered-users

    Latest posts made by Frankn

    • RE: Help needed with Sketchup.exe -RubyStartup

      Let me try and explain what I'm trying to do because I have a few things I'd like to accomplish... this being what I think should be the first step. Though I tend to change/modify my ideas as I work on them.

      Basically I have a cabinet plugin I'm working on and one thing I'd like to do is add nesting/cut sheet/layout functionality... so basically...

      • identify all the top faces of the panels (I can do this).
      • make a copy of the faces before adding them to an array... still need to figure this out.
      • launch a new instance of SketchUp and adding the faces from the array I copied... I was thinking of making a ruby script to do this and then launch/open a plugin to manage the nesting options.

      I got the idea after finding this...
      https://community.sketchucation.com/topic/139502/sketchup-command-line-switches

      Hopefully that's not to confusing and makes some sense.

      posted in Developers' Forum
      F
      Frankn
    • Help needed with Sketchup.exe -RubyStartup

      Hello everyone and happy new year!

      I'm trying to launch a new instance of SketchUp and have it open a plugin at start up... this what works to launch SketchUp but it doesn't run the file. Any ideas what I'm doing wrong?

      For now the file is just printing a line to the ruby console.

      path=File.join(__dir__, "test.rb")
      
      system('start "New SketchUp Window" "C:/Program Files/Sketchup/Sketchup 2019/SketchUp.exe" "-RubyStartup path"')
      

      Frank

      posted in Developers' Forum
      F
      Frankn
    • RE: Get coordinates of nested components

      @fredo thanks for your reply...

      So if I understand what you're saying, I need to find all the nested parent components first and there location and from there iterate the nested child components of each nested parent component to get the cumulative location?

      Sorry I think I even confused myself! πŸ˜•

      posted in Developers' Forum
      F
      Frankn
    • Get coordinates of nested components

      As the title says... I want to get the coordinates of all nested components.

      I've searched but admittedly I don't really understand how transformations work so I might not be searching correctly.

      When iterating a component I can get the origin of each nested component but that only returns the coordinates relative to it's immediate parent but not relative to the whole component tree... if that makes sense.

      I'm assuming I would have to add each relative component transformation but I have no idea how to do that.

      posted in Developers' Forum
      F
      Frankn
    • How to replicate change axes

      Is there a way to change the axes of a component instance like you would by right clicking and selecting change axes?

      I've searched but haven't found anything, I tried applying a transformations and nothing works!

      Thanks

      posted in Developers' Forum
      F
      Frankn
    • RE: Best practices for creating an rbe

      Where can I find info and/or examples on how to set this part of the loader file? I'm searching but not finding anything...

      require "Author_MultiClassPlugin/MultiClassPlugin_SharedConstants.rb"
      
      include SharedConstants # mixin the constant module
      

      And this from the SharedConstants file?

      SOME_SEARCH_PATTERN ||= /^Author/
      

      Thanks

      posted in Developers' Forum
      F
      Frankn
    • RE: Best practices for creating an rbe

      Thanks for the info Dan... I'll check out those forums. I wasn't even aware that the Sketchup API had it's own require method and it explains why I'm having problems. I guess I have some more learning and reading to do! πŸ˜„

      posted in Developers' Forum
      F
      Frankn
    • Best practices for creating an rbe

      I've been trying to get a plugin signed and running into some issues which seem to be related with require... I get these errors...
      @unknownuser said:

      Error: #<LoadError: cannot load such file
      .

      I found this post https://forums.sketchup.com/t/cant-load-required-rb/42755/3 where Dan uploaded some templates but I'm not sure how the
      @unknownuser said:

      MultiClass_MultiFile.zip
      works. Does anyone have a sample code that I can look at or can someone please explain how those files should be structured and how they work together?

      Frank

      posted in Developers' Forum
      F
      Frankn
    • RE: Win32API is deprecated after Ruby 1.9.1

      Thanks for the info Dan... I didn't check to see if there's a difference when loading different versions, just haven't had time and other than being annoying I don't see any problems in my plugin.

      When I get a chance I'll look into it more and see if there are other errors as you suggested.

      posted in Developers' Forum
      F
      Frankn
    • Win32API is deprecated after Ruby 1.9.1

      I'm getting this error
      @unknownuser said:

      C:/Program Files/SketchUp/SketchUp 2021/Tools/extensions.rb:197: warning: Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead

      My plugin was working before today and I haven't changed anything, what can be causing this error all of a sudden?

      Thanks

      posted in Developers' Forum
      F
      Frankn