bonassus Posted June 15, 2017 Share Posted June 15, 2017 If I have a string parameter assigned to each point of an object can I create a group for each point using it? s@s = sprintf("%i",i@ptnum); f@group_s = @s ??? thanks, Quote Link to comment Share on other sites More sharing options...
Sepu Posted June 15, 2017 Share Posted June 15, 2017 string s = sprintf("point_%d",@ptnum); setpointgroup(0, s, @ptnum, 1); 2 Quote Link to comment Share on other sites More sharing options...
bonassus Posted June 15, 2017 Author Share Posted June 15, 2017 Okay, thanks a lot. I see now in the help card that the last parameter, 1 is a value parameter. Is this a true false value? Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted June 15, 2017 Share Posted June 15, 2017 (edited) 2 hours ago, bonassus said: Is this a true false value? Yes, you could do something like: int grp = @Cd.r > 0.5; // returns 1 if red color above 0.5, 0 if 0.5 or less setpointgroup(0, "red_group", @ptnum, grp, "set"); // sets group if grp is 1 Edited June 15, 2017 by konstantin magnus corrected it ; ) 1 Quote Link to comment Share on other sites More sharing options...
bonassus Posted June 15, 2017 Author Share Posted June 15, 2017 Thank you, did you leave out the point number parameter from your example? Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted June 15, 2017 Share Posted June 15, 2017 corrected it ; ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.