Possibility to delete orphaned drawing dimensions
- 1 reply
- 142 views
1. Describe the Problem
The ProDrawingDimensionVisit function is available in Toolkit.
This can be used to collect all dimensions of a drawing whose names begin with "dd", "rdd" or "add". In other words, all dimensions created in the drawing while the config.pro option create_drawing_dims_only was set to yes.
When creating a Toolkit app that uses this function, we've noticed with some older drawings or drawings that were copied from older ones that the Toolkit function sometimes finds many more dimensions than are actually on the drawing! 😲
The most extreme example we've found so far is a drawing that at first glance only contains one single dimension.
Even with the Search Tool, only this one dimension can be found.
With the ProDrawingDimensionVisit Toolkit function, however, a total of 157 dimensions can be found on the same drawing.
The 156 additional dimensions are also not erased dimensions, which could be deleted with the user command delete_erased_dimensions in the drawing detail options, for example.
These dimensions can't be deleted with the hidden command "update_drawing all" either.
Our assumption is that these orphaned dimensions are relics of bugs in earlier Creo Parametric or Pro/ENGINEER versions.
2. Are you using a workaround?
We couldn't find a workaround to clean up the drawings from orphaned dimensions. Since it's difficult and not always reliably possible to distinguish orphaned dimensions from normal dimensions with Toolkit, orphaned dimensions can't be conveniently cleaned up with Toolkit either.
3. What is the use case for your organization?
As a normal user without Toolkit options has no chance of determining whether a drawing contains orphaned dimensions at all, we believe that an automatic mechanism should be added to Creo to take care of the cleanup. Of course, the additional data volume caused by these superfluous dimensions is not very significant. And the orphaned dimensions aren't visually distracting either, as they aren't visible. But we attach great importance to data quality and that's why Creo's dimensions should be cleaned up as soon as they are detected.
4. What impact does this problem currently have on your organization?
In our company, around 250 users have been working with Creo Parametric (formerly Pro/ENGINEER) for almost 30 years. During this time, hundreds of thousands of drawings have been created. And since more and more such drawings with orphaned dimensions have appeared in the last few weeks alone, we suspect that the number of unreported cases is massively high. I've also attached a small Toolkit app called visit_drawing_dimensions to this idea. If you start this in a Creo session, you get an additional ribbon menu with a button in drawing mode. If you click on this, a log file called visit_drawing_dimensions.log is created in the current working directory, in which the result of the ProDrawingDimensionVisit function is written. This means that anyone can at least randomly check their (old) data for orphaned dimensions.
