Auto creating viewports with included drawinghead (Scaled)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, i am a Civil engineering student and am completely new to LISP, i hope to find some tips or a little push towards the right direction.
I have recently started an intern for a Civil company that designs things related to railways. They asked me if i could take a look into the automatic creation of a Viewport, a border of the drawing and the suitable drawing head.
I am not sure if i'm in the right direction but i figured that it should be possible to detect the outer points of my drawing with the functions in AutoLisp. After finding the outer points of the drawing i'd like to create a viewport automatically with included borders and drawinghead.
So basicly if my LISP would detect that a drawing's outer points are just under the size of a A4 then select A4 with included A4 drawinghead and scale. However if the outer points are just over the size of an A4 then it should select an A3 paper with included A3 drawinghead and scale.
Does anyone here have any experience with something similar? Or does anyone know what functions could be used?