We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Behavior of Default property on ExtendedAttributeDefinition in Microsoft Project


I am curious about behavior of Default property on ExtendedAttributeDefinition.

My code is below.

My expectation was that once I set the Default, this value would appear in the cells of the “customized column” in the Microsoft Project Task Usage worksheet without the user having to select.

Is there something I am missing to get this desired behavior.



ExtendedAttributeDefinition ead = new ExtendedAttributeDefinition();

ead.FieldName = m.MicrosoftProjectColumnName; // “Text1”
ead.Alias = m.ListTypeName; // “MyColumnName”
ead.FieldId = Convert.ToInt32(m.MicrosoftProjectFieldId).ToString(); // m.Field = ExtendedAttributeTask.Text1
ead.CfType = CustomFieldType.Text;
ead.LookupUid = Guid.NewGuid().ToString();

ead.AppendNewValues = false;
ead.RestrictValues = true;

ead.ValueList = new List();
foreach (Item i in m.ListItems)
string name = i.Name.Replace(",", “|”).Replace(" ", " "); //clean-up name; just a string
Value v = new Value();
v.Val = name;
if (!m.HideDescription)
v.Description = i.Description;
v.Id = _ListItemID;
i.MicrosoftProjectId = _ListItemID; // save this so as to correlate value selection with ListItem Guid later
_ListItemID += 1;
ead.Default = m.DefaultValue;

Hi Doug,

Thank you for posting your query.

This is currently supported for MSP 2003/2007 XML and MSP 2003 MPP formats. Could you please share which version of the MSP file you are using at your end?

I am using Project 2013 for the *.mpp file format. Is this my problem?

Hi Doug,

It seems that the issue is specific to the file formats we have mentioned above. We have forwarded this request to our Product team for getting further information about this and shall write back here once there is some information available.