Arbortext IsoDraw > Référence du langage macro > Menu Commands > File Menu > New
  
New
The NEW command creates a new document. After being created this new document will be active.
NEW"template"
template
Optional parameter used to load a template file. Without the parameter an empty file is created.
You can define a path to a template-file or you can just give a file-name. In this case the template folder is searched for the template file.
The NEW command returns a reference on the created document. The properties of that document could be queried and set either through that reference or through the activeDoc object. (See Document Object.)
#creates a new and empty document
NEW

#tries to load a template file located
#in the standard template folder
NEW "myTemplate.iso"

#load a template from a server
NEW "\\server\isoTemplates\ci.iso

#load a template from a mac HD
NEW "Macintosh HD:My Files:abc.iso

##############################################

DEFINE template AS string
template = "c:\templates\iso0815.iso"
NEW template