Attribute/Expression
Attribute/Expression
(OP)
In NX7.5 is there an attribute/expression that can be set to HIDE a component like you can do with SUPPRESS with an expression?
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
|
RE: Attribute/Expression
RMC (right mouse click) on the component in the assembly navigation tree > suppression > toggle "controlled by expression" > enter a "1" in the space below that > apply > ok
Now look for the expression that was created and change the "1" to a "0" (zero) the component will be gone.
So: a "1" turns the component on
a "0" turns it off
I am on NX6, I assume that it is the same for 7.5
RE: Attribute/Expression
It's easier to see how all of this happens if you look at a sample part file. See the file attached. There is an attribute named 'HANDLE' that if you set it's value to be anything other then 'Yes' the handle on the handle wheel will be suppressed.
Now there is a slight problem and that is that when you edit the value of the attribute, the assembly does not update at that moment (the file will be OK if you save it and reopen it, so long term, everything will be fine). If you want to see the change immediately you will need to force an update, and the easiest way to do that is to go to...
Tools -> Update -> Update for External Change]
Note that the 'weakness' in Attribute/Expression update has been fixed in the next release of NX.
Anyway, take a look at what I did and I think you will get the hang of it. However, that being said, things like this are going to be much easier to set up and utilize in the next release of NX where we are making a major update to Attributes.
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Attribute/Expression
Hiding does not remove the part from drawings or BOM like suppress does.
RE: Attribute/Expression
You do have the ability to hide the component from the view, but not expression controlled.
assemblies > context control > hide component in view
RE: Attribute/Expression
RE: Attribute/Expression
Why are you trying to only Hide it and not Suppress it? What is the behavior/workflow that you're attempting to control using an Expression?
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Attribute/Expression
RE: Attribute/Expression
When in drafting, when I am doing a drawing of a plate that is part of a sub assembly, it adds another component of the plate to the main assembly. So now I have 2 of the same component in the main assembly. There are attributes to keep it out of the BOM, but in a cross section both components show up. The problem is, during modeling, I can hide the component and do some work. Then if I have to hide the whole sub-assembly to work, and then show the sud-assembly, it un-hides the extra component. Just a pain to keep tracking down the extra components. And they don't always appear in the same position as the original. Components all over the place.
I like the idea of a different layer or empty referance set. I will try that. Thanks to all.
RE: Attribute/Expression
Layers does work. I put it on an unused layer in the main assembly and then turned that layer off. It still shows up in the views of the drawing, and I don't have to worry about hiding it.
Thanks again to all for your input. It's nice to know there are people out there who know about thios stuff. And of course that is why you get paid the big bucks.