• Login
sketchucation logo sketchucation
  • Login
๐Ÿค‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] Arc_Offset_True

Scheduled Pinned Locked Moved Plugins
22 Posts 11 Posters 20.2k Views 11 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    TIG Moderator
    last edited by 19 Jun 2022, 13:35

    https://sketchucation.com/pluginstore?pln=Arc_offset_true
    This is v1.6 which avoids that error message.
    The tool worked fine before, but the closing code which tried to add the new arc to the selection set was failing at the very end with that error message.
    That was because the newer API versions handle exploded groups' entities differently - previously you could get a collection of the groups entities and then explode the group, then process those entities [e.g. the edges to add to the selection set]; but the API changes make such a collection 'invalid' because its references to the entities are reported as deleted; so now you must collect the results of the explosion, and filter out unwanted stuff to keep just the 'new' edges and then process them...
    It's much more convoluted but has the same outcome...
    Most scripts have been appropriately adjusted over the recent years to accommodate this API change - but this one escaped - because it's ten years old and it did the offset OK, just falling over at the final hurdle of changing the selection set, and therefore printing an error into the Ruby Console, if you had it open !

    TIG

    1 Reply Last reply Reply Quote 0
    • R Offline
      Rich O Brien Moderator
      last edited by 19 Jun 2022, 17:54

      Mucho gracias ๐Ÿ‘

      Download the free D'oh Book for SketchUp ๐Ÿ“–

      1 Reply Last reply Reply Quote 0
      • 1
      • 2
      • 2 / 2
      2 / 2
      • First post
        21/22
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement