Cancel
Showing results for 
Search instead for 
Did you mean: 

How to define a programming author in the CAM

Genius
Genius

Hello folks

 

In the following video at 9:47, he used post builder to check the programmer. But in my sample, I don't know how to define the programmer in the CAM.

 

https://community.plm.automation.siemens.com/t5/Tech-Tips-Knowledge-Base-NX-Manufacturing/Tool-Comma...

4 REPLIES

Re: How to define a programming author in the CAM

Legend
Legend

Hi,

follow the video :

 

 

proc _USERNAME_ {loginID} {

switch $loginID {
"m.kn" {set username "mkn"}
"Sean.HAI" {set username "Seanhai"}
default {set username "Unknown"}
}

return $username 

}

set camprogrammer [_USERNAME_ $env(USERNAME)] ; # rename '_USERNAME_' for not confused with variable env windows

 

@mkn
Production: NX11.0.2.7,VERICUT 7.3.3
Development: Tcl/Tk, Gnuplot
www.deshors-tiremold.com

Re: How to define a programming author in the CAM

Genius
Genius

So the mom_logname is my windows username?

Re: How to define a programming author in the CAM

Legend
Legend

ok Smiley Wink

set camprogrammer [_USERNAME_ $mom_logname] 
@mkn
Production: NX11.0.2.7,VERICUT 7.3.3
Development: Tcl/Tk, Gnuplot
www.deshors-tiremold.com

Re: How to define a programming author in the CAM

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

@SeanHAI wrote:

So the mom_logname is my windows username?


Yes, this is the same as using the environment variable USERNAME on Windows.

MOM_log_message "$mom_logname \n $env(USERNAME) \n [MOM_ask_env_var USERNAME]"

The above should display the same user name in the NX syslog file for each command in a Windows environment.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Learn online





Solution Information