// RaC In the actual version, zInic=zFin=900
 
-               _pts->SetPoint(0, xInic, yInic, zInic );
+//EED          _pts->SetPoint(0, xInic, yInic, zInic );
+//EED          _pts->SetPoint(1, xInic, yFin, zInic );
+//EED          _pts->SetPoint(2, xFin, yFin, zFin );
+//EED          _pts->SetPoint(3, xFin, yInic, zFin );
+
+               _pts->SetPoint(0, -1000, -1000, -1000 );
                _pts->SetPoint(1, xInic, yFin, zInic );
-               _pts->SetPoint(2, xFin, yFin, zFin );
+               _pts->SetPoint(2, 1000, 1000, 1000 );
                _pts->SetPoint(3, xFin, yInic, zFin );
-                               
+               
+               
+               
                lines->InsertNextCell(5);
                lines->InsertCellPoint(0);
                lines->InsertCellPoint(1);
 
 
                // RaC In the actual version, zInic=zFin=900
 
-               _pts->SetPoint(0, xInic, yInic, zInic );
+//EED          _pts->SetPoint(0, xInic, yInic, zInic );
+//EED          _pts->SetPoint(1, xInic, yFin, zInic );
+//EED          _pts->SetPoint(2, xFin, yFin, zFin );
+//EED          _pts->SetPoint(3, xFin, yInic, zFin );
+
+               _pts->SetPoint(0, -1000, -1000, -1000 );
                _pts->SetPoint(1, xInic, yFin, zInic );
-               _pts->SetPoint(2, xFin, yFin, zFin );
+               _pts->SetPoint(2, 1000, 1000, 1000 );
                _pts->SetPoint(3, xFin, yInic, zFin );
-                               
+               
+               
+               
                lines->InsertNextCell(5);
                lines->InsertCellPoint(0);
                lines->InsertCellPoint(1);
 
 
                // RaC In the actual version, zInic=zFin=900
 
-               _pts->SetPoint(0, xInic, yInic, zInic );
+//EED          _pts->SetPoint(0, xInic, yInic, zInic );
+//EED          _pts->SetPoint(1, xInic, yFin, zInic );
+//EED          _pts->SetPoint(2, xFin, yFin, zFin );
+//EED          _pts->SetPoint(3, xFin, yInic, zFin );
+
+               
+               _pts->SetPoint(0, -1000, -1000, -1000 );
                _pts->SetPoint(1, xInic, yFin, zInic );
-               _pts->SetPoint(2, xFin, yFin, zFin );
+               _pts->SetPoint(2, 1000, 1000, 1000 );
                _pts->SetPoint(3, xFin, yInic, zFin );
-                               
+               
+               
                lines->InsertNextCell(5);
                lines->InsertCellPoint(0);
                lines->InsertCellPoint(1);
 
 
                double mid = (xInic+xFin)/2;
 
-               _pts->SetPoint(0, xInic, yInic, zInic );
+//EED          _pts->SetPoint(0, xInic, yInic, zInic );
+//EED          _pts->SetPoint(1, mid, yFin, zInic );
+//EED          _pts->SetPoint(2, xFin, yInic, zFin );                          
+
+               _pts->SetPoint(0, -1000, -1000, -1000 );
                _pts->SetPoint(1, mid, yFin, zInic );
-               _pts->SetPoint(2, xFin, yInic, zFin );                          
-                       
+               _pts->SetPoint(2, 1000, 1000, 1000 );                           
+               
+               
                ///************************* FILL *************************
 
                vtkCellArray *strip = vtkCellArray::New();
 
        void vtkGPortView::updateColors()
        {
-               _fillObjectActor->GetProperty()->SetColor(0.5,0.45,0.45);
+               _fillObjectActor->GetProperty()->SetColor(0.45,0.45,0.45);
 
                if(_state==HIGHLIGHTED)
                {
-                       _fillObjectActor->GetProperty()->SetColor(0.8,0.8,0.8);
-               }
-               else
-               {
+                       _fillObjectActor->GetProperty()->SetColor( 0 , 0 , 1 );
+               } else {
                        GPortModel* portm = (GPortModel*)_model;
                        if(portm->isConnected())
                        {
                        else if(portm->isValueSet())
                        {
                                _fillObjectActor->GetProperty()->SetColor(0.55,0.25,0.25);
-                       }
-                       else 
-                       {
-                               _fillObjectActor->GetProperty()->SetColor(0.5,0.45,0.45);
+                       } else {
+                               _fillObjectActor->GetProperty()->SetColor(0.45,0.45,0.45);
                        }
                }
        }
 
                std::string                     packageName = bbDes->GetPackage()->GetName();
 
                this->_tabsMgr->getActualTabPanel()->getSceneManager()->createGBlackBox(50,50,packageName, typeName);
-               
+               this->_tabsMgr->getActualTabPanel()->getSceneManager()->refresh();
                
                printf("EED  wxGUIEditorGraphicBBS::OnClickBtnBox \n");
-               refreshGUIControls();           
        }
        
        //=========================================================================
 
 
        //=========================================================================
 
+       
+       void wxVtkSceneManager::refresh()
+       {
+               _baseView->Refresh();
+       }
+       //=========================================================================
+
        void wxVtkSceneManager::refreshScene()
        {
                _baseView->RefreshView();
        }
-
+       
        //=========================================================================
        
        void wxVtkSceneManager::centerView()
 
 
                virtual void update(int idController,int command);
 
+               void refresh();
                void refreshScene();
                void displayBlackBoxInfo(std::string packageName, std::string boxName);
                void updateStatusBar(std::string textStatus);
        private:
 
                //wxPanel that uses the manager
-               wxGEditorTabPanel *_parent;
+               wxGEditorTabPanel                                       *_parent;
 
                // Id of the manager, the same of the panel
-               int _idManager;
+               int                                                                     _idManager;
 
                // Boxes number in the scene
-               int _numBoxes;
+               int                                                                     _numBoxes;
 
                // StartDragging
-               bool _startDragging;
+               bool                                                            _startDragging;
 
                // creaMaracasVisu viewer
-               wxVtk3DBaseView *_baseView;
+               wxVtk3DBaseView                                         *_baseView;
 
                // State of the 3D Scene or the virtual world
                int _worldState;
 
                //Map of id - objectController
-               std::map<int,GObjectController*> _controllers;
+               std::map<int,GObjectController*>        _controllers;
 
                //Saves the id's of the selected objects in the controllers map
-               std::vector<int> _selectedObjects;
+               std::vector<int>                                        _selectedObjects;
 
                //Is the diagram in state complex box 
-               bool _isComplexBox;
+               bool                                                            _isComplexBox;
 
-               int _idConnectionInCreation;
+               int                                                                     _idConnectionInCreation;
 
                int _contLastId;
                
-               vtkTextActor3D          *_textActor;
-               vtkPoints                       *_pts;
-               vtkActor                        *_fillObjectActor;
-//EED Borrame          vtkPolyDataMapper       *_fillPolyMapper;
-               vtkDataSetMapper        *_aPolygonMapper;
+               vtkTextActor3D                                          *_textActor;
+               vtkPoints                                                       *_pts;
+               vtkActor                                                        *_fillObjectActor;
+               vtkDataSetMapper                                        *_aPolygonMapper;
 
        protected: