Skip to main content
1-Visitor
November 16, 2018
Solved

feature creation in between of model tree using toolkit

  • November 16, 2018
  • 2 replies
  • 1820 views

Hello

 

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.

 

Any thought would be of great help.

 

Thanks and Regards

Ketan

 

Best answer by FV_01

use ProFeatureWithoptionsReorder(…) 

2 replies

1-Visitor
November 19, 2018

Any hint would be of great help. Feel free to ask in case of any query.

FV_0117-PeridotAnswer
November 19, 2018

use ProFeatureWithoptionsReorder(…)