public AcAttributeDef(AcBlockDef owner, AttributeDefinition entity, AcTransaction trans) : base(entity, trans) { _tag = entity.Tag; _invisible = entity.Invisible; this.AttrVisiblePresenter = !_invisible; Owner = owner; }
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(); } } }