×
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

Get All Feature Groups in Part NX 7.5 Visual Basic

Get All Feature Groups in Part NX 7.5 Visual Basic

Get All Feature Groups in Part NX 7.5 Visual Basic

(OP)
So I'm attempting to grab the Collection of Feature Groups or Sets Of Features in the current Part or even current Session. I can't seem to be able to do this in the same way that you get the collection of features, datums, points, etc in a given part.

I haven't managed to find a wrapper method for it in the UFModl Class or anywhere else for that matter.

Any idea if it's possible to get a collection of feature groups?

RE: Get All Feature Groups in Part NX 7.5 Visual Basic

(OP)
I do realize that this can be achieved by getting the collection of features, looping through the collection of features, and storing only features of type feature group, but I'm looking for a more efficient way of doing this if possible because many of my files have 1000+ features in them.


For those who do want to use my less efficient method :


Dim featureList As Features.FeatureCollection = workPart.Features

For Each tempFeature As Features.Feature In featureList
If (tempFeature.FeatureType = "FSET") Then
'Store feature group in an array or variable
'i.e. : var = CType(tempFeature, Features.FeatureGroup)
End If
Next

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