{"id":18,"date":"2014-12-23T22:53:54","date_gmt":"2014-12-23T22:53:54","guid":{"rendered":"http:\/\/blog.originlab.com\/?p=18"},"modified":"2018-11-20T17:24:39","modified_gmt":"2018-11-20T22:24:39","slug":"new-orglab-methods","status":"publish","type":"post","link":"https:\/\/blog.originlab.com\/ja\/new-orglab-methods","title":{"rendered":"New Orglab Released as Single DLL"},"content":{"rendered":"<p>A new version of Orglab has been released.\u00a0 Orglab is used for creating custom applications that can read and write Origin project (.OPJ) files. Your custom application communicates with Orglab using COM. Applications can be developed using C#, VB, PHP\u00a0and Python etc that supports COM.<\/p>\n<p>The new release of Orglab is based on Origin&#8217;s 9.3 source code.\u00a0 Previous releases consisted of several DLL files while this new release is a single DLL.\u00a0 This new release also adds new methods for getting and setting LabTalk object properties.\u00a0 This is an important addition because OrgLab does not support executing LabTalk script.\u00a0 This can be a problem if you want to accomplish a task that can not be done with a method or property in one of the Automation classes.\u00a0 An example would be changing the title of a window to show both long and short names.\u00a0 Changing the names visible can not be done from Automation but can be done by setting LabTalk&#8217;s Page.Title property.\u00a0 OrgLab 9.3 adds four new methods for setting and getting LabTalk object properties.<\/p>\n<pre class=\"lang:c++ decode:true\">double GetLTObjNumVar(string name)\r\nstring GetLTObjStrVar(string name)\r\nBOOL SetLTObjNumVar(string name, double value)\r\nBOOL SetLTObjStrVar(string name, string value)<\/pre>\n<p>The following VisualBasic example demonstrates how to show both short and long names in a window title.<\/p>\n<pre class=\"lang:vb decode:true\">Dim orgApp As Origin.Application\r\nDim orgBook As Origin.WorksheetPage\r\n\r\norgApp = New Origin.Application orgApp.NewProject()\r\norgBook = orgApp.WorksheetPages.Add()\r\norgBook.LongName = \"My Long Name\"\r\norgBook.SetLTObjNumVar(\"page.title\", 3) ' 3 = Show short and long names orgApp.Save(\"d:\\myProject.opj\")\r\n\r\norgApp.NewProject() ' make sure project is released\r\norgBook = Nothing\r\norgApp = Nothing\r\n<\/pre>\n<p>For more information about Orglab and to download the latest version visit the <a title=\"Orglab\" href=\"http:\/\/www.originlab.com\/Orglab\">Orglab<\/a> page.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>A new version of Orglab has been released.\u00a0 Orglab is &hellip; <\/p>","protected":false},"author":8,"featured_media":401,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[102],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming-other"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7DvU2-i","jetpack_likes_enabled":true,"jetpack_featured_media_url":"https:\/\/blog.originlab.com\/wp-content\/uploads\/2014\/12\/orglab-vbcode.png","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":9,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":1494,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/posts\/18\/revisions\/1494"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/media\/401"}],"wp:attachment":[{"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}