DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Copy 2D Axis system Display using script

Help.....Can we Copy all the selected entires of 2D axis system Dispaly using Diadem script for comparing data of two input file

0 Kudos
Message 1 of 9
(6,997 Views)

Hi junkjunk,

 

You can interactively copy one or more curve configurations in the 2D Axis System Configuration dialog.  You can interactively copy a graph in REPORT by right-clicking on it and choosing the "Copy" menu, then right-clicking somewhere and choosing the "Paste" menu.  You can interactively copy an entire REPORT sheet by right-clicking on that sheet name and choosing the "Copy..." menu.

 

Or did you want to copy programmatically?

Brad Turpin

DIAdem Product Support Engineer
National Instrument

0 Kudos
Message 2 of 9
(6,974 Views)

Thanks Brad...But i want it to be done using script ....i have two reports that mostly display same type of 2Daxis graph but from two differnt input files so they must be shown in one single report.

for testing them side by side using script...how can i do "copy entry" in curve list of 2Daxis using script

0 Kudos
Message 3 of 9
(6,968 Views)

Hi junkjunk,

 

I don't know of an easy way to copy curves.  Could you make a version of the TDR file that has the curves manually copied and simply assign the correct X and Y channels to each curve programmatically?  The only way I know to copy curves is to create new curves and laboriously assign all the curve properties (that you care about) of the new curves to be the same as those of the old curves, and there are easily 50 or more of those.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 4 of 9
(6,941 Views)

Hello,

i need to copy whole 2DAxis object. When i right click on it, there is a "copy" option, but i cant find that option in script mode, there is only one function on the axis object i found and its "ExportToImage()" which creates a file, i just need to copy it to clipboard.

I know i can copy whole sheet by "ExportToClipboard", but its not that case, because i just need that axis. Is it possible by script?

 

0 Kudos
Message 5 of 9
(4,097 Views)

Hello Lukas,

the method you are looking for is part of the  "Objects" list e.g. here : Report.ActiveSheet.Objects.Copy

Hope that helps

Message 6 of 9
(4,071 Views)

Hi, thanks for help. but it didnt help me, because i wrote i need to copy the axis object TO CLIPBOARD, not to duplicate the object on the sheet. My goal is to copy only the axis and export it to powerpoint. i can do that on whole sheet as i wrote, but for a single axis, i cant find how to do it.

0 Kudos
Message 7 of 9
(4,061 Views)

Hello Lukas,

OK, that's a different requirement. In that case you only have the option to export the image of that 2D axis system to an image file using the "ExportToImage" method available for the objects. And then you have to use the Powerpoint ActiveX-API to insert the image to a PowerPoint file.

Hope that helps.

 

Message 8 of 9
(4,056 Views)

Thanks, i was thinking of doing it like this, so if there is no copy function for that case, i will do it like this.

0 Kudos
Message 9 of 9
(4,054 Views)