• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    Active Contributor pli
    Active Contributor
    pli
    Posts: 32
    Registered: ‎04-25-2008

    Xclip with Multiple Boundaries

    1426 Views, 4 Replies
    12-01-2010 04:14 PM

    Hi,

     

    Does anyone have a Lisp routine that will allow me to select an Xref or a Block Insert and then select multiple closed Plines as Boundaries?

     

     


    Paul Li
    Senior Associate
    ALTOON PARTNERS LLP
    Los Angeles • Amsterdam • Shanghai • Hong Kong • Moscow
    444 South Flower Street • 48th Floor • Los Angeles • California • 90071-2901
    D +1 213 225 1944 • T +1 213 225 1900 • www.altoonpartners.com


    Please use plain text.
    Distinguished Contributor
    Posts: 148
    Registered: ‎06-26-2008

    Re: Xclip with Multiple Boundaries

    12-02-2010 01:23 AM in reply to: pli

    Not a lisp, but I believe you can achieve this still using normal AutoCAD commands:

     

    Create a region which represents the area you want to show. Then, you should be able to use this region to clip your xref or block.

     

    Regards

    Will Forty
    AutoCAD expert and software developer
    HowToAutocad.com
    Autocad-Training-Courses.com
    Please use plain text.
    Active Contributor pli
    Active Contributor
    pli
    Posts: 32
    Registered: ‎04-25-2008

    Re: Xclip with Multiple Boundaries

    12-02-2010 09:00 AM in reply to: WilliamForty

    Thanks for your reply. I'm using AutoCAD 2010 and XCLIP, IMAGECLIP, DGNCLIP, DWFCLIP & PDFCLIP all do not support Regioni object as Boundary.  Does AutoCAD 2011 support Region as a Boundary for clipping?


    Paul Li
    Senior Associate
    ALTOON PARTNERS LLP
    Los Angeles • Amsterdam • Shanghai • Hong Kong • Moscow
    444 South Flower Street • 48th Floor • Los Angeles • California • 90071-2901
    D +1 213 225 1944 • T +1 213 225 1900 • www.altoonpartners.com


    Please use plain text.
    Distinguished Contributor
    Posts: 148
    Registered: ‎06-26-2008

    Re: Xclip with Multiple Boundaries

    12-03-2010 03:03 AM in reply to: pli

    Hi,

     

    Now that you mention it, I think the region method only works with AutoCAD 2011.

     

    However, there is another way, and I just wrote a post on this very topic:

     

    http://howtoautocad.com/clipping-with-multiple-boundaries/

     

    Hopefully this helps,

     

    Regards,

    Will Forty
    AutoCAD expert and software developer
    HowToAutocad.com
    Autocad-Training-Courses.com
    Please use plain text.
    Active Contributor pli
    Active Contributor
    pli
    Posts: 32
    Registered: ‎04-25-2008

    Re: Xclip with Multiple Boundaries

    12-03-2010 08:49 AM in reply to: WilliamForty

    No, AutoCAD 2011 also doesn't support regions as boundaries for clipping.  Regiion objects are only supported when creating pspace vports.

    I'm aware of the method you mentioned in your post.  Of course that method still only supports a single boundary and not multiple boundaries for clipping. 

    I actually ended up writing my own lisp routine to get AutoCAD to do mutliple boundaries for clipping Block Inserts, Xrefs, DWFs, DGNs, PDFs & Images.  (see attached).


    Paul Li
    Senior Associate
    ALTOON PARTNERS LLP
    Los Angeles • Amsterdam • Shanghai • Hong Kong • Moscow
    444 South Flower Street • 48th Floor • Los Angeles • California • 90071-2901
    D +1 213 225 1944 • T +1 213 225 1900 • www.altoonpartners.com


    Please use plain text.