{
_yGeneral = _yGeneral - 30;
std::string packagename = _factory->GetPackageNameOfaBlackBox(boxType);
- int idBox = _sceneManager->createGBlackBox( 0,0, packagename ,boxType);
+ std::string boxType2 = _factory->GetTypeNameOfaBlackBox(boxType);
+ int idBox = _sceneManager->createGBlackBox( 0,0, packagename ,boxType2);
_countBoxes++;
double px = _xGeneral + (_countBoxes%2)*100;
double py = _yGeneral;
script += LineNumber(wln, lnNmbr);
script += "new ";
int id = boxes[i];
- GObjectController *control = _controllers[id];
- GBlackBoxModel *model = (GBlackBoxModel*) control->getModel();
+ GObjectController *control = _controllers[id];
+ GBlackBoxModel *model = (GBlackBoxModel*) control->getModel();
+ script += model->getBBTKPackage()+":";
script += model->getBBTKType();
script += " ";
script += model->getBBTKName();