Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

issue in using ProSelect with UI Dialog

ajoy

New member
hello all,

when i call ProSelect function from a button listener in toolkit dialog ,cursor will not allow me to select any item from Pro/E interface ,howto make it possiblewithout destroying the dialog.
 
Could you give a more descriptive example of what you are trying to do? Why would you need to select anything from the Pro/ENGINEER UI during a graphics window selection operation?
 
Hello Ajoy,


If i understand your problem correctly,I guess you need to relese the dialog acitivity then call the ProSlect() then you can able to select from the Pro/Engineer graphic sceen.You can not handle two evently simultaneously at one point of time.


I think your req't is that till you process input based on ProSlect() you sould not close your dialog box.I think you need to refine your req't some how to accompish the proselect().I encountered similar kind of issue in past.


Kishore V
 
yes ,i am looking for the same .


I will make it clear .I have 4 Pushbuttons in my dialog . i want touse ProSelect froma function which is defined in ProUIPushbuttonActivateActionSet. I need all selection objects before closing dialog(ie need to toogle between selections) . But the problem is that Pro/E is not giving access for selction without destroying dialog.


But the same will work for ProDirectoryChoose














 
NOOOOOOOOOOO!!!!! You cannot put Pro/TOOLKIT calls into two different threads. You can have a multi-threaded program but ALL of the Pro/TOOLKIT calls must reside in the main thread.
Multi-Threaded DLL Libraries for Windows






Library Name
[/B]





Purpose






protkmd.lib

Spawn mode library


ptasyncmd.lib

Asynchronous mode library


protk_dllmd.lib

DLL mode library
Multi-Threaded DLL (MD) libraries are used to build a multithreaded DLL for Windows using the /MD compiler flags. You can use these libraries for the following type of applications:



DLL mode applications compiled with the MD flags (if required to link with other MD compiled libraries).


Asynchonous mode applications compiled as DLLs to be loaded into processes external to Pro/ENGINEER.[/list]
The makefiles make_install_md and make_async_md build with these libraries.


Note:

Although the library flags provide compatibility with multithreaded components, Pro/TOOLKIT calls must be made within a single thread. Pro/ENGINEER does not respond to calls made from multiple threads.
 
Hi all!

Here is another question to this topic:

I start a JLink-application with toolkit. In some situations I have to set the JLink-Thread to the status "waiting". The consequence is, that ProE is blocked. Is it possible to start the jlink-application in another thread than the main toolkit thread?
My goal is that the waiting jlink-thread don
 
If you provide a small code snippet I can try and let U know .. It is very well possible to do Pro/Select when a Dialog is open
 

Sponsor

Back
Top