sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

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

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 80 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