Using UIshow with Screen maker

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.

Hello,

Kindly refer to this post :

http://forums.robotstudio.com/forum_posts.asp?TID=3320

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

First thanks for your helps.
I ve tried as below but it is still not working and giving the same error code :frowning:

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

UIShow Name, Type Status:=mystatus;

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”;

Hi,

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

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

Hello,

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

OK.Thanks.