• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Visual LISP, AutoLISP and General Customization

    Reply
    Valued Contributor
    Lupo76
    Posts: 71
    Registered: 07-17-2011

    Insert a block in a specific layout with vla-insertblock

    66 Views, 3 Replies
    01-28-2012 10:56 AM

    Hello everyone,
    I would like to insert a block in a specific layout (eg. "LAYOUT13") using the function
    vla-insertblock

    I have already searched the web and this newsgroup but have not found the solution.
    Can you help?
    thanks

    *Pro
    Posts: 1,345
    Registered: 11-24-2009

    Re: Insert a block in a specific layout with vla-insertblock

    01-28-2012 07:41 PM in reply to: Lupo76

    Lupo76 wrote:

    Hello everyone,
    I would like to insert a block in a specific layout (eg. "

     

    using the function
    vla-insertblock

    I have already searched the web and this newsgroup but have not found the solution.
    Can you help?
    thanks


    (vlax-invoke
                                       (vlax-get
                                             (vla-item
                                                   (vla-get-layouts
                                                         (vla-get-activedocument
                                                               (vlax-get-acad-object)))
                                                   "LAYOUT13")
                                             'block)
                                       'InsertBlock
                                       '(0.0 0.0 0.0)
                                       bname
                                       1
                                       1
                                       1
                                       0)

     HTH

    Valued Contributor
    Lupo76
    Posts: 71
    Registered: 07-17-2011

    Re: Insert a block in a specific layout with vla-insertblock

    01-28-2012 11:40 PM in reply to: pbejse

    is just what I wanted!
    Thank you!!

    *Pro
    Posts: 1,345
    Registered: 11-24-2009

    Re: Insert a block in a specific layout with vla-insertblock

    01-29-2012 03:18 AM in reply to: Lupo76

    Lupo76 wrote:

    is just what I wanted!
    Thank you!!



    Well good for you Lupo

     

    Gald i could help