+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
  1. #1
    Junior Member LINHOREKA's Avatar
    Using
    AutoCAD 2008
    Join Date
    Feb 2009
    Posts
    23

    Default Lisp create perspective view from a 2D drawing

    Registered forum members do not see this ad.

    Hi, this lisp is working in 2D only: it generate a perspective view from a selected 2D plan or elevation.

    1. Command: P2D
    2. Select the source frame (trapezoid polyline) of the plan or elevation
    3. Select drawing objects in that source plan or elevation
    4. Select destination frame >>> a new perspective drawing would be draw arcordingly (see image and example drawing)
    5. Repeat step 4 until you select none

    It is working only with straight lines, straight polylines and points. Pretty useful when you want to take a leap up from your 2D, for but donot have time to create a 3D model.

    New version on Apps Exchange Store, extrusion enabled
    Attached Images
    Attached Files
    Last edited by LINHOREKA; 8th Oct 2013 at 06:03 am. Reason: Update link of new version

  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
    16,590

    Default

    Thank you for sharing your program LINHOREKA

    To provide some food for thought, you might be interested in this outstanding program by Sean Tessier
    Lee Mac ProgrammingTwitterExchange App StoreDropbox (500MB free)

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

  3. #3
    Junior Member LINHOREKA's Avatar
    Using
    AutoCAD 2008
    Join Date
    Feb 2009
    Posts
    23

    Default

    Wow, with Sean Tessier, we can make 3D street art !
    There is another kind of simple perspective 2D like this: A profile + 1 vanishing point = This image (from CAD APLUS)
    Attached Images
    Last edited by LINHOREKA; 2nd Sep 2013 at 03:14 am.

  4. #4
    Senior Member nod684's Avatar
    Computer Details
    nod684's Computer Details
    Operating System:
    Windows 7 Home
    Discipline
    Architectural
    Using
    AutoCAD 2010
    Join Date
    Jul 2012
    Location
    Singapore
    Posts
    258

    Default

    nice one! does this work for blocks too?
    "Memories fade but the scars still linger...."

  5. #5
    Junior Member LINHOREKA's Avatar
    Using
    AutoCAD 2008
    Join Date
    Feb 2009
    Posts
    23

    Default

    No, it works only with elementary objects of straight lines and polylines. Try lisp suggested by Lee Mac, works with curves, hatches. But no block avaiable neither !
    I found my lisp has an advantage: it can transform from any trapezoid frames to any others.
    I test to make 3D street arts and here it is:
    1. If objects lay inside the frame polylines, it is ok
    2. If objects lay outside, it fails (not yet understand why )
    Anyway, it is interesting. Someday I would upgrade it to work with all objects, and correct this trouble.
    Attached Images
    Attached Files

  6. #6
    Junior Member LINHOREKA's Avatar
    Using
    AutoCAD 2008
    Join Date
    Feb 2009
    Posts
    23

    Default

    Ah, i work it out: the objects cannot go too high over the horizontal sky line !
    Here is another example shows how it work well enough:
    It implies 3D street art need alot of area if draw objects extrude up, but less area if draw objects extrude down ! That is why valley is prefered, while moutains is not
    Attached Images

  7. #7
    Forum Deity SEANT's Avatar
    Using
    AutoCAD 2012
    Join Date
    Aug 2005
    Location
    Rhode Island
    Posts
    2,122

    Default

    Hey guys, thanks for the mention. Perspective transform is an interesting field.

    From what I can see, LINHOREKA, we both used a similar process, as did maicy in the links below. The alternative is straight matrix manipulation as demoed by SOFITO_SOFT and Kean (Through the Interface).

    The links here show some interesting variations on the theme. Those for theswamp.org will require registration. It is such a good site, though, any AutoCAD developer would be happy they made the effort.

    http://www.theswamp.org/index.php?topic=36905.0
    http://www.theswamp.org/index.php?topic=37183.0

    http://through-the-interface.typepad.com/through_the_interface/2013/08/applications-for-linear-algebra-straightening-out-perspective.html
    http://through-the-interface.typepad.com/through_the_interface/2013/08/update-on-the-project-to-de-skew-images-inside-autocad.html
    http://through-the-interface.typepad.com/through_the_interface/2013/08/generating-png-files-for-de-skewed-portions-of-perspective-images.html

  8. #8
    Junior Member LINHOREKA's Avatar
    Using
    AutoCAD 2008
    Join Date
    Feb 2009
    Posts
    23

    Default

    Hi everyone, new version is coming :

    (but not yet )

  9. #9
    Junior Member LINHOREKA's Avatar
    Using
    AutoCAD 2008
    Join Date
    Feb 2009
    Posts
    23

    Default

    Hi, New Version on AutoCAD Exchange Store: Your 2D Perspective
    New Feature: Extrusion ! It is now quite handy for drafters who want to add some 3D views in technical drawings, but too lazy (like me) to try managing the 3D Model stuff.

  10. #10
    Forum Deity SEANT's Avatar
    Using
    AutoCAD 2012
    Join Date
    Aug 2005
    Location
    Rhode Island
    Posts
    2,122

    Default

    Registered forum members do not see this ad.

    This looks excellent. Very impressive. And congratulations on your Exchange listing.

Similar Threads

  1. Perspective View - Can't get consistant view of small objects
    By numberOCD in forum AutoCAD 3D Modelling & Rendering
    Replies: 0
    Last Post: 21st Sep 2010, 02:45 pm
  2. Perspective view
    By spursnutter in forum AutoCAD 3D Modelling & Rendering
    Replies: 1
    Last Post: 18th Dec 2008, 01:06 am
  3. Perspective View?
    By JaketheMan in forum AutoCAD General
    Replies: 17
    Last Post: 13th Aug 2007, 05:57 pm
  4. perspective view
    By Icarus in forum AutoCAD General
    Replies: 6
    Last Post: 12th May 2006, 07:49 pm
  5. perspective view
    By richierich in forum AutoCAD Beginners' Area
    Replies: 2
    Last Post: 2nd Nov 2004, 08:06 pm

Tags for this Thread

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