Arbortext Command Language > set Command Options > set pastegraphicspath
  
set pastegraphicspath
set pastegraphicspath = dir
This command determines the directory where graphics embedded in a Microsoft Word document are stored during a copy and paste operation. If you copy and paste part of a Microsoft Word document that contains embedded graphics, those graphics are not embedded in your XML document. Instead, they are removed from the Word document, stored on the file system, and referenced from your XML document. By default, the graphics are stored in a directory named pastegraphics in your Arbortext Editor Microsoft Windows application data directory. For example, if your Windows home directory is on the C: drive, the graphics would be stored in C:\Document and Settings\Your Login\Application Data\PTC\Arbortext\Editor\pastegraphics.
You can set dir to the following values:
The full or relative path to a directory
A relative path will be based on the current working directory. If the directory does not exist, it will be created.
%D — Represents the default pastegraphicspath subdirectory of the application directory.
%B — Represents the directory of the target XML document, if that directory exists and is writable.
If the target directory does not exist or is not writable, the graphic is placed in the default location and the value of the graphic filename reference or entity reference uses the fully-qualified path.
Note that the pastegraphicspath directory is separate from the graphicspath directories. If you want the graphics in the pastegraphicspath directory to be generally available to Arbortext Editor, you must add them to the graphicspath directory list. If you add the pastegraphicspath directory to the graphicspath, then the converted graphic references will not include the directory path.
Related Topics
Copying and pasting text from other applications
APTAPPDATADIR — Specifying an alternative application data directory
set graphicspath command