sketchucation logo sketchucation
    • Login
    1. Home
    2. spring.freediver
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    S
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 12
    • Posts 38
    • Groups 1

    spring.freediver

    @spring.freediver

    12
    Reputation
    4
    Profile views
    38
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Age 66

    spring.freediver Unfollow Follow
    registered-users

    Best posts made by spring.freediver

    • RE: MSPhysics 1.0.3 (16 October 2017)

      Is there any news on MSPhysics being updated for newer versions of SketchUp?

      I would like to offer to help with work getting it updated. I wrote the infamous plugin sph4bar in 2006 which models spherical 4 bar mechanisms. I also wrote GeoSketch, a plugin used by aerospace companies.

      In a previous life, I worked for Cadsi, and integrated DADS (Dynamic Analysis and Design System) in to CAD systems such as CATIA and Ideas Master Series.

      Now I am retired and have time to kill.

      posted in Plugins
      S
      spring.freediver
    • RE: MSPhysics

      @Rich-O-Brien I put this offer to help on the old thread. I'm not sure if it will be seen, so I'm adding it here too:

      I would like to offer to help with work getting MSPhysics updated. I wrote the infamous plugin sph4bar in 2006 which models spherical 4 bar mechanisms. I also wrote GeoSketch, a plugin used by aerospace companies.

      In a previous life, I worked for Cadsi, where I integrated DADS (Dynamic Analysis and Design System) into CAD systems such as CATIA and Ideas Master Series.

      Now I am retired and have time to kill.

      posted in Plugins
      S
      spring.freediver

    Latest posts made by spring.freediver

    • RE: MSPhysics

      @Rich-O-Brien I put this offer to help on the old thread. I'm not sure if it will be seen, so I'm adding it here too:

      I would like to offer to help with work getting MSPhysics updated. I wrote the infamous plugin sph4bar in 2006 which models spherical 4 bar mechanisms. I also wrote GeoSketch, a plugin used by aerospace companies.

      In a previous life, I worked for Cadsi, where I integrated DADS (Dynamic Analysis and Design System) into CAD systems such as CATIA and Ideas Master Series.

      Now I am retired and have time to kill.

      posted in Plugins
      S
      spring.freediver
    • RE: MSPhysics 1.0.3 (16 October 2017)

      Is there any news on MSPhysics being updated for newer versions of SketchUp?

      I would like to offer to help with work getting it updated. I wrote the infamous plugin sph4bar in 2006 which models spherical 4 bar mechanisms. I also wrote GeoSketch, a plugin used by aerospace companies.

      In a previous life, I worked for Cadsi, and integrated DADS (Dynamic Analysis and Design System) in to CAD systems such as CATIA and Ideas Master Series.

      Now I am retired and have time to kill.

      posted in Plugins
      S
      spring.freediver
    • MSPhysics

      Re: MSPhysics 1.0.3 (16 October 2017)

      Is there any news on MSPhysics working in newer versions of SketchUp? (E.g. 2024?)

      posted in Plugins
      S
      spring.freediver
    • RE: Ruby errors in Sketchup 2021

      Thank you TIG. I was not able to find that it was deprecated.

      I can just use 'size' instead.

      'nitems' was not about limiting the array to integers. It was simply to provide a count of non-nil items in the array.

      By the way, I was using http://ruby-doc.com/docs/ProgrammingRuby/ for Ruby documentation, and it still lists nitems as a method of the Array class.

      Can you recommend a better site for documentation of the version of Ruby Sketchup is now using?

      posted in Developers' Forum
      S
      spring.freediver
    • RE: Ruby errors in Sketchup 2021

      The plugin is GeoSketch (https://www.youtube.com/user/TacForgeGeoSketch/videos)

      I wrote GeoSketch in the 2008-2012 timeframe. I hadn't used Sketchup since then, but had a need for GeoSketch recently. I purchased a license of SketchUp 2021 last week, so I could try to get GeoSketch running again. Most of it works, but I get this error in one method.

      I can probably replace 'nitems' with 'size', but it won't address nils in the array. But I shouldn't have any.

      I do find it curious that 'nitems' seems to be missing. As I replied to TIG, I did a Google search to see if it was deprecated, but didn't find anything.

      posted in Developers' Forum
      S
      spring.freediver
    • RE: Ruby errors in Sketchup 2021

      It can be reproduced with one line, similar to the example in the Ruby Documentation:

      [1, 2, 3].nitems

      This should return "3". Instead it returns:

      Error: #<NoMethodError: undefined method `nitems' for [1, 2, 3]:Array>

      In the script, I am using it in an if statement to do different things, depending on how many items are in the array. Pretty straight forward.

      I did a Google search to see if 'nitems' had been deprecated in this new version of Ruby, but didn't find anything.

      posted in Developers' Forum
      S
      spring.freediver
    • Ruby errors in Sketchup 2021

      I have an old Sketchup script (written in 2012) that I am trying to get working in SU 2021, which I know has a new version of Ruby:

       Error: #<NoMethodError: undefined method 'nitems' for []:Array>
      

      This error does not make sense to me, since the Array class does have a method called 'nitems'. I checked to make sure the array is not nil (which would have produced a different error).

      Does anyone know what might be causing this error?

      posted in Developers' Forum
      S
      spring.freediver
    • Make Unique Texture

      Is there an API equivalent to the interactive context menu item for a face called "Make Unique Texture"?

      Also, is there a known problem with Texture Writer reducing the resolution of Textures? When we write out an OpenFlight file, we try to use the original images to create the OpenFlight rgb files. But if the original images are not available, we resort to using the Texture Writer. Our customers complain the there is a loss of resolution when we use the Texture Writer. Is there any way to control the resolution?

      posted in Developers' Forum
      S
      spring.freediver
    • Observers work differently depending on how Sketchup starts?

      Has anyone else seen this:

      We have a plugin which uses observers. It also stores attributes in the model.

      If we start Sketchup by selecting the desktop icon, and then open a model with our attributes in it, everything works fine.

      However, if we start Sketchup by double-clicking on the model name in explorer, the model opens, and our tools are present, but they do not work correctly. Our attributes are present in the model, but observer callbacks which use the attributes do not work.

      We have Sketchup::AppObservers set up for both onNewModel and onOpenModel events, but in the second case described above, they don't seem to be triggered.

      Thanks for any help.

      posted in Developers' Forum
      S
      spring.freediver
    • RE: Untagged deleted element after using outer_shell on group

      Thanks for all the feedback guys.

      TIG: the xxx and yyy are not the actual values. Since they aren't relevent, I replaced the longer names used in the actual code. As for what the application is doing, it is simply allowing the user to intersect a ray with one of the faces of a newly created outer_shell group, and then finding all the connected elements of that face or edge. I used raytest so I can get all the transformations for a nested entity from the item[1] array. As I mentioned, this is old code I have been using for over a year. It just started displaying this problem when I used it on the result of outer_shell. The code that I showed was some hastily added debuging code. I suspected that valid? and deleted? were redundant, but was just trying to find out what was happening.

      Dan: Based on your suggestion, I read the docs on GC.start. When should I use it? Immediately after doing the group.outer_shell? I was not aware that entity lists could be changing in the background while a Ruby script was running. I assumed that when I called outer_shell, Sketchup would not return control to my script until it had done all of it's cleanup of entity lists. GC.start would not affect what they have going on the C side, would it?

      posted in Developers' Forum
      S
      spring.freediver