Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Mar 21, 2005
Messages
315
Location
HU
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
 
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

Back
Top