Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Get All Feature Groups in Part NX 7.5 Visual Basic

Status
Not open for further replies.

cquinker

Bioengineer
Sep 20, 2012
16
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?
 
Replies continue below

Recommended for you

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor