The 99999-99879-3 Make "Display View"
this is related to this post
The top is the debug view for a list<components> along with the bom view for some reason the 99999-99879-3 is setting in the main view but will not show down in the "Desplay View" for 99999-998779-3. I did notice that there are two component Id showing for two of the components and wondering why, what do they reference. At any rate all other attributes are setting properly regardless of the the "Display View" used. Thanks guys and gals
How do you get the List <components>? Do you check if a component is already added before adding it again? So, do you make sure the list only contains unique components? You might be changing something twice, with differently values apparently
Why not use AttributePropertiesBuilder and give it the real part instead of casting to a component?
AttributePropertiesBuilder apb; NXObject obj = new NXObject; obj = m_basePart; apb = s.AttributeManager.CreateAttributePropertiesBuilde
r(your_basePart, obj, AttributePropertiesBuilder.OperationType.None); apb.Category = "your category"; apb.Title = title; apb.StringValue = value; apb. apb.CreateAttribute();
This is easier to start with:
Well at the start of this post I think I mentioned I was a neophyte and if I didn't I should have. I want to thank everyone for throwing NX mud at my chicken wire fence, more and more is sticking.
A component does have the SetUserAttribute method, so yes, I think you can do this. Maybe if you just leave out the cast to Part? (and prototype) Make it component.SetUserAttribute...
But the attributes will only be visible in the assembly in which they were created.