SetDocumentProperty - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Document Tools : SetDocumentProperty

DocumentTools

  

SetDocumentProperty

  

set property of a document

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

SetDocumentProperty(attr, val)

SetDocumentProperty(attr, val, mwfile, outfile)

Parameters

attr

-

{name,string,list({name,string}) ; property of the document that is to be set

val

-

anything ; value of property to set

mwfile

-

string ; (optional) filename of a .mw file

outfile

-

string ; (optional) destination filename

Description

• 

The SetDocumentProperty function sets the value of a document property in the currently open document, or, when specified in mwfile.

• 

When mwfile is specified, it is modified in-place unless outfile is also provided, in which case, outfile is an identical full copy of the source worksheet, with the modified properties.  

Examples

Suppose that you want to set the Author property of a document to your name.  To do so, issue the following commands:

withDocumentTools:

SetDocumentPropertyAuthor,your name

Compatibility

• 

The DocumentTools[SetDocumentProperty] command was updated in Maple 2021.

• 

The mwfile and outfile parameters were introduced in Maple 2021.

• 

For more information on Maple 2021 changes, see Updates in Maple 2021.

See Also

DocumentTools

DocumentTools[GetDocumentProperty]