feature creation in between of model tree using toolkit
There are A, B , C and D feature in model tree of assembly. What we need to do is to create feature after feature A.
For same, We are using API ProFeatureInsertmodeWithoptionsActivate() before feature creation and ProInsertmodeWithoptionsCancel() after feature creation. With this API, feature is created as proper (A, New feature, B , C and D), but issue is that active array of model tree is after new feature instead of feature D.
Issue with this is that additonal feature by user or toolkit will be created after new feature instead of last feature i.e. D.
What to be done so that after creation of feature in between, last feature should be activated so that additional features are created after last feature.