Reply

How to lock the screen?

[ Edited ]

Hi, everyone!

 

I have a problem.My plug-in opens up a lot of documents, does something with them and closes and all that the user sees.It's look very messy. If there any way to lock solid edge window before opening another document to hide all operations and unlock after the work done? In other words, how to show only firs document in SE window and open others in background?

 

Thanks.

 

Posted by: Walker
Post date: 8/3/2012 8:06:24 AM

3 REPLIES

Re: How to lock the screen?

[ Edited ]

Hi,

 

check the following properties of the Solid Edge Application object:

 

Visible - shows/hides the Solid Edge application window

Interactive - enables/disables user interaction

 

Posted by: Wolfgang Kunert
Post date: 8/4/2012 2:35:29 PM

Re: How to lock the screen?

[ Edited ]

You can also open a document without a window being used. This is useful if the user is working interactively and you can't hide the application in the manner Wolfgang mentions:

 

// This command demonstrates a little know method of opening a Part document without

// creating a window. It relies on setting the option input arg to an unsigned int. The

// value of the int is eight.

 

#define JDOCUMENTPROP_NOWINDOW 0x00000008

 

DocumentsPtr pDocs = GetApplicationPtr()->Documents;

 

_bstr_t FullName;

 

if( NULL != pDocs )

{

PartDocumentPtr pPartDoc;

 

VARIANT vOption;

 

V_VT( &vOption ) = VT_UI4;

V_UI4( &vOption ) = (unsigned long )JDOCUMENTPROP_NOWINDOW;

 

pPartDoc = pDocs->Open( "c:\\temp\\block.par", vOption );

 

if( NULL != pPartDoc )

{

FullName = pPartDoc->FullName;

 

pPartDoc->Close();

}

}

 

Posted by: R.D. Holland
Post date: 8/10/2012 10:18:01 AM

How to lock the screen?

[ Edited ]

Hi R.D.

 

Thanks for the info, sorry it took so long to get back to you but I still haven't been able to get back to this (although it looks like a bug in ST4 will force my hand soon).

 

Interesting thing is, I have an unresolved TQ that is about 3 years old where this question wasn't answered Smiley Wink

 

Cheers,

Calum

 

Posted by: Calum McLellan
Post date: 9/28/2012 4:01:10 AM