Ejemplo n.º 1
0
 public void UpdatePartViewSubs(BlockReference acBlkRef, Entity acEnt, Document acCurDoc)
 {
     acBlkRef?.UpdateAttributeBySubstitution("LAYER", acEnt.Layer.ToUpper(), acCurDoc, acCurDoc.Editor);
     acBlkRef?.UpdateAttributeBySubstitution("NAME", acEnt.GetPartName(), acCurDoc, acCurDoc.Editor);
     acBlkRef?.UpdateAttributeBySubstitution("MATERIAL", acEnt.Material.ToUpper(), acCurDoc, acCurDoc.Editor);
     acBlkRef?.UpdateAttributeBySubstitution("QTY", acEnt.GetQtyTotal().ToString(), acCurDoc, acCurDoc.Editor);
 }