How to switch visualization in library by code?

dongdong
2018-10-17
2018-10-17
  • dongdong - 2018-10-17

    Hi,

    I Switch library internal visualization by the way as shown below.

    It works well before,but now it doesn't work.Could you please tell me if it's right ? Or could you please provide me a well working way?

    Method 1:

    VisuElems.g_VisuManager.SetMainVisuGlobally(VisuElems.Visu_ClientType.TargetVisualization ,stVisu := VisuName);
    

    Method 2:

    VisuElems.CURRENTVISU:=VisuName;
    

    Best regards.

    IMG: lib.png

     
  • e.kislov - 2018-10-17

    I think you should use LibraryNamespace in VisuName:

    VisuName := MyLibraryNamespace.Screen1;
    
     
  • dongdong - 2018-10-17

    e.kislov hat geschrieben:
    I think you should use LibraryNamespace in VisuName:

    VisuName := MyLibraryNamespace.Screen1;
    

    Hi e.kislov,

    Thanks for your reply.

    I have used the library namespace, but I still can't switch. Please note the selected content in the attached image.

     
  • e.kislov - 2018-10-17

    Yes, you're right.

    I try it and as i see Library Visu Switching works only without mark "Internal" (it was expected) and only with visu elements (InputConfiguration - OnMouseClick - Switch Visu), not from code...

     

Log in to post a comment.