Draftsight API Getting Block Attributes

When i try to get the values for the block attributes the API returns the original default value and not the current value. can anyone help me pull the current block values.


object[] dsVarBlkDef = null;
BlockDefinition dsBlockDef = default(BlockDefinition);
ExternalReference dsExtRef = default(ExternalReference);

int index = 0;

//Get All Block Definitions in Drawing
dsVarBlkDef = (object[])dsDoc.GetBlockDefinitions();

if (dsVarBlkDef != null)
{

for (index = 0; index <= dsVarBlkDef.Length; index++)
{

for (index = dsVarBlkDef.GetLowerBound(0); index <= dsVarBlkDef.GetUpperBound(0); index++)
{

dsBlockDef = (BlockDefinition)dsVarBlkDef[index];
string BlockDefname = dsBlockDef.GetName();
if (BlockDefname.ToUpper() == "TITLE")
{
object[] VarBlockAtt = null;
//AttributeDefinition BlockAtt = default(AttributeDefinition);

VarBlockAtt = (object[])dsBlockDef.GetAttributeDefinitions();
foreach (AttributeDefinition Blockatt in VarBlockAtt)
{
string AttributeName;
string Attribute;
AttributeName = Blockatt.Name;
Attribute = Blockatt.Value;


}

}

}

}

}