- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I am working in a bigger lisp that will create new layouts containing titleblock and viewport. I have the first part figure out, but I don't know how to proceed with the viewports. I want to make a new viewport that will fit in a rectangle in the paperspace and will have a specific scale determined by the drawing and will be center to fit in another rectangle in the model space.
My idea so far is the following:
- Create a new viewport
- Origin and dimension of the rectangle are known (not a problem)
- Read an attribute in the drawing to know the scale (we use different templates for different scales)
- Take that scale and apply it to the viewport
- And somehow align the rectangle within the viewport (model space) with the rectangle of the viewport.
I know how to do the first steps, but I am not sure about number 4 and completely lost with 5.
Any ideas about how to solve it this way or with other approach?
PS. I was thinking that I could make the rectangle in model space a block, and when I create the viewport I can zoom to object (and that should make the scale work)
Solved! Go to Solution.