Adding to an Existing Feature Group
Adding to an Existing Feature Group
(OP)
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 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





RE: Adding to an Existing Feature Group
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
RE: Adding to an Existing Feature Group
Thank you, that is very useful!
Kevin