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

Script to change default sides of a circle?

Scheduled Pinned Locked Moved Newbie Forum
sketchup
6 Posts 5 Posters 381 Views
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.
  • A Offline
    ahnvtk
    last edited by 23 Aug 2011, 17:16

    I've posted a question here - but I think I'll post it more broadly here as a newbie question:

    Scripting the creation of an 8-sided circle doesn't seem to be a way to change the default number of segments in a circle: it still remains the default 24 for any user-created circles.

    How could I automatically change the default number of segments in a circle and/or arc? By "automatically", I mean that this happens when SketchUp loads: a script (I'd think) changes the default circle segments to 8 (or any other number I'd like to script).

    Or has somebody already scripted a solution to this, and if so, what is the solution?

    Thanks!

    1 Reply Last reply Reply Quote 0
    • D Offline
      Dave R
      last edited by 23 Aug 2011, 17:36

      I don't believe it is possible. At least that's been the answer every other time the question has been asked.

      Etaoin Shrdlu

      %

      (THERE'S NO PLACE LIKE)

      G28 X0.0 Y0.0 Z0.0

      M30

      %

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 23 Aug 2011, 17:49

        I think it's hard-coded for arcs and circles and although a manual change to it during a session is remembered, it reverts next time round...

        TIG

        1 Reply Last reply Reply Quote 0
        • R Online
          Rich O Brien Moderator
          last edited by 23 Aug 2011, 21:30

          Fredo's Tools on Surface remembers between sessions.

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

          1 Reply Last reply Reply Quote 0
          • A Offline
            ahnvtk
            last edited by 23 Aug 2011, 21:39

            Argh. How cute.

            So now I'm thinking of using some debugging tools, finding the responsible byte(s) and) patching SketchUp.

            That would be an inflexible solution.

            Circle, Arc, and Polygon segment number defaults would best be a user-configurable setting (and not just per session - I mean a permanent setting or option), and/or API-accessible.

            Next question: has that (option) been put on the API wish list I saw over yon? I know, I could read the whole wish list.. ๐Ÿ˜’

            1 Reply Last reply Reply Quote 0
            • O Offline
              openhatch
              last edited by 1 Sept 2011, 02:27

              [UPDATE] I developed a solution I found for this into a plugin, released at the following thread:

              [Plugin] Set Arc and Circle Defaults

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

              Advertisement