EBDN - Community - Question & Answers

  Tuesday, 27 November 2018
  1 Replies
  1.4K Visits
0
Votes
Undo
I export the cables to an XML file.
I can define the required attributes, but how can I get the fullname property of the cable?


private XMLExportConfiguration DoXMLConfig()
{
XMLExportConfiguration xmlConfig = new XMLExportConfiguration();

AucObjectKind[] knd = new AucObjectKind[] { AucObjectKind.aucObjCable };
AucAttribute[] atr = new AucAttribute[]
{
AucAttribute.aucAttrDesignation, //Name
(AucAttribute)10032, //Beschreibung
(AucAttribute)320, //Material
(AucAttribute)10061, //Menge
(AucAttribute)10025, //Querschnitt
(AucAttribute)10009, //Kabeltyp
(AucAttribute)10060, //Hersteller
(AucAttribute)77, //System
(AucAttribute)10055 //Preis
};
xmlConfig.set_ObjectKinds(knd);
xmlConfig.set_AttrIds(atr);
xmlConfig.Depth = 10;
return xmlConfig;
}