[cad-linux-dev] Re: layers and styles in sub-directories

  • From: Bruno Postle <bruno@xxxxxxxxxx>
  • To: CAD linux development <cad-linux-dev@xxxxxxxxxxxxx>
  • Date: Mon, 23 Aug 2004 19:51:19 +0100

On Sat 21-Aug-2004 at 10:48 -0500, Eric Wilhelm wrote:
> 
> In fact, I think rhizopod may actually need to be somehow broken
> into the following parts: 
> 
>   geometry/
>   layers/
>   object_styles/
>   linetypes/
>   text_styles/
>   mark_styles/

That sounds ok, except geometry should be in the top level
directory, I'll try and explain why..

You are almost there with the layerID property of an element - The
layerID is a reference to a layer definition that is stored in
another file like so:

   layerID: 5
   
ie. the layer definition resides in a file called "5.yml".

The layerID should be a path reference in the first place:

   layerID: 5.yml

..this allows you to have all or some of your layer definitions
tucked away in some place that isn't automatically loaded:

   layerID: layers/5.yml

You could also have layer definitions that exist outside the
drawing:

   layerID: /export/standard-layers/5.yml

Ultimately, layer/style/linetype definitions can be
accessed with proper URLs:

   layerID: http://www.example.com/standards/layers/5.yml

So, layers/styles/linetypes can be stored in sub-directories because
they are only needed when referenced, whereas the geometry should
exist in the root of the drawing because the geometry IS the
drawing.

-- 
Bruno

Other related posts: