View Full Version : How to turn Part-Header into variables
bitsandmore
01-15-2007, 11:46 AM
with the following lines you can turn the 4 values of the
part-header into variables:
ASSIGN/PART = STR(GETTEXT(191, 1, {FILEHEDR}))
ASSIGN/REVI = STR(GETTEXT(192, 1, {FILEHEDR}))
ASSIGN/SERI = STR(GETTEXT(193, 1, {FILEHEDR}))
ASSIGN/STAT = STR(GETTEXT(194, 1, {FILEHEDR}))
for a short description see the attached pdf-file
976
Cheers :)
bitsandmore
cmmguy
01-15-2007, 12:03 PM
http://www.cmmguys.com/misc/allthemaster.gif
I want to be like you when I grow up. Thanks for that info!!
Jeff Hunt
01-23-2007, 10:28 AM
where do you input this code at?
craiger_ny
01-23-2007, 10:32 AM
Anywhere in your part program.
Jeff Hunt
01-23-2007, 10:49 AM
where do I add the text of what I want it to say?
Say I want to change part name to E/C Level, what would I do?
Jeff Hunt
01-23-2007, 10:56 AM
Also, would this only change the header in the report? Is there any way to automaticly change it in the command window?
craiger_ny
01-23-2007, 11:00 AM
It does not change the info. It sets variables that contain the info for useage somewhere else. Say for some reason you need to reference the part number in the header somewhere else in the part program you'd do this.
If you want to change the info you'd probably have to use the put text method.
Jeff Hunt
01-23-2007, 11:10 AM
Gotcha, thanks for the explination.
Jan d.
01-24-2007, 11:07 AM
Also, would this only change the header in the report? Is there any way to automaticly change it in the command window?
Jeff, if you want to change the value of what is in the header info, see this thread.
http://www.pcdmisforum.com/showthread.php?t=3301
Take note of that last few statements in the script: if you do NOT refresh your Report Window, your printed report will have the old information. Not until you refresh will the new info be visible. You can refresh using the refresh button in PC-DMIS, or do like I do in the script and force a refresh during execution.
Jan.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.