GetActiveDocument

 Calling Sequence GetActiveDocument()

Description

 • The GetActiveDocument command gets a handle to the active Inventor document.

Examples

 > $\mathrm{with}\left(\mathrm{CAD}[\mathrm{Inventor}]\right):$
 > $\mathrm{OpenConnection}\left(\right):$
 > $\mathrm{doc}≔\mathrm{GetActiveDocument}\left(\right)$
 ${\mathrm{doc}}{≔}{0}$ (1)
 > $\mathrm{CloseConnection}\left(\right):$