Tool name not found


Author
Message
Craig Browder
Craig Browder
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)
Group: Forum Members
Posts: 9, Visits: 17
We have the following in our code. But when it executes, the tool name is not found. Can someone please take a look at the below code and help us identify what may be causing the issue?

Thanks!

Craig

// replace the default drag drop target tool with your own one
// to extend the drop capabilities of the view
NTool tool = nDrawingView1.Controller.Tools.GetToolByName(NDWFR.ToolDragDropTarget); //NDWFR.ToolDragDropTarget is not found and tool is null
//int index = 24; //TESTING
int index = nDrawingView1.Controller.Tools.IndexOf(tool); //since tool is null, index value is -1
if(tool!=null)
nDrawingView1.Controller.Tools.Remove(tool);
nDrawingView1.GlobalVisibility.ShowPorts = false;
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search