diff --git a/AddinEntry.cs b/AddinEntry.cs index 907e74c..1871b30 100644 --- a/AddinEntry.cs +++ b/AddinEntry.cs @@ -48,6 +48,12 @@ namespace Laservall.Solidworks { SubscribeToSelectionEvents(this.Application.Documents.Active); } + + this.CreateTaskPane(new TaskPaneSpec + { + Title = "Laservall Features", + Tooltip = "Laservall Features" + }); } private void OnDocumentActivated(IXDocument doc) { diff --git a/Extension/SWDocReader.cs b/Extension/SWDocReader.cs index 57b1881..64dbfc8 100644 --- a/Extension/SWDocReader.cs +++ b/Extension/SWDocReader.cs @@ -94,9 +94,7 @@ namespace Laservall.Solidworks.Extension swCustProp = swModelDocExt.get_CustomPropertyManager(""); //status = swCustProp.Get4(propertyName, false, out val, out valout); status = swCustProp.Get6(propertyName, false, out val,out valout,out bool wasResolved,out bool _); - Debug.Print("Value: " + val); - Debug.Print("Evaluated value: " + valout); - //Debug.Print("Up-to-date data: " + status); + if (wasResolved) { return valout; diff --git a/Laservall.Solidworks.csproj b/Laservall.Solidworks.csproj index e3e2a1a..0d34cb9 100644 --- a/Laservall.Solidworks.csproj +++ b/Laservall.Solidworks.csproj @@ -5,6 +5,7 @@ Debug AnyCPU {A8B83CC2-1DC4-478D-8956-B5357CDC336A} + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} Library Properties Laservall.Solidworks @@ -80,6 +81,9 @@ + + FeaturesUserControl.xaml + PartPropPaneUserControl.xaml @@ -87,11 +91,18 @@ TestUserControl.xaml + + ItemsPropWindow.xaml + + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -103,7 +114,12 @@ MSBuild:Compile + + Designer + MSBuild:Compile + + diff --git a/Pane/FeaturesUserControl.xaml b/Pane/FeaturesUserControl.xaml new file mode 100644 index 0000000..5710d35 --- /dev/null +++ b/Pane/FeaturesUserControl.xaml @@ -0,0 +1,15 @@ + + + +