The Standard DMS commands in Python™ allow you to read or write DMS standards and set various attributes for it.
See Python commands for other commands you can use with GainSeeker.
Syntax |
Example |
Description/Remarks |
stddms.dpudate |
stddms.dpudate = "8/15/2000" |
Gets/Sets the DPU Date of the process. Acceptable date formats include "May 15 2015", "2015/5/15", "5/15/2015", "20150515" and dates returned by hsidate This value can be cleared using stddms.dpudate = "" |
stddms.dpuvalue |
print stddms.dpuvalue |
Gets/Sets the DPU Value of the process. This value can be cleared using stddms.dpuvalue = None. |
stddms.exists(part, process) |
if stddms.exists("A-50 INSERT", "M-CUT OFF"): print "Valid standard" |
Returns True if the specified part number and process pair exists. Otherwise it returns False. |
stddms.getalldefectidsforproc() |
internalIDList= stddms.getalldefectidsforproc() |
Returns the list of internal defect IDs for the current process. |
stddms.getalldefectlabelsforproc() |
defectList = stddms.getalldefectidsforproc() |
Returns the list of defect labels for the current process. |
stddms.loadproc(process) |
stddms.loadproc("M-CUT OFF") |
Loads all information for the specified process. This does not reset any of the previously set part number information. |
stddms.loadstd(part, process) |
if stddms.exists("A-50 INSERT", "M-CUT OFF"): stddms.loadstd("A-50 INSERT", "M-CUT OFF") |
Loads all part number and process information for the specified part number and process pair. This resets all previously set values. |
stddms.lowergate |
stddms.lowergate = 5 |
Gets/Sets the low gate of the part number. This value can be cleared using stddms.lowergate = None |
stddms.memo |
stddms.memo = "My Memo" |
Gets/Sets the memo of the process. Character length is maximum 80 characters. Characters over that amount are truncated. |
stddms.ncucost |
stddms.ncucost = .75 |
Gets/Sets the NCU Cost of the part number. |
stddms.numopp |
stddms.numopp = 2 |
Gets/Sets the number of opportunities of the part number. |
stddms.partno |
stddms.partno = "My Part" |
Gets/Sets the name of the part number of the standard. Note: This does not load any information about the part number if the part number already exists. Character length is maximum 30 characters. Characters over that amount are truncated. |
stddms.process |
stddms.process = "My Process" |
Gets/Sets the name of the process of the standard. Note: This does not load any information about the process if the process already exists. Character length is maximum 14 characters. Characters over that amount are truncated. |
stddms.reset() |
stddms.reset() |
Clears all information for the current dmsstd. This does not affect any database records. Note: This also clears the part number and process names. |
stddms.samplesize |
stddms.samplesize = 400 |
Gets/Sets the sample size of the part number. This value can be cleared using stddms.samplesize = None |
stddms.storestd() |
stddms.storestd() |
Inserts or updates the current part number, process, and all associated properties in the GainSeeker database. Returns True if the store is successful. Otherwise returns False. The process is also inserted or updated if the standard was successfully created or updated. |
stddms.uppergate |
stddms.uppergate = 20 |
Gets/Sets the high gate of the part number. This value can be cleared using stddms.uppergate = None |