Calling Sequence UpdateDocument(aidoc)

Parameters

 aidoc - a handle to an Inventor document

Description

 • The UpdateDocument command updates and saves an Inventor document.

Examples

 > $\mathrm{with}\left(\mathrm{CAD}[\mathrm{Inventor}]\right):$
 > $\mathrm{OpenConnection}\left(\right):$
 > $\mathrm{doc}:=\mathrm{OpenDocument}\left("c:/mypart.ipt"\right)$
 ${\mathrm{doc}}{:=}{0}$ (1)
 > $\mathrm{GetParameterValue}\left(\mathrm{doc},"d1"\right)$
 ${100}$ (2)
 > $\mathrm{SetParameterValue}\left(\mathrm{doc},"d1"=200\right)$
 > $\mathrm{UpdateDocument}\left(\mathrm{doc}\right)$
 > $\mathrm{CloseDocument}\left(\mathrm{doc}\right)$
 > $\mathrm{doc}:=\mathrm{OpenDocument}\left("c:/mypart.ipt"\right)$
 ${\mathrm{doc}}{:=}{1}$ (3)
 > $\mathrm{GetParameterValue}\left(\mathrm{doc},"d1"\right)$
 ${200}$ (4)
 > $\mathrm{CloseDocument}\left(\mathrm{doc}\right)$
 > $\mathrm{CloseConnection}\left(\right):$