RobotStudio event

Using UIshow with Screen maker

Options
Hi,
I want to call my screen maker program from rapid with UIShow ins.

but i get "Typename is invalid for this assembly error".

 

My code is below .

 

CONST string Name:="TpsViewUserInterface_928.dll";
CONST string Type:="ABB.Robotics.sdk.Views.TpsViewUserInterface_928";
VAR num mystatus:=0;

!

UIShow Name, Type Status:=mystatus;

 

i see type error  (status=-5).

 

My dll files names are :

 

TpsViewUserInterface_928.dll

TpsViewUserInterface_928.gtpu.dll

 

What i need to write as typename to use UIShow Command with Screen Maker?

Thanks.

 
HnmN

Comments

  • Hello,

    Kindly refer to this post :

     


     

    If your are not able to access this link then the Type should be ABB.Robotics.sdk.Views.MainScreen. Try this.

     
  • tomb
    Options
    First thanks for your helps.

    I ve tried as below but it is still not working and giving the same error code :(

     

    CONST string Name:="TpsViewUserInterface_928.dll";
    CONST string Type:="ABB.Robotics.sdk.Views.MainScreen";
    VAR num mystatus:=0;

     UIShow Name, Type Status:=mystatus;

    HnmN
  • Hello,
     

    The name should be a gtpu dll.

    CONST string Name:="TpsViewUserInterface_928.gtpu.dll";

     

    The typeName should be

    ABB.Robotics.sdk.Views."MainScreen as defined in ScreenMaker"

    Any screen in ScreenMaker can be made as MainScreen.

     

    So if "UserInterface_1" is made as (main) in ScreenMaker, then type name would be
    CONST string Type:="ABB.Robotics.SDK.Views.UserInterface_1";
  • tomb
    Options
    Hi,

     

    Thank you very much. Now it is working. :)

     

    Is it possible to open a screen that isnot set as Main?

     
    HnmN
  • Hello,
     

    It is not possible to open a screen that is not set as main directly without performing any action from the mainscreen.

     
  • tomb
    Options
    OK.Thanks.
    HnmN