sketchucation logo sketchucation
    • Login
    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!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Auto create an given item at a calculated location? See insi

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 92 Views 2 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.
    • A Offline
      aaronxia00
      last edited by

      Hi, all! I'm a student currently writing a program that could determine optimal location for an item. The question I had is that is it possible to automatically create an given item at a calculated location, for say, the central point inside a cube. More precisely might be how to obtain the number of items, ex. walls, between two given points, and attributes associated with them.

      Thanks for helping!

      BING

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        I suggest you read the API... https://developers.google.com/sketchup/docs/
        The entities.add_...() methods do want you want...
        You'll also need to understand Transformations [simple will do!] used to locate some things like 'instances'... and how to create objects like Point3d and maybe Vector3d...
        There many freely available snippets and full-scripts, that already do what you seek, so there's no need to reinvent the wheel from scratch - just understand what you are doing...
        I might move this into the Developers' Forum...
        [EDIT: done.]

        TIG

        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