Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

[journal] get/skip HolePackage subfeatures 1

Status
Not open for further replies.

kukelyk

Industrial
Mar 21, 2005
315
Hi, in NX12, when I loop thru workpart.features, I would skip the subfeatures of the holepackage features.
As HolePackage is not a ContainerFeature, I cannot use GetAllContainedFeatures method.

When it reaches a Threaded Hole feature, it goes into the first branch of "IF", but with the 'Symbolic Thread' subfeature it goes into the elseif branch..

Code:
Could anyone help me out?

----
kukelyk
 
Replies continue below

Recommended for you

The .IsBrowseableFeature method (inactive = false; unable to make current = false) will report False for "internal" features.

I have some code somewhere that will report internal features. It worked by working through the feature tree in order and looking at the timestamp numbers of the features. The internal features will report the same timestamp number as the parent feature.

I wish the Feature class' .ContainerFeature and .IsInternal properties were more useful. Any time I've tried to use them, they always return False. Either it is a bug or I just don't fully understand their use.

www.nxjournaling.com
 
Big thanks cowski, I tried to convert it to .ContainerFeature, but that is for something like patternfeature. I also tried isContainerFeature, but holepackage.isContainerFeature is false...

----
kukelyk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor