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
 octree_set_auto_support
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

couturier

France
291 Posts

Posted - 07/26/2016 :  2:04:38 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2016
Operating System:7

Is there any trick for using octree_set_auto_support with a GETN_LIST ?

Help says "For now GETN_BUTTON, GETN_LIST, GETN_NUM, GETN_BEGIN_BRANCH control support the checkbox".

in following example, it works fine with GETN_BUTTON and GETN_NUM, but doesn't with GETN_LIST

void octree_set_auto_support_ex1()
{
double ff=1.23;
string str="test1|test2|test3";

GETN_TREE(tr)
GETN_BUTTON(Path, "File path", GetAppPath())
GETN_NUM(NumVal, "Scale Factor", ff)
GETN_LIST(list, "LIst", 0, str)

TreeNode tr1 = tr.Path;
octree_set_auto_support(&tr1, -1); //-1 uncheck, 0 not visible, 1 check
TreeNode tr2 = tr.NumVal;
octree_set_auto_support(&tr2, -1); //-1 uncheck, 0 not visible, 1 check
TreeNode tr3 = tr.list;
octree_set_auto_support(&tr3, -1); //-1 uncheck, 0 not visible, 1 check

if( GetNBox(tr) ) // open the GetN dialog
{
// enter here if clicked OK button to close dialog
tr1 = tr.Path;
int nCheckStatus = octree_get_auto_support(&tr1);
string strAuto = AUTO_CHECKED == nCheckStatus ? "checked" : "not checked";
out_str( strAuto );
}
}

yuki_wu

896 Posts

Posted - 08/09/2016 :  05:57:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I am sorry that it is a bug.

We have added this problem to our bug tracking database, ID ORG-15102, and will improve it in the future.

Sorry for the inconvenience.

Yuki
OriginLab
Go to Top of Page

yuki_wu

896 Posts

Posted - 11/14/2017 :  03:56:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi couturier and who noticed this post,

The bug mentioned in this post has been fixed in Origin 2018, and we have just released Origin 2018 last week. You can upgrade or download a demo to see how it works:
http://www.originlab.com/index.aspx?s=12&lm=62

Of course, we have many other improvements and new features in Origin 2018. You can visit Originlab.com/2018 for more info.

Thanks,
Yuki
OriginLab

Edited by - yuki_wu on 11/14/2017 04:17:42 AM
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