×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

grip newbie question

grip newbie question

grip newbie question

(OP)
special grip question
is there solution if I select (mask) a solid body
to report all faces without selection all faces
... -> all faces of selected solid?
thx in ad

RE: grip newbie question

If you want to know the number of faces use:

Number of Edges or Faces

Synopsis:

&SOLDAT(obj,{FACE|EDGE}[,IFERR,label:])

Description:

Returns the number of edges or faces in a specified body or face.

Characteristics:

Read Only - Number - Greater Than or Equal to Zero

Parameters:

Parameter: Description
 
obj:  The object identifier of the body.
 
FACE:  Minor word indicating that you want to return the number of faces.
 
EDGE:  Minor word indicating that you want to return the number of edges.
 
IFERR,label:  Specifies a label to which program execution jumps if an error occurs. For example, an error will occur if obj is not properly defined.

 

John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

RE: grip newbie question

(OP)
thank you John
I'm looking more for all faces of selected body to recolor
for better understanding to use...

RE: grip newbie question

(OP)
the single faces of the body have attributes connected with different face colors of the selcted body...body color/face color difference.

thx in ad

RE: grip newbie question

(OP)
you are right John
- from attribute to color
thank you so far

RE: grip newbie question

It's still not clear what it is that you are attempting to do.  Could you explain what tasks or operations that you wish to perform in as much detail as you can?  

John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

RE: grip newbie question

(OP)
OK, explaination:
In toolshop is a workaround to give solid individual colors connected to material or function. Machined faces of this body have individual colors(RGB) and attributes connected to     manufacturing. Coloring and attributes is managed with a grip, now , while solids created ( not only a one way process) the colors get lost but the attributes stay at the faces in most cases. For control it would be nice to select a solid, get all faces of the body recolor from face attributes. I haven't found a solution in grip cover this process, yet, at the time  there is a second selection needed for ( Masking) the faces in grip. I hope its clear now.
thx in ad  

RE: grip newbie question

OK, here is a VERY simple GRIP program that will cycle a part file reading attributes assigned to the faces of any bodies in the model and if it finds an attribute named 'COLOR', it will read the value of the attribute, decide which color it is designating and then change the color of that face to match the color defined by the attribute.

Note that this program is only intended as a 'demo' of what can be done but it should give you an idea of where to go next.  The zip file includes the program source file, an executable and a sample NX 5 part file with a block with 5 of the 6 faces with attributes assigned that match the color names supported by the program.  Just open the part and execute the program.

This should get you started on the right path.

John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources