cancel
Showing results for 
Search instead for 
Did you mean: 

Getting attributes from a feature

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello everyone! I need help with the C# NX Open.

 

I can't get attributes from a feature. I tried the following piece of code, but it keep returning zero-length arrays.

 

Feature.AttributeInformation[] fAtts = theFeature.GetUserAttributes();

 

Any help is appreciated!

2 REPLIES

Re: Getting attributes from a feature

Phenom
Phenom

Seems to work for me. Are you sure the attribute has been applied to the feature itself as opposed to a body or face resulting from the feature?

Re: Getting attributes from a feature

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

I am pretty sure that I assigned attribute to a feature. There is something Lovecraftian to this story, because today it works. Smiley Very Happy