Add the Converter to the ConversionServerConfig file
Copy
- On the Conversion Server, open the ConversionServerConfig.xml in a text editor.
- Within the existing
configSectionstags at the top of theConversionServerConfig.xml, there is a section group defined for settings that are unique to each Converter.
Add the following tag:
<configSections>
<sectionGroup name="ConverterSettings">
<section name="MyWordConverter” type="MyWordConverter.Configuration.MyWordConverterConfig"></section>
</sectionGroup>
</configSections>
- Within the Converters tag, add a Converter tag for the new converter.
This tag specifies the DLL for the Converter as well as what Class within the DLL performs the conversion:
<ConversionServer>
<Converters>
<Converter name="MyWordConverter”
type="MyWordConverter.MyWordConverter, MyWordConverter” />
…
</Converters>
</ConversionServer>
The attributes of the tag are as follows:
- Name: Name of the Converter. This value must match the ‘Conversion Type’ Item’s name.
- Type: The text before the comma refers to the Class that is defined within the Converter DLL that performs the conversion.
The text after the comma refers to the name of the converter’s DLL in the ‘ConversionServer\bin\’ folder.
-
NoteSet the ‘url’ attribute of the ‘InnovatorServer’ tag to the ‘InnovatorServer.aspx’ page of the Aras Innovator URL that uses this Conversion Server.
Within the existing
ConverterSettingstags, add a tag for the new converter. The tag must match the name configured in step 2.Set the pdfSuffix to some string that you wish to add to the end of the generated PDF file name.
<ConverterSettings><MyWordConverter><Settings pdfSuffix="_X” /></MyWordConverter>…</ConverterSettings>
- All “type” attributes in both the “section” tag and “Converter” tag must contain the assembly name (“Conversion.Base” for ConversionServer, “ArasCadConverter” for cad converter etc).
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- Common converter service configuration -->
<section name="ConversionServer" type="Aras.ConversionFramework.ConversionServer.Configuration.ConversionServerConfigurationSection, Conversion.Base"/>
<sectionGroup name="ConverterSettings">
<section name="ArasCadConverter" type="Aras.ConversionFramework.Converter.Hoops.Configuration.HoopsConverterConfiguration, ArasCadConverter">
</section>
<!-- … -->
</sectionGroup>
</configSections>
<ConversionServer>
<InnovatorServer url="http://some_url/some_instance/Server/InnovatorServer.aspx"/>
<Converters>
<Converter name="Aras CAD to PDF Converter" type="Aras.ConversionFramework.Converter.Hoops.HoopsConverter, ArasCadConverter" />
</Converters>
<!-- … -->
</ConversionServer>
<ConverterSettings>
<!-- … -->
</ConverterSettings>
</configuration>
- Save and close the ‘
ConversionServerConfig.xml’