The Origin Forum
File Exchange
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
 All Forums
 Origin Forum for Programming
 Forum for Automation Server/COM and LabVIEW
 Documentation for OriginLab type library?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ChemistryGuy

Australia
3 Posts

Posted - 12/05/2017 :  6:42:38 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Origin Pro 2017, 64 bit):
Operating System:

Hi everyone,

I have been writing code with VBA to automate various tasks in Origin.

So far I have determined the purpose and syntax of methods and properties by looking at examples, and experimentation.

However, this would be a lot easier if there was a document available that listed all objects, and the meaning of each of their properties and methods.

For example, Adobe CreativeSuite has the following document, which gives this information for their type library:

http://wwwimages.adobe.com/content/dam/acom/en/devnet/illustrator/pdf/Illustrator_Scriptin_Reference_JavaScript_cc.pdf

Does anyone know if an analagous document exists for Origin?

Thank you and regards,

Conrad

eparent

118 Posts

Posted - 12/07/2017 :  09:43:16 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Is our Automation Server page what you are looking for?
https://www.originlab.com/doc/COM
Go to Top of Page

ChemistryGuy

Australia
3 Posts

Posted - 12/11/2017 :  7:12:36 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes that is what I was after, thank you very much for providing this link.

I also had one follow up question: I looked at the GraphLayer (and similar) objects and I could not find any properties that referred to the settings of the graph. For example the line thickness or axes minimum values.

So I believe that these properties are not exposed in the Type Library. Based on this I conclude that if I want to programmatically alter these properties, I will need to use a different approach. Eg by writing my program in Origin C instead of VBA. Please would you advise me if you agree with my understanding?
Go to Top of Page

eparent

118 Posts

Posted - 12/14/2017 :  3:37:56 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Origin C is more robust than the COM interface. COM can execute LabTalk code which means you can also execute Origin C code. This allows you to continue using COM but do the things COM cannot in LabTalk and Origin C.
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 © 2008 Originlab Corporation Go To Top Of Page
Snitz Forums 2000