From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Aufzeichnen

Solved!
Go to solution

Das Aufzeichenmodus lässt sich nicht mehr im Report automatisieren.

Ich kann zwar noch den Layoutsaufruf im Aufzeichenmodus automatisieren  aber alles weiteren lässt sich nicht mehr unter Aufzeichenmodus

automatisieren.

Woran könnte es liegen.

Gruss

Ghis

0 Kudos
Message 1 of 3
(4,851 Views)

Hallo Chis

 

Ja das ist so. Wenn wirklich alle Befehle aufgezeichnet würden wäre dein Script sehr schnell sehr groß. Aber du kannst noch mehr aufzeichnen. Der schlüssel ist die Tastenkombination STRG + Umschalt + C:

Im Script-Aufzeichnungsmodus zeichnet DIAdem die Einstellungen eines Dialogs auf, wenn dieser geöffnet ist , sonst kopiert DIAdem die Einstellungen eines Dialogs in die Windows-Zwischenablage. Wenn Sie in DIAdem-REPORT ein oder mehrere Objekte markiert haben kopiert DIAdem die Einstellungen dieser Objekte in die Windows-Zwischenablage.

 

Auch das kann zu mehren hundert Zeilen Code führen. Die für dich wirklich wichtigen Zeilen musst du dir dann da raussuchen. Aber da hilft die Hilfe auch mit kleinen passenden Beispielscripten weiter.

 

Winfried

0 Kudos
Message 2 of 3
(4,845 Views)
Solution
Accepted by Ghilghi

Hi Ghilghi,

 

Please note that the Script Recorder in DIAdem never recorded changes to an existing layout, only REPORT layout loads and saves and few other minor things.  The idea has always been to handle with the *.LPD or *.TDR file the parameters that dictate how the various REPORT objects would appear.  The only things that have changed recently is that the <Ctrl-A> key sequence has been changed to <Ctrl-Shift-C> and the recorded code has changed from the red global GraphObj... commands to the object oriented Report.Sheets(1).Objects type commands.  You also have the new option with DIAdem 2012 of selecting a graph component, such as an X or Y axis or a particular curve, then hit <Ctrl-Shift-C> to trap just the code for that one component.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 3 of 3
(4,788 Views)