Use an index list, so you may have a one-to-Many relationship, and you are = not changing either the entity list nor the layer list when modifying = memebers in a layer. Entity List.entity_id *-> LayerIndex <--- Layer_list.layer_id cheers, Jim Parker H. James Parker Naval Architect Gibbs and Cox, Inc. office) 703-416-3625 fax) 703-416-3679 jparker@xxxxxxxxxxxx *********************************************** This e-mail and any attachments contain privileged, business sensitive, = and/or proprietary information. The information is intended to be for = the use of the individual or entity named. If you are not the intended = recipient, be aware that any disclosure, copying, distribution or use of = this information is prohibited. If you have received this electronic = transmission in error, please immediately notify the Gibbs & Cox, Inc. = Security Supervisor at 703.416.1240 or via email at Security@xxxxxxxxxxxxx *********************************************** >>> bruno@xxxxxxxxxx 8/20/2004 12:28:09 PM >>> On Thu 19-Aug-2004 at 14:27 -0500, Eric Wilhelm wrote: > With that said, we are still going to have to have a "name:"=20 > attribute (which will appear as the layer name in autocad,=20 > pythoncad, etc.) And, to be able to rename layers without messing=20 > with the entities, we must use a numeric ID for the layer (which,=20 > yes, is related to the layer filename) where that numeric ID is=20 > stored in each entity. Are you sure about this? It is a 'layer of indirection' that is=20 sometimes useful, but not always. Won't it be confusing having a=20 layer with "ID: 5" but "name: 6"? The renaming a layer problem can be solved by editing all the=20 entities and changing the name there - Just the same as moving a=20 bunch of entities or changing their colour. --=20 Bruno