Closed makiko-SYSPRO closed 7 years ago
@makiko-syspro, thanks for your request, we are always glad to hear back from users of our SDK.
If I understand correctly, you use IVRLabelGroup
and IVRLabel
. Have you already tried IVRLabelGroup.MinimumDistance
and IVRLabelGroup.MaximumDistance
properties? Normally they work the same way as fade distances on redlines.
You can make the following small change to MainForm.cs
of Example 7 to set fade distance:
m_LabelGroup = SDKViewer.CreateLabelGroup("Example7");
m_LabelGroup.MaximumDistance = 3; // <- add this to have fade distance 3.
Let us know if this works for you.
Hello kveretennicov,
Thank you for your reply. Yes, it worked for own label I created by SDK program. What about "Redlining" group default distance ? WI set difault distance as 10, but can we change it to other number by SDK ?
Hello,
For redlines created with the existing "Redlining" view, there is currently no way to modify default values like fading distances.
A solution would be to implement your own view, where each IVRRedlineGroup would have your desired setup. That way, you can follow the suggestion from @kveretennicov in order to setup each group properly:
var redlineGroup = redlineManager.CreateGroup("a redline group name");
redlineGroup.FadeMinimumDistance = 0;
redlineGroup.FadeMaximumDistance = 3;
Then each redline created within this group will have the fade maximum distance set to 3 meters.
var newRedline = redlineGroup.Items.Add("a redline name", new VRVector3D(1.0, 2.0, 3.0);
If this solution does not fit your needs, could you please share with us how your are planning to use these redlines.
Closing for the time being. Feel free to re-open if you need more assistance from us. Thank you.
Hello, Is labelgroup is store as text file or in which format & where is saved?
-- Kind regards
Hello - please let me know if anyone can answer my questions , , , I used WIV7 SDK to capture screen shot, but it need to be upgrade to V10.2SP1. So I would like to know the information by V10.2SP1 envrionment.
1) By modifying Viewer Example 7, I could add own label into 3D model. Now , I want to add Fadevalue options like Redlining. How should I modify the code ?
2) Is there anyway to modify initial Redlining Fadevalue by SDK ?
WIPlugin.cs.txt