×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Adding to an Existing Feature Group

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

RE: Adding to an Existing Feature Group

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

RE: Adding to an Existing Feature Group

(OP)
Frank,

Thank you, that is very useful!
Kevin

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources