Closed ghost closed 6 years ago
Viewer SDK does not provide direct access to this text box (or to this window). There might be another way to achieve what you need, what is it exactly?
Idea is to search branch without manually enter value in CAD search option. Example., Insert the value using the code (i.e., Another application or browser)
Hi, we could use the below one to search the object in Walkinside project.
var branches = viewer.ProjectManager.CurrentProject.BranchManager.GetBranchesByNameFragmentAndKind(KKSInput, VRBranchKind.Cad);
if (branches.Count() != 0)
{
foreach (IVRBranch branch in branches)
{
string branchName = branch.Name.Replace("/", "");
if (branchName == KKSInput)
{
//Object could be searched
}
branchVal = branchVal + 1;
}
}
Thanks Dinesh
Please close this issue. Thanks
Hi,
How to insert text in CAD search text box for searching object using c#?
Thanks