Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve Tool Data Using VB Journal

Status
Not open for further replies.

stevie6410

Aerospace
Aug 10, 2011
4
Hi,

I am trying to write some code to rename a selected tool in the Operation Navigator. I can rename the tool okay but I want the name to be based on the tools attributes, i.e. Diameter, Material type etc... this means I have to pass these values to variables. Problem is I dont know how to get to the values in code. I have attached a screen of the data I am trying to get hold of...

Can anybody tell me how to get the values I need?

Using:
UG NX7.5
.VB
 
Replies continue below

Recommended for you

Hi

I want the same,but for CAM strategies. Rename 5 strategies like,

rough_mill_1, rough_mill_2, rough_mill_3...

only entering the first rename, rough_mill_1 and rename the selected 5 strategies.

Any .VB programming.



 
Record a journal that edits a tool and changes all the parameters you are interested in. Then look at the vb file - you should see the variable names for the parameters you are looking for.

Mark Rief
Product Manager
Siemens PLM
 
Hi Mark,

I have recorded a simple journal, it changes the strategy names for other ones in automatic mode. The point is that I want, a dialog box to enter my code name, to the selected strategies.
mill_1, mill_1_copy, mill_1_copy_copy etc,to... Mill_1,Mill_2,Mill_3,Rouh_mill_1 etc

 
berri2, you can write a vb program to do this.
Take a look at the sample for renaming operations.

Mark Rief
Product Manager
Siemens PLM
 
Hi Mark,

The point is, that I am not a VB programmer. So I don't know how can I reconfigure this program.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor