Object dependancies

Hi,

can anybody inform me how / where I can see the dependency ‘Tree’ of a pattern ‘piece’?

I need to delete several objects (nodes / points) from a ‘piece’, but even looking into the history (CNTL+H) I have been unable to find the top / last created node, from which position I can do the deleting without getting the “ … has Children …” message.

That is to say, I did find the last created node, but deletion was still not possible.

1 Like

:roll_eyes: You can’t. This topic pops up all the time. Without getting into the weeds with how the app is structured, it’s not an easy task to create a dependency list. BTW It’s not tree, but rather more a cycle-free directed graph AKA a Directed Acyclic Graph. Add to that objects can be referenced in formulas adds to the complexity, so while an object may be referenced by other tools, the object may also be referenced by any number of formulas. Of course if you delete an object that is referenced by formula, you break the formula and the app crashes.

Don’t forget that objects may also be used in pattern pieces or as internal paths or anchor points. Those references need to be deleted (in Pierce mode) as well before you can delete the object in question.

This closed Github issue was attempted years ago, but led to nothing useful. As I reread through the comments as far as “auto deleting” , RT brought up a big point… “But i don’t see how you will do undo deleting.” Often the harder thing to program is how to implement an operation as an undo / redo command… as would be the case here auto deleting an object. BTW… in case anyone has ever wondered why there is the “modeling” section in a pattern… it’s so you can redo operations related to pattern pieces.

2 Likes

Hello @Douglas ,

thanks for the explanation, I didn’t want to cause any great commotion or aggravation. I did eventually, prior to posting end up in deleting the whole piece and rebuilding it.

I will note that this is not possible, being more careful when constructing in the future, and try to ensure that I have a way out - should I need that option.

2 Likes

That usually just comes with practice. It helps to kind of plan a pattern out ahead so you don’t get stuck needing a point or with objects you need to delete.

3 Likes