|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > PDMSystem > DBWOutput |
Pass field values back to MechworksPDM
Sub DBWOutput(Field, OutString, Mode)
Field |
name of an existing field. |
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
OutString |
value for the above field. |
|||||||||
Mode |
|
This method is used by every external dialog or script to communicate field values back to DBWorks after making calculations or getting input by the user.
Use it to change the value of a field.
Opening mode changes depending on which field you have to output. The first field must have a ForWriting mode, other ones (second, third, ...) must have a ForAppending mode.
DBWOutput "Material","PVC",ForWriting
DBWOutput "Surface","200",ForAppending
DBWOutput "Length","10",ForAppending