| |
 | Gut zu wissen: Hilfreiche Tipps und Tricks aus der Praxis prägnant, und auf den Punkt gebracht für CATIA & Co. |
| |
 | KISTERS 3DViewStation - Der Schlüssel zur Einsparung von CAD-Lizenzen, eine Pressemitteilung
|
Autor
|
Thema: how to Pause macro (2028 mal gelesen)
|
appvid Mitglied DESIGNER
 Beiträge: 9 Registriert: 28.08.2012 Model-HP Z500 Processor-Interl Xeon 2.93GhZ Type-64bit RAM 12GB CATIA-R20 MS VB 6.5
|
erstellt am: 07. Sep. 2012 23:08 <-- editieren / zitieren --> Unities abgeben:         
Hi good day.. Could some explain how to pause macro for user to see catia screen and do his check and continue. this is what i wan to do ---------------- Sub main 'step-1 copy data from one file to another file code (i have code) 'step-2here i want user to check file if copied geometry is right. If he says ok rest of the macro would continue 'step-3 file saveas code (i have code) end sub ---------- Any examples how to use vbModel and vbModeless with userform Happy weekend and thanks appvid Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |
RSchulz Ehrenmitglied V.I.P. h.c. Head of CAD, Content & Collaboration / IT-Manager

 Beiträge: 5541 Registriert: 12.04.2007 @Work Lenovo P510 Xeon E5-1630v4 64GB DDR4 Quadro P2000 256GB PCIe SSD 512GB SSD SmarTeam V5-6 R2016 Sp04 CATIA V5-6 R2016 Sp05 E3.Series V2019 Altium Designer/Concord 19 Win 10 Pro x64
|
erstellt am: 09. Sep. 2012 20:27 <-- editieren / zitieren --> Unities abgeben:          Nur für appvid
|
appvid Mitglied DESIGNER
 Beiträge: 9 Registriert: 28.08.2012 Model-HP Z500 Processor-Interl Xeon 2.93GhZ Type-64bit RAM 12GB CATIA-R20 MS VB 6.5
|
erstellt am: 12. Sep. 2012 00:27 <-- editieren / zitieren --> Unities abgeben:         
|
bgrittmann Moderator Konstrukteur
       
 Beiträge: 12054 Registriert: 30.11.2006 CATIA V5R19
|
erstellt am: 12. Sep. 2012 22:10 <-- editieren / zitieren --> Unities abgeben:          Nur für appvid
Hello When do you want to add geometry? During the break of the macro? Why do you want to pause the macro, you want to add geometry which is necessary for continuing the macro? Bernd
------------------ Warum einfach, wenn es auch kompliziert geht. Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |
RSchulz Ehrenmitglied V.I.P. h.c. Head of CAD, Content & Collaboration / IT-Manager

 Beiträge: 5541 Registriert: 12.04.2007 @Work Lenovo P510 Xeon E5-1630v4 64GB DDR4 Quadro P2000 256GB PCIe SSD 512GB SSD SmarTeam V5-6 R2016 Sp04 CATIA V5-6 R2016 Sp05 E3.Series V2019 Altium Designer/Concord 19 Win 10 Pro x64
|
erstellt am: 13. Sep. 2012 08:42 <-- editieren / zitieren --> Unities abgeben:          Nur für appvid
Zitat: Original erstellt von bgrittmann: Hello When do you want to add geometry? During the break of the macro? Why do you want to pause the macro, you want to add geometry which is necessary for continuing the macro?
Hi Bernd, I think he want to pause the macro after the generation of the geometrie. Then the user should check the generated geometrie and if it is inserted correctly he continuous the macro with clicking an "OK" button. For this Problem the only way is to insert a questionbox for the interaction of the user. Maybe the problem is that the catia window would be unhandled and blocked for userinput while posting the msgbox. If this is the problem you have to migrate it to vb.net because there the program runs self contained without blocking catia. Maybe a second solution could be to split the macro into 2... ------------------ MFG Rick Schulz Nettiquette (CAD.de) - Was ist die Systeminfo? - Wie man Fragen richtig stellt. - Unities 
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |
appvid Mitglied DESIGNER
 Beiträge: 9 Registriert: 28.08.2012 Model-HP Z500 Processor-Interl Xeon 2.93GhZ Type-64bit RAM 12GB CATIA-R20 MS VB 6.5
|
erstellt am: 13. Sep. 2012 23:54 <-- editieren / zitieren --> Unities abgeben:         
Exactly, If a usre is not satisfied with geometry that macro created, then user must be able to add geometry before continuing with rest of macro. I see very little information in internet about it and understand that I would be able to do with vbmodel and vb modeless. Create a userform with a continue button and When user clicks on continue button subroutine starts. I would like to see an example for that as I my vb skills are limited
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |