cancel
Showing results for 
Search instead for 
Did you mean: 

Feature Callback function

Builder
Builder

Is there a way to call a function every time a feature is created in a part?

 

 

 

5 REPLIES

Re: Feature Callback function

Esteemed Contributor
Esteemed Contributor

You would have to look in the log file to figure out what "button" creates the feature type.

Then in Menuscript add a "post" action to that button.

The tricky bit will be if you need to have this set ONLY in modeling.

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


Re: Feature Callback function

Builder
Builder
Yikes....I honestly have no idea where to go with that.
What would I even be looking for in the Log File?

Re: Feature Callback function

Esteemed Contributor
Esteemed Contributor

Creating a block is (I think)

&MACRO MENU, 0, UG_MODELING_BLOCK_FEATURE UG_GATEWAY_MAIN_MENUBAR <rbn_modeling_home.rtb->rbn_feature.grb->rbn_feature_more.gly->RECENTLY_USED::rbn_feature_more.gly> ## ! 

UG_MODELING_BLOCK_FEATURE

 

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


Re: Feature Callback function

Builder
Builder
Goodness....well I will see what I can find. Thank you.

Re: Feature Callback function

Esteemed Contributor
Esteemed Contributor

Menuscript is documented in the *API* documentation (not installed by default)

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