+ Reply to Thread
Results 1 to 3 of 3

Thread: Insert Block Question

  1. #1

    Insert Block Question

    Hi,
    I am attempting to insert a block from another .3dm and embed it. From what I have seen I am not able to use a: rs.InsertBlock() command because the block does not exist in the script. At the moment I am using a simple: rs.command("_Insert") to browse for the file then inserting the block that way. If I have a specific file location I would like to us and I would like to insert the file at a point is there some way I can do this without clicking through browsing for the file and inserting it at [0,0,0]? Maybe some kind of Rhino.RhinoApp.RunScript function?
    Thanks,
    5chmidt

  2. #2
    Super Moderator Mitch's Avatar
    Join Date
    May 2010
    Location
    Switzerland
    Posts
    285
    What you can do is script the -Insert command with the command line options:
    python Code:
      rs.Command("-_Insert _File=_Yes LinkMode=Embed C:\\BlockFile.3dm _Block 0,0,0 1.0 0.0")

    HTH, --Mitch

  3. #3
    Mitch,
    Thanks, that is perfect.
    5chmidt

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts