QStringList HYDROData_PolylineXY::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
{
QStringList aResList = dumpObjectCreation( theTreatedObjects );
- QString aPolylineName = GetName();
+ QString aPolylineName = GetObjPyName();
+
+ // Set the wire color
+ QStringList aWireColorDef;
+
+ QColor aWireColor = GetWireColor();
+ setPythonObjectColor( aWireColorDef, aWireColor, DefaultWireColor(), "SetWireColor" );
+
+ if ( !aWireColorDef.isEmpty() )
+ {
+ aResList << aWireColorDef;
+ aResList << QString( "" );
+ }
// Set polilyne data
NCollection_Sequence<TCollection_AsciiString> aSectNames;