@XNurbs - this is in response to your comment on this long thread:
History-supporting command record the inputs that produce the outputs. When the input change, Rhino calls your command to “replay” the action that created the dependent object.
The developer samples repo has a couple of history-supporting command samples.