Ejemplo n.º 1
0
 public AcAttributeDef(AcBlockDef owner, AttributeDefinition entity, AcTransaction trans)
     : base(entity, trans)
 {
     _tag       = entity.Tag;
     _invisible = entity.Invisible;
     this.AttrVisiblePresenter = !_invisible;
     Owner = owner;
 }
Ejemplo n.º 2
0
 private void InitBlockDefs()
 {
     foreach (var blockId in this.BlockTable)
     {
         var blockRec = this.GetObject <BlockTableRecord>(blockId);
         if (!blockRec.IsAnonymous && !blockRec.IsLayout)
         {
             var blockDef = new AcBlockDef(blockRec, this);
             blockDefDict[blockDef.Name.ToLower()] = blockDef;
         }
         else
         {
             blockRec.Dispose();
         }
     }
 }