Arbortext IsoDraw > Data Exchange Reference > Image File Formats > XCF > Applying XCF Text Changes in Arbortext IsoView
  
Applying XCF Text Changes in Arbortext IsoView
XCFs enable you to dynamically change the text in a ISO file displayed in Arbortext IsoView. First, you edit the text in the exported XCF, such as the text content in ISO Callout and Text elements. Then you use two Arbortext IsoView API methods to load the XCF from inside the Arbortext IsoView container application, such as a Web page. The basic steps are as follows:
1. Export XCF from Arbortext IsoDraw.
2. Edit text in the XCF, then save it as a new XML file name.
3. Add a function, such as ApplyTranslation() below, to the script element on Web page (or other application that launches Arbortext IsoView).
4. Load the ISO file you exported the XCF from in Arbortext IsoView.
5. Use input elements on the Web page (or other launch application) to do the following:
Load the ISO file you exported the original XCF from into the Arbortext IsoView window.
Prompt for, then load, various modified-text versions of the original XCF file.
The script must call these two important Arbortext IsoView API methods:
applyCompanionFile()
For example:
WebCGMPicture::applyCompanionFile( xmlfilename )
ConvertTranslationMetadata()
See the Arbortext IsoView Programmer's Reference for API method descriptions and syntax.
Example Javascript for XCF Text Translation in Arbortext IsoView
function ApplyTranslation()
{
var strFName = "";
var cgmDoc = document.getElementById("ivx1").getWebCGMDocument();
var cgmPic = cgmDoc.firstPicture;

strFName = file1.value;
cgmPic.applyCompanionFile(strFName);
ivx1.ConvertTranslationMetadata();
}
* 
Contact PTC Technical Support for a demo of XCF text translation in Arbortext IsoView.
AI
Adobe Illustrator
dtp
Desktop Publishing
EPS
Encapsulated Postscript
BMP
Bitmap format
CAD
Computer Aided Design
CALS
Continuous Acquisition and Lifecycle Support
CGM
Computer Graphics Metafile
ATA
Air Transport Association
GREXCHANGE
Graphics Exchange
SAE
Society of Automotive Engineers
VDC
Virtual Device Coordinates
ISO
International Standards Organization
CCITT
Comité Consultatif International Téléphonique et Télégraphique
DWG
AutoCAD file format
DXF
Drawing Interchange Format
EPSF
Encapsulated Postscript File
HPGL
Hewlett Packard Graphics Language
PCL
Printer Command Language
IGES
Initial Graphics Exchange Standard
Creo Parametric
Creo Parametric 3D CAD software
VRML
Virtual Reality Modeling Language
Wavefront
Format describing 3D geometries
JPEG
Joint Photographic Experts Group. Raster graphic format.
DPI
Dots Per Inch
PCX
Graphic file format developed by ZSoft Corporation.
PNG
Portable Network Graphic
SVG
Scalable Vector Graphic
ASCII
American Standard Code for Information Interchange
XCF
XML Companion File
TIFF
Tagged Image File Format
LZW
Lempel-Ziv-Welch lossless data compression algorithm
WMF
Windows Metafile
MIF
Adobe FrameMaker Maker Interchange Format