Hi All,
I am using a NuGet package called SolidDna to create a taskpane addin and I have been able to code it with not issues until the last two weeks.
When I debug it and the addin loads but the taskpane freezes when I click on the addin tab and only shows the previous tab content. I am not sure what has happened as it was working fine.
It stopped working on SolidWorks 2020 so I upgraded to 2021 to see if that solved the issue but no luck.
It is probably something I have changed but cannot put my finger on it as I have created a new blank SolidDna addin and it does the same.
I have attached a screenshot of the issue.
Has anyone comes across this before?
Thanks in advance
Craig
I'm using the SolidDna framework as well for an add-in I wrote. It's worked from SW2016 up through SW2020 so far without issue. Are you able to step through the initial loading of the add-in to see where the control should be added to the task pane?
In my project, that is in the SolidDnaIntegration.cs file in the ConnectedToSolidworks() method. The WpfControl is what may not be loading properly.
Function contents for reference:
public override void ConnectedToSolidWorks()
{
// Create our taskpane
mTaskpane = new TaskpaneIntegration<TaskpaneUserControlHost>()
{
Icon = Path.Combine(PlugInIntegration.PlugInFolder, "Logo_Small.png"),
WpfControl = new CustomPropertiesUI(),
};
// Add to taskpane
mTaskpane.AddToTaskpane();
}