I would like to ask if there is a way to detect the overlapping dimension lines.
There is no need to auto arrange,It's OK to just make it highlight.
Sometimes overlapping dimensions are difficult to detect, leading to manufacturing problems
Can someone help me get started?
Design Checker can do it, if you have Professional.
Thank you for your answer. I'll give it a try
I tried to use design checker,I found that as long as there are intersecting dimension lines, they will be detected.
In fact, it is difficult to completely avoid the intersection of dimension lines.
Is there any way to detect only the size of the overlap？
I don't think it can be done. If it can it would be a lot of work, getting lot's of information about each dimension in a view and comparing against other dimensions in the view and then do this for all views on all sheets. Not sure if all of the needed info is available using the API.
I agree with you. It seems difficult to solve such a problem now.
I just don't know what the design checker does.
Check dimension lines for interference?In that case, it may be solved by ignoring the small amount of interference.
It's just my guess. Anyway, thank you for your answer.
Wayne Matus wrote: I don't think it can be done. If it can it would be a lot of work, getting lot's of information about each dimension in a view and comparing against other dimensions in the view and then do this for all views on all sheets. Not sure if all of the needed info is available using the API.
Wayne Matus wrote:
Getting the info for each dimension would not be so difficult. For each DisplayDimension you can GetType to make sure it's linear, then GetDisplayData. From the DisplayData object you can verify that it has two arrowheads and get the coordinates of those arrowheads.
Then comes the fun part... Analysis.
If all you want to look for is cases like the one pictured, where two dimensions share the same endpoint but overlap, you just need to check for pairs of dimensions whose coordinates match for one arrowhead. If both dimensions have their other arrowhead along the same direction, they're overlapping.
It gets a bit tougher if you want to catch overlapping dimensions where the small one is fully between the extension lines of the larger one, but those should be more obvious visually because there will be a gap with no number.
Retrieving data ...