[cad-linux-dev] Re: viewports

  • From: Bruno Postle <bruno@xxxxxxxxxx>
  • To: CAD linux development <cad-linux-dev@xxxxxxxxxxxxx>
  • Date: Tue, 24 Aug 2004 17:59:38 +0100

On Tue 24-Aug-2004 at 12:20 -0400, Chris Somerlot wrote:
> > 
> > "paperspaces" are drawings-within-drawings much like an
> > unreferenced block/symbol - So they would naturally become
> > subdirectories with a specialised "viewport" element that
> > references the parent directory.
> > 
> > The problem would be distinguishing them from any other
> > subdirectories.
> 
> Here I would think we want them in their own directory instead of
> a subdirectory.

Do you mean they should be outside the document-root altogether?

> That way we can lump xref's, referenced and unreferenced blocks,
> and paper space entities together and just a 'drawing type', or
> 'parent' attribute in the drawing entitiy.

The viewport entity just needs a "location" attribute that points to
"../" by default.  Viewports are then just the same as any
xref/block reference element except with a boundary.

This way, paperspaces are normal directory/drawings that can live
anywhere.  They can even exist deep inside categorisation
sub-directories of the parent drawing.

Paperspaces can be distinguished from other drawings/blocks/symbols
by a "print" type of element in the parent drawing that contains a
path, a zoom scale and paper size.

-- 
Bruno

Other related posts: