NX 7.5 Attributes

Hello

I am having difficulties with getting attributes from childs nx assemblies. The problem is in attributes which are added in NX. On the other hand I am getting attributes which where added by scripting and attributes from assemblies which are parents - without any problems. My question will be.. in what object/collection should attributes be stored and how can i get them?

Below there is sample of code which I am using to pull attributes.

private void ExportUserParameters(Part component)
{
xmlWriter.XMLElementStartSimple(NXXMLHelper.XML_USER_PARAMETERS);

foreach (NXOpen.NXObject.AttributeInformation attrInfo in component.GetAttributeTitlesByType(NXObject.AttributeType.Integer))
{
xmlWriter.XMLElementStartAndEnd(NXXMLHelper.XML_PARAMETER, new XMLAttr[] { new XMLAttr(NXXMLHelper.XML_ATT_NAME, attrInfo.Title), new XMLAttr(NXXMLHelper.XML_ATT_VALUE, Convert.ToString(component.GetIntegerAttribute(attrInfo.Title))) });
}
foreach (NXOpen.NXObject.AttributeInformation attrInfo in component.GetAttributeTitlesByType(NXObject.AttributeType.Real))
{
xmlWriter.XMLElementStartAndEnd(NXXMLHelper.XML_PARAMETER, new XMLAttr[] { new XMLAttr(NXXMLHelper.XML_ATT_NAME, attrInfo.Title), new XMLAttr(NXXMLHelper.XML_ATT_VALUE, Convert.ToString(component.GetRealAttribute(attrInfo.Title))) });
}
foreach (NXOpen.NXObject.AttributeInformation attrInfo in component.GetAttributeTitlesByType(NXObject.AttributeType.String))
{
xmlWriter.XMLElementStartAndEnd(NXXMLHelper.XML_PARAMETER, new XMLAttr[] { new XMLAttr(NXXMLHelper.XML_ATT_NAME, attrInfo.Title), new XMLAttr(NXXMLHelper.XML_ATT_VALUE, component.GetStringAttribute(attrInfo.Title)) });
}
foreach (NXOpen.NXObject.AttributeInformation attrInfo in component.GetAttributeTitlesByType(NXObject.AttributeType.Time))
{
xmlWriter.XMLElementStartAndEnd(NXXMLHelper.XML_PARAMETER, new XMLAttr[] { new XMLAttr(NXXMLHelper.XML_ATT_NAME, attrInfo.Title), new XMLAttr(NXXMLHelper.XML_ATT_VALUE, component.GetTimeAttribute(NXObject.DateAndTimeFormat.Numeric, attrInfo.Title)) });
}

xmlWriter.XMLElementEnd(NXXMLHelper.XML_USER_PARAMETERS);

}

Thank you in advance for any help.

If you are looking for component attributes, you will need to interrogate the individual components. http://www.nxjournaling.com/?q=content/creating-subroutine-process-all-c... shows how to access each component of an assembly.