sketchucation logo sketchucation
    • Login
    1. Home
    2. alecchyi
    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
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 1

    alecchyi

    @alecchyi

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    alecchyi Unfollow Follow
    registered-users

    Latest posts made by alecchyi

    • RE: How to make a model follow with movetool

      @tig said:

      Let's assume model=Sketchup.active_model
      If you simply want to add an external SKP as a component use:
      defn = model.definitions.load(path_to_skp)
      where perhaps path_to_skp="C:/users/alecchyi/desktop/MyComponent.skp"
      This will ensure it's now loaded into the model.
      Then name=defn.name - just in case it's been given a different name from what you expected ?
      Then model.place_component(defn, repeat)
      If repeat=false then you get to add one instance of that component - just like the native tool, with 'move' built-in etc.
      If repeat=true then you get to place multiple instances... one after the other...
      If you want to place a component that's already loaded 'by name', then set name="MyComponentsName", then
      defn=model.definitions[name]
      before running the 'place_component' code...
      You can select an instance in code then run the Move tool on it, but that isn't what you asked??

      😄 i got it,谢谢

      posted in Developers' Forum
      A
      alecchyi
    • How to make a model follow with movetool

      I could add a model in ,and send_action moveTool ,i am a newer in ruby plguin develop about sketchup.
      how to make a model follew with the movetool? thanks very much!

      posted in Developers' Forum
      A
      alecchyi