Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding to an Existing Feature Group

Status
Not open for further replies.

kr7530

Automotive
Joined
Aug 9, 2011
Messages
130
Location
US
If someone could please point me in the right direction, I am trying to use a journal to add features to an existing Feature Group.
I found a journal to create a Feature Group with selected features but would take it one more step. Have it check to see if a group with the same name exists and if so add to it, otherwise create it.
NX7.5.5.4

Thanks,
Kevin
 
I would first check if a selected feature occurs in any feature set(s). If it exist in a feature set then nothing is required. If it does not exist in any feature set you can ask to which feature set you want it added to or create a new feature set.

To check if a selected feature occurs in any feature set use the wrapper method

Public Sub AskSetsOfMember ( _
feature As Tag, _
<OutAttribute> ByRef sets As Tag(), _
<OutAttribute> ByRef number_of_sets As Integer _
)

To create a feature set use

Public Sub CreateSetOfFeature ( _
name As String, _
features As Tag(), _
number_of_feature As Integer, _
hide_state As Integer, _
<OutAttribute> ByRef feature As Tag _
)

Now to add a feature to an existing feature set I would first ask all members of the feature set using

Public Sub AskAllMembersOfSet ( _
set As Tag, _
<OutAttribute> ByRef features As Tag(), _
<OutAttribute> ByRef number_of_features As Integer _
)
The I would then edit the existing feature set using

Public Sub EditSetMembers ( _
set As Tag, _
features As Tag(), _
number_of_feature As Integer _
)

Hope this helps.

Frank Swinkels
 
Frank,

Thank you, that is very useful!
Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top