+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Full Member
    Using
    AutoCAD 2008
    Join Date
    Feb 2008
    Posts
    84

    Default Routine to generate layouts based on rectangles in a larger drawing

    Registered forum members do not see this ad.

    I hope this is easier then it sounds.

    I have a large drawing of a piece of land of which I have to generate a number of layouts based on some rectangles I've placed in the drawing. Each rectangle represents the area I want the viewport to cover, and all the rectangles are on a unique layer. I'm going to be using the overall drawing as a sort of legend for the detail drawings. However I have a lot of them, and they are not all oriented the same way. I have one layout done, and would simply like to copy it and have the viewports updated based on the rectangles.

    Easy? Hard? Impossible? Silly?

    I'd be grateful for any help.

  2. #2
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,709

    Default

    Well, one can make a LISP to convert these rectangles into viewports (of course this can easily be done manually), but as for the scale factor of the each viewport - it would be very "drawing-specific".

    I hope I have understood what you would like to accomplish, but if not, please correct me
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  3. #3
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,780

    Default

    If you array your vport then Zoom E then Zoom C (centre) pick approx lot then a scale, it will set that view. Do one set its plot scale correct and it will give you the zoom c scale. You can set the UCS individually in each vport allowing a change in the displayed rotation of the lot.

    As lee Mac says you could do a generate a vport pick the diagonal corners of your rectangle gives centre point then zoom c automatically, it may take longer to write a program than actually do it manually, as I have suggested you do not need to draw the rectangle saving a step.

    If you have to repeat this over and over then yes invest the time to write a program.

  4. #4
    Senior Member wizman's Avatar
    Using
    AutoCAD 2009
    Join Date
    Nov 2007
    Location
    Abu Dhabi / Philippines
    Posts
    408

    Default

    similar thread here:

    http://forums.cadalyst.com/showthrea...light=tabsheet


    this could be the start for your request, here is the latest file of tabsheet.lsp with fellow lispers great codes (from cab and t.wiley) but program is still very dirty, attached also is a sample drawing where you can run it. before running tabsheet, copyclip everything on draft layout except for viewport. im always wanting to update this but always lacking of time for rotating sheets, maybe someone here could lend a hand.
    Attached Files

  5. #5
    Full Member
    Discipline
    Civil
    Using
    AutoCAD 2012
    Join Date
    Apr 2009
    Location
    Sydney, Australia
    Posts
    28

    Default

    Registered forum members do not see this ad.

    That 'TABSHEET' routine is excellent!

Similar Threads

  1. How do you generate Center of Gravity on Drawing?
    By TERRORS42 in forum Autodesk Inventor
    Replies: 7
    Last Post: 13th Jun 2009, 02:23 pm
  2. select all polylines in the drawing based on its property using VBA
    By vivekgrs in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 19th Jan 2009, 05:03 pm
  3. Plotting landscape A0 drawing - but larger width?
    By PeteUK in forum AutoCAD General
    Replies: 2
    Last Post: 8th Oct 2008, 04:39 pm
  4. Generate a drawing from a list of coordinates
    By braedan51 in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 15th Jul 2006, 09:41 pm

Bookmarks

Posting Permissions

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