The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 GetNumDataPlots or something like that possible?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Dominik Paulkowski

Germany
Posts

Posted - 11/22/2006 :  11:11:37 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): Origin 7.5G SR6
Operating System: XP Professional

In my script I need the number of already existing DataPlots in a GraphPage or GraphLayer. Is there something possible like:

int iDataPlotNumbers = gl.GetNumDataPlot();

This idea is based on

int iColNumbers = wks.GetNumCol();

I need this to avoid "Unattached Wrapper Class Members" in bad cases, that are possible on re-run script in the same opened project.

-------------------
:-Dipl.-Phys. at
Fraunhofer Institute for Surface Engineering and Thin Films IST, Braunschweig, Germany

Edited by - Dominik Paulkowski on 11/22/2006 11:12:50 AM

Mike Buess

USA
3037 Posts

Posted - 11/22/2006 :  11:50:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Dominik,

This gives the number of dataplots in graphlayer gl...

int iDataPlotNumbers = gl.DataPlots.Count();

Mike Buess
Origin WebRing Member
Go to Top of Page

Dominik Paulkowski

Germany
Posts

Posted - 11/23/2006 :  02:55:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Mike!

Thanks a lot! That is very well.

:-Dominik

-------------------
:-Dipl.-Phys. at
Fraunhofer Institute for Surface Engineering and Thin Films IST, Braunschweig, Germany
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000