... if you can describe exactly what you'd need, and what Sincpac can't yet do, just let Sinc or I know and we'll see what we can muster up.
Here it goes....
First - If there's a simpler way of doing this, please feel free to point me in the right direction. I know little of working with Style Collection.
I am hoping to develop, or contribute towards, a WPF User Control, hosted within an AutoCAD Tool Palette (something which I've done before
), that has three panes.
- My initial thought is for the panes to be tiled vertically, but one pane on top, and two splitting the bottom would work also, methinks.
First (left?) pane -
Will display the styles contained within the ActiveDocument's Style Collection, perhaps in a WPF TreeView that resembles that which is available from the Settings Tab of the Toolspace Palette.Second (center?) pane -
Will display the layers associated with the selected style (from the left pane).Third (right?) pane -
Will include a method for the user to specify a file from which to pull the 'incoming' layers which will replace those from the center pane. Perhaps this file to be selected will be .XML; of course that may be more complicated than simply parsing a .CSV, etc..
Once a valid file is selected, the right pane will display the layers contained, and the user can then, either via button, or drag and drop, 'replace' the layer(s) desired for those which make up the selected style.
Now.... Provided all of this doesn't sound like the outrageous
forum request that I'm thinking it is, then I'd be happy to start the code for the WPF User Control, and AutoCAD Tool Palette as a shell in which to place the WPF TreeView.
After that is where I'm struggling - I know how to hard-code TreeViewItem(s), but I am not knowledgeable enough in .NET (yet) to iterate the style object itself, or the file's contents (especially if using XML), in order to populate the appropriate pane Objects.
Again, this seems too large of a request even to me, so no worries if you'd like to withdraw the request. I'd even be happy with some references to learn from, because I'm no where near as adept with .NET as I am with LISP. Thanks for your time and consideration!