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
 LabTalk Forum
 Enable contour lines via script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

aplotnikov

Germany
169 Posts

Posted - 08/19/2020 :  04:40:05 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release: Pro 2020b (64-bit) 9.7.5.184
Operating System: Windows 10

Hello,

Is it possible to display (to turn on/off) contour lines on a 3d surface using programming interface (LT or OC)? Now I can do it only via dialog box:


Unfortunately I haven't found any correspoding property of the layer.cmap object.

What I need finally:


I would appreciate any helpful advice.

Regards,

Alexei

Chris D

428 Posts

Posted - 08/19/2020 :  09:17:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The layer.cmap object should provide what you need. See:

https://www.originlab.com/doc/LabTalk/ref/Layer-CMap-obj


Thanks,
Chris Drozdowski
Originlab Technical Support
Go to Top of Page

aplotnikov

Germany
169 Posts

Posted - 08/19/2020 :  10:05:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Chris D

The layer.cmap object should provide what you need. See:
https://www.originlab.com/doc/LabTalk/ref/Layer-CMap-obj


Could you please tell me, which exactly propeties correspond "Enable Contours" and "Self" checkboxes? I can change line style, line width, etc., but I cannot turn contour lines on/off programmatically.
Go to Top of Page

Chris D

428 Posts

Posted - 08/19/2020 :  10:43:35 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I fear the best you are going ot get in terms of showling hiding contour lines is

layer.cmap.showLines(method); // See below
layer.cmap.updateScale(); 

where:
method = 1, show the lines only on the major levels.
method = 2, show all contour lines.
method = 3, hide all contour lines.

That shows/hides lines but it doesn't appear to have any impact on that checkbox. It seems that that exact checkbox isn't LabTalk accessible.

Note you may have to refresh the graph after running layer.cmap.showLines(method);.

Thanks,
Chris Drozdowski
Originlab Technical Support
Go to Top of Page

aplotnikov

Germany
169 Posts

Posted - 08/19/2020 :  5:10:34 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for your reply!
Unfortunately it doesn't work at all. I tried to use this method before asking for help here. Moreover the property corresponding the checkbox "Self" still remains a secret. Does it matter if the surface represents a 3D parametric plot? It is not an idle curiosity - contours are very helpful in this particular case, but I have to generate (via LT script) each time a new 3d surface using different parameter sets.
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 08/19/2020 :  9:53:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
We will look into this, I added ORG-22418 S2.

We maybe able to get this into beta 4.

CP
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