rmcanany / SolidEdgeHousekeeper

Utility for finding annoying little errors in your Solid Edge project
MIT License
23 stars 10 forks source link

File properties Direct Edit #93

Closed farfilli closed 4 months ago

farfilli commented 4 months ago

Added the option to edit file properties accessing the file via structured storage; you don't need to open the file in Solid Edge.

In the current implementation, SEHK always opens the file before processing the tasks list. A method that prevents the Solid Edge usage in case of a task that doesn't need it is required (TO BE IMPLEMENTED BY ROBERT ?)

An option "Direct edit properties without opening the file in Solid Edge" has been added in the Task Edit properties. When this option is active there is an SEDoc.Close otherwise the file is locked by Solid Edge and can't be opened by structured storage processes. The SEDoc.Close prevents other tasks that need the file opened in Solid Edge to be performed, a compatibility check is needed in case the option is activated (TO BE IMPLEMENTED BY ROBERT ?) An error is reported for each processed file due to the SEDoc.Close.

The process supports editing of system and custom properties it also supports adding and deleting custom properties.

Ideally, this option must be used alone without any other tasks in the list

farfilli commented 4 months ago

Forgot to mention that the used library exists as a NuGet package, however, some of the used methods have not been published yet. I will update as soon as a compatible package is released.

farfilli commented 4 months ago

Robert I'm working on a Task.SolidEdgeRequired property to use in the main process, I will update soon hold on

rmcanany commented 4 months ago

OK, sounds good.