Cancel
Showing results for 
Search instead for 
Did you mean: 

ER - enhance MOM_set_attribute to set a part attribute

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

In case this is of interest to anyone, I have an ER 9303937 to enhance the "MOM_set_attribute" command to allow setting a part attribute (not just an ONT object's attribute).

 

ER text (with some proprietary stuff removed)

  Short Description: 

I would like to be able to set part attributes from within a Post.  
MOM_set_attribute can set OBJECT attributes, but not PART attributes.

  What activity in your process is NX not able to currently handle?  

I use part attributes to control stuff that comes out in the "header" of an NC program.
In particular, for one post, some machines need a line at the VERY start of the output file "XXXYYY", and some don't.
(The same post is used for multiple machines)
I query the user the first time this part is posted, if they want that line (or not).
I would like the user to NOT have to answer that question EVERY time they post.
So I write the user's answer back to the part as a part attribute (that I can check for, the next time they post).
I need this as a PART attribute, as OBJECT attributes aren't available in the "start of program" event.
Right now, I wrote my own extension to MOM (using API code) to achieve this.
But I would prefer not having to use/maintain API code to do this.

  What result are you trying to achieve?  
 
See above - hopefully I have described this well enough.

  Do you currently have a workaround?  If yes, please describe it.

1) Home-written API program to extend MOM.
2) Maintain 2 posts (one with the line, one without) (UGLY - duplicate code, users can easily pick the wrong post, etc.)
3) An *even more UGLY* workaround is to not output anything in "start of program" and defer the stuff output there to some later event that would have the attribute defined on an object.
I really don't like abusing posts to do things this way - too many ways for users to "break" the post.


  Do you have a proposal for the solution you envision NX providing 
  for this capability?

Allow using a flag, or set the object to "PART", or ??? on MOM_set_attribute to allow writing a part attribute.

  What is the level of productivity gained from such an enhancement?

- less API code for me to maintain/debug
- a bit of improvement for programmers as they don't have to answer a question EVERY time they post.

If you would like to see this too, feel free to file a "Me Too" ER with GTAC ;-)

 

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


4 REPLIES 4

Re: ER - enhance MOM_set_attribute to set a part attribute

Valued Contributor
Valued Contributor

+1 Smiley Happy

NX 9.0.3.4 MP12 | PB 9.0.3.2 | NX11.0.2.7 MP13 | PB 11.0.2 | VERICUT 7.3.4

Re: ER - enhance MOM_set_attribute to set a part attribute

Legend
Legend
+1

Re: ER - enhance MOM_set_attribute to set a part attribute

Ken,

 

Did Siemens ever implement this or do I need to extend MOM?

Re: ER - enhance MOM_set_attribute to set a part attribute

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

As far as I know, this hasn't been implemented

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Learn online





Solution Information