COMOS Platform Interfaces EnUS en-US
COMOS Platform Interfaces EnUS en-US
XML connectors 2
SAP interface 8
Interface to Teamcenter 9
04/2015
A5E32019975-AD
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will be
used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property
damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified
personnel are those who, based on their training and experience, are capable of identifying risks and avoiding
potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended or
approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described.
Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in
this publication is reviewed regularly and any necessary corrections are included in subsequent editions.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 3
Table of contents
Platform Interfaces
4 Operating Manual, 04/2015, A5E32019975-AD
Table of contents
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 5
Table of contents
Platform Interfaces
6 Operating Manual, 04/2015, A5E32019975-AD
Table of contents
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 7
Table of contents
Platform Interfaces
8 Operating Manual, 04/2015, A5E32019975-AD
Table of contents
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 9
Table of contents
Platform Interfaces
10 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data 1
1.1 Using the standard import for Access/Excel/XML files
1.1.1 Introduction
Aim
You can use a query to reimport data that has been exported from COMOS and then modified
using programs such as Access or Excel.
It is not possible to reimport text files.
Base object
Internally the function uses the query "@99 System settings > A20 > M00 > A40 > A30 > A10
Access/Excel/XML reimport".
Requirement
You have performed a query in COMOS and exported it as an MDB, XLS, or XML file. You
can find additional information on this topic in the "COMOS Platform Operation" manual,
keyword "Exporting queries".
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 11
Importing and exporting data
1.1 Using the standard import for Access/Excel/XML files
Procedure
1. Select "Extra > Standard import > Access/Excel/XML reimport" in the menu bar. See also
chapter "Access/Excel/XML reimport" tab (Page 41).
2. To read the MDB or XLS file into the "Database" field, click "Open" in the "Access/Excel/
XML reimport" tab.
The "Table" field is completed automatically.
3. If there are several tables to choose from in the "Table" field, select the desired entry from
the list.
4. To read the data into the query interface, click "Search".
Result
No COMOS data has been changed yet. You can edit the imported data in the query interface.
See also chapter Preparing read data for reimport (Page 12).
Requirement
You have read the data into the query interface. See also chapter Reading data into queries
(Page 11).
Procedure
1. Check the data to be imported, and change the default settings if necessary. You have the
following options:
– "Action selection" column: The action is initially suggested by COMOS. If the "Status"
column is "green" or "yellow", you can change the action manually. A change cannot be
made if the status is "red". To change the action, select the desired action via the context
menu of the cell.
– "Status" column: Each status value has a tooltip. The meaning of the status value is
explained in this tooltip. To display the tooltip as as a separate column, select the
following command from the context menu of the "Status" column header: "New >
Standard reimport columns > Status description". See also chapter Status values
(Page 13).
– "Import value" column: All white cells can be changed. Cells highlighted in gray cannot
be edited.
2. After you have finished your checking work, perform the reimport. See also chapter Carry
out the reimport (Page 13).
Platform Interfaces
12 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.1 Using the standard import for Access/Excel/XML files
Overview
Status Description
Green The value of the row object has changed since the export and reimport is possible.
Yellow An import is not necessary. The value has not changed since the export and there was no external
change or the change within COMOS is identical to the external change.
Red An import is not possible.
Example: The COMOS object no longer exists.
Procedure
To write the data read into the query back to the COMOS data, click "Import".
Result
COMOS checks all objects during the import to determine whether they own all necessary
rights at project and/or object level. If this is not the case, the import is rejected at those points.
You can see the individual error messages in the import log.
Double-click an error entry to jump to the corresponding entry in the import list. See also chapter
Error messages (Page 13).
Overview
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 13
Importing and exporting data
1.2 Using reimport for Access/Excel files or directories
1.2.1 Introduction
See also
Using the standard import for Access/Excel/XML files (Page 11)
Platform Interfaces
14 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.2 Using reimport for Access/Excel files or directories
If the "Create working layer" option has been used, a new working layer is created for each
reimport. Therefore, the values of the original objects remain unchanged as long as none of
these working layers are released. You can therefore reimport over and over again based on
the working layer in which the original export was performed.
See also
Reimporting a file (Page 15)
Reimporting a directory (Page 16)
Requirement
● You are familiar with the requirements for the reimport.
See section Requirements for reimporting (Page 14).
● You have performed a query in COMOS and exported it as an MDB or XLS file.
You can find additional information on this topic in the "COMOS Platform Operation"
manual, keyword "Exporting queries".
Procedure
1. In the menu bar, select the "Extra > Reimport" command. See also chapter "Reimport"
tab (Page 41).
2. Select the "File" option in the "Selection" control group.
3. To select a file, click on the "..." button.
4. Select the desired file in the "Select file" window and click "Open".
Enter the path in the "File" option field. The path is entered automatically in parallel in the
"Log file" option field.
5. Optional: Create a log for the reimport.
Enable the "Log file" option.
– You can change the automatically assigned path and the file name of the log file in CSV
format using the "...' button.
– You can also select the "Log all events" option in the "Settings" control group.
6. Optional: Create a separate working layer for the reimport.
Select the "Create working layer" option in the "Settings" control group.
7. Click "Start reimport".
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 15
Importing and exporting data
1.3 Exporting a report as a PDF
Requirement
● You are familiar with the requirements for the reimport.
See section Requirements for reimporting (Page 14).
Procedure
Import either just one folder or a folder including sub-directories.
1. In the menu bar, select the "Extra > Reimport" command. See also chapter "Reimport"
tab (Page 41).
2. Activate the "Directory" option in the "Selection" control group.
3. To reimport the subdirectories, select the "With all subdirectories" option in the "Settings"
control group.
4. To select a directory, click the button.
5. Select a directory in the "Search folder" window and click "OK".
Enter the path in the "Directory" option field. The path is entered automatically in parallel
in the "Log file" option field.
6. Optional: Create a log for the reimport.
Enable the "Log file" option.
– You can change the automatically assigned path and the file name of the log file in CSV
format using the "...' button.
– You can also select the "Log all events" option in the "Settings" control group.
7. Optional: Create a separate working layer for the reimport.
Select the "Create working layer" option in the "Settings" control group.
8. Click "Start reimport".
Requirement
An interactive report or evaluating report has been created. You can find additional information
on this topic in the "COMOS Platform Operation" manual, keyword "Creating documents".
Procedure
1. Select the desired report in the Navigator.
2. Select the "Export > PDF..." command in the context menu.
Platform Interfaces
16 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.3 Exporting a report as a PDF
3. If you wish, you can activate the "Intelligent PDF export" option.
– Specify the tabs for which the object structure of the Navigator will be exported as
bookmarks.
4. To create a PDF file according to ISO standard, activate the "Archiving according to ISO
standard in PDF/A-1b format" option.
Note the following:
– All fonts are embedded and the file is not password-protected.
– Layers are not exported.
5. Specify the text the bookmarks contain:
– "Name / description" option
– "Navigator text" option
The system is similar to that of the labeling system.
6. Optional: Enable the "Export layer data" option
See table "Controlling the export".
– Optional: Enable "Include invisible layers"
The "Include invisible layers" option is only evaluated if the "Export layer data" option is
activated.
7. Under "Selection", select the storage location and the file name.
8. Click "OK".
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 17
Importing and exporting data
1.3 Exporting a report as a PDF
① Layer-free ele‐ When a drawn element in the report is assigned to a layer but this layer does not exist in the layer
ments list of the report, the element is regarded as "layer-free".
(layer missing in Example: When a formal drawing element such as a placing point is drawn on layer 201, but layer
the layer list of 201 does not exist in the report, then the placing point is considered as "layer-free".
the report) Layer-free elements are visible in the report.
If layer-free elements are exported, they are created on the main layer (also called layer 0) in the
target.
To convert a layer-free element into a layer-based element, create the appropriate layer in the report
prior to export.
② 0 - 199 and 256 This group includes the standard layers that have been made visible in the report.
- 999
Standard layers,
visible
③ 0 - 199 and 256 This group includes the standard layers that have been made invisible in the report.
- 999 The following applies if this group is exported: All layers of this group are invisible in the target at
Standard layers, first and can be displayed by the user.
invisible
Platform Interfaces
18 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.4 Exporting reports to Excel
④ 200 - 250 Elements on these layers are not printed but can be exported in Case "III."
Non-printable Visible and invisible layers in the range 200 - 250 are handled identically.
but exportable The following applies in Case "III.": the layers of this group are invisible in the target at first and can
layers be displayed by the user.
⑤ 251 - 255 These layers cannot be created using the user interface and are generally neither printable nor
System layers exportable
(non-printable)
Result
● The selected report is exported as a PDF and stored in the selected storage location.
● Once you have exported the layer data, you can show or hide the contents of the layers in
the PDF. To do so, use the layer navigation window in Adobe. For reports with the same
drawing type, the layers are collected under one node. Layers hidden in the report are also
initially hidden in the PDF.
Exceptions:
– The layers 251 to 255 are not exported.
– When the "Archiving to ISO standard in PDF/A-1b format" option is selected, layers are
not exported. The standard does not permit layers.
● The bookmarks are formatted in the PDF as follows:
– Documents: blue
– Unit objects and folders: black
– Placed components: black and boldface
● If you select the bookmark of a placed component, the program navigates to the page on
which the component is placed. The component is zoomed in. In the case of multiple
placements, you select a placement in the context menu.
● You can navigate to PDF pages in the PDF using page links.
● DWG graphics are not exported as vector graphics, but converted into simple images. Note
that large DWG graphics increase the size of the PDF file. Only those DWG graphics are
exported that are placed on a report.
1.4.1 Introduction
You can export evaluating reports in Excel format. You can fully edit the data in Excel and
change the layout of the Excel sheet as required. This enables you to forward COMOS data
to companies that do not use COMOS, such as suppliers.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 19
Importing and exporting data
1.4 Exporting reports to Excel
Scope of export
The following report elements can be exported:
● Lines
● Circles
● Textboxes
● Checkboxes
● SubReports
● Lists
● Picture boxes
● WMF images
For the application limits, see chapter Application limits for the export (Page 20).
Interactive reports
Interactive reports are not supported with regard to content. Neither symbols nor connection
lines are exported to Excel. See also chapter Exporting reports to Word (Page 24).
Requirement
● You are familiar with the purpose.
See chapter Introduction (Page 19).
XLS format
XLS format is subject to the following restrictions from Microsoft:
● Maximum 65536 rows
● Maximum 256 columns
● Microsoft has discontinued support for the format.
Platform Interfaces
20 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.4 Exporting reports to Excel
XLSX format
XLSX format is subject to the following restrictions from Microsoft:
● Maximum 1048576 rows
● Maximum 16384 columns
XLSX format is subject to the following restrictions from COMOS:
● Document size less than 8 MB
Larger documents may cause termination of the export. Large documents result, for
example, when many objects are placed in an evaluating report.
If necessary, contact COMOS Support for a workaround.
● The number of sheets is less than 200 per Excel document
A larger number of sheets may cause termination of the export.
The XLS format has performance advantages in COMOS compared with the XLSX format.
Additional information on this can be obtained from COMOS support taking into consideration
specific applications.
Notes
All information here represents guide values. The actual reaction depends on the specific
individual case.
An export can take up to several hours depending on the structure, contents, size and number
of documents.
Procedure
1. Click the "Export > Excel" command in the context menu of the report.
2. If required, change the default settings in the "Report to Excel" window.
See also chapter "Report to Excel" window (Page 42).
3. Click "OK".
Procedure
1. Select the "Documents > Excel export" command in the menu bar.
2. In the Navigator, drag&drop the node under which the reports are located into the "Start
object(s)" field in the "Excel export" tab.
3. Select the reports you want to export.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 21
Importing and exporting data
1.4 Exporting reports to Excel
Macros
You first need activate the macros before you can begin working in the Excel spreadsheets.
You need to reactivate the macros each time you open the Excel spreadsheet.
Option Description
"xlFoldermargin" (numeric) You can specify the "xlFoldermargin" variable in the options script of a
report. You use this to specify a margin for the page in mm that takes effect
when the report is exported to Excel.
"ExcelRaster" (numeric) Changes the report grid.
"ExcelMergeAll" (Boolean) If the variable in the options script is not used, the default value "False"
applies. If the variable is set to "True", blank text fields are also exported to
Excel. If set to "False", blank text fields are not exported.
"Hairline", "ThinLine", In Excel, there are four line types in order to differentiate the width. Variables
"MediumLine", "ThickLine" (numeric in with identical names were created in COMOS. Example:
mm) "Hairline=0.2, ThinLine=0.5, MediumLine=0.75,
ThickLine=1.0"
In this case, all COMOS lines with a line width of 0 mm to 0.2 mm are passed
as type "Hairline", lines with widths between 0.2 mm and 0.5 mm are
passed as type "ThinLine", etc.
All four variables must be set, otherwise this technique cannot be applied.
If none of the variables or not all variables are set, "Thinline" is set for
all cell delimiters in the default setting.
Platform Interfaces
22 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.4 Exporting reports to Excel
Option Description
"ExcelSheetScaleH", These variables calculate the size of the object properties newly. The text
"ExcelSheetScaleV" (numeric as a per‐ sizes, line width, width, height, etc. of the objects are scaled up or down
centage) accordingly in the export. The "SheetScale" function has nothing to do
with zooming, in which only the display of the objects on the monitor is
increased or decreased but the size of the objects themselves remains the
same.
Values between 50% and 120% are permitted.
Background: The time required by Excel to calculate an imported object
increases with the size of the object. Excel requires more time to calculate
a large text field than a small one. If the export to Excel takes a very long
time, you can speed it up by setting the "Sheetscale" to a small value.
This will require a little more time, since a calculation is made within COMOS
for the smaller size; however, on the other hand, Excel requires noticeably
less time to generate the objects.
The "SheetScale" option is functionally identical to "Sheet scaling" in the
"Save file" dialog window when the export to Excel is prepared within the
Print Manager.
"ExportFreeGraphic" (Boolean) If "ExportFreeGraphic = True" is set, the free graphics are also ex‐
ported to Excel. If the variable does not exist or is set to False, these
graphics are not exported.
Background: Circles and lines within evaluating reports are classified ac‐
cording to whether they fulfill a function or are free. A line fulfills a function
if it is part of a text field frame or visually separates a column or row. If the
line does not fulfill a function, it is free.
In practice, lines in evaluating reports nearly always fulfill a function, since
a table is drawn, text boxes are drawn, etc., in the report with the help of
lines. Therefore, with the default setting, lines and circles in evaluating re‐
ports are regarded as functional.
For lines, the user can define whether a line is to be functional or free. To
do so, the user opens the properties of the line and clicks the "No cell de‐
limiter" button. This switch sets the internal ID to "G", which in COMOS is
used to identify free graphics.
"exVisible" (Boolean) If the variable is set to "True", Excel is visible during the export and you can
see how the individual elements are generated in Excel one after the other.
If the variable is not present or is set to "False", Excel is not visible.
The export operation is much faster when Excel is not visible.
Example
The following options are possible in the report template for layers that are not to be exported:
● ExcelExcludedLayers = "SYSTEM": All layers between 200 and 255 are excluded
from the export to Excel.
● ExcelExcludedLayers = "99;101": Layers 99 and 101 are excluded from the export
to Excel.
This is used for overlapping texts that are displayed in COMOS but nevertheless lead to
problems during the Excel export.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 23
Importing and exporting data
1.5 Exporting reports to Word
1.4.6.2 Reimport
You can reimport exported evaluating reports.
Script
Enter the following in the options script of the report:
"Keepscriptrunning = True
ExcelMergeAll = True
ExcelReimportModus= True"
The ExcelReimportModus variable generates a Shadowtable, i.e., a hidden Excel sheet.
All reimportable cells are displayed with a green background in Excel.
1.5.1 Introduction
Interactive reports
You can export evaluating and interactive reports in Word format. The export to Word is useful
mainly for interactive reports. See also chapter Exporting an individual report (Page 25) and
chapter Exporting multiple reports (Page 26).
Application limits
For the application limits, see chapter Application limits for the export (Page 24).
Requirement
● You are familiar with the purpose.
See chapter Introduction (Page 24).
Platform Interfaces
24 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.5 Exporting reports to Word
DOC format
DOC format is subject to the following restrictions from Microsoft:
● Maximum 512 elements (screens and other objects)
● Maximum file size: 32 MB
If the file size approaches 32 MB, there is significant loss of performance in the "Report to
Word" interface.
DOC format is subject to the following restrictions from COMOS:
● Limited number of report elements.
A large number of comboboxes may cause termination of the export.
DOCX format
DOCX format is subject to the following restrictions from COMOS:
● Limited number of report elements.
A large number of comboboxes may cause termination of the export.
● Limited number of text boxes
More than 20 text boxes in a document may cause termination of the export.
● Recommended file size: less than 1 MB
With larger files, there is a significant loss of performance when using the document (slow
scrolling, slow opening, etc.)
Note
All information here represents guide values. The actual reaction depends on the specific
individual case.
Procedure
1. Click the "Export > Word..." command in the context menu of the report.
2. If required, change the default settings in the "Report to Word" window. See also chapter
"Report to Word" window (Page 42).
3. Click "OK".
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 25
Importing and exporting data
1.6 Exporting and importing DWG/DXF files
Procedure
1. Select the "Documents > Word export" command in the menu bar.
2. In the Navigator, drag&drop the node under which the reports are located into the "Start
object(s)" field in the "Word export" tab.
3. Select the reports you want to export.
4. Click the "Execute" button.
5. Select the execution sequence in the "Documents" window and click "OK".
6. If required, change the default settings in the "Report to Word" window. See also chapter
"Report to Word" window (Page 42).
7. Click "OK".
1.6.1.1 Introduction
Requirement
The following versions are supported:
● The import supports AutoCAD up to 2010
● The export supports the following versions:
– 2000
– 2004
– 2007
Overview
You have the following options for displaying an AutoCAD file without converting it:
● As an external document
See also chapter Displaying an AutoCAD file as an external document (Page 27).
● As a PQM document
See also chapter Displaying an AutoCAD file as a PQM document (Page 27).
● As an external drawing on a report
See also chapter Displaying an AutoCAD file as an external drawing in a report (Page 28).
Platform Interfaces
26 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.6 Exporting and importing DWG/DXF files
Requirement
AutoCAD is installed on your computer.
Procedure
1. Drag&drop the file from Windows Explorer to the Navigator.
2. Double-click the new object.
Result
The file opens with the AutoCAD program.
Requirement
AutoCAD is installed on your computer
Procedure
1. Drag&drop the file from Windows Explorer to the Navigator.
The AutoCAD drawing is checked for external references during this operation.
2. Double-click the new document.
Result
The file opens with the AutoCAD program.
Procedure
Drag&drop the file from Windows Explorer or the Navigator onto an interactive report.
Result
You now have the option of selecting the AutoCAD file and then dissolving it into an engineering
object via the context menu. See also chapter Dissolving an AutoCAD object into engineering
objects (Page 35).
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 27
Importing and exporting data
1.6 Exporting and importing DWG/DXF files
Platform Interfaces
28 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.6 Exporting and importing DWG/DXF files
● Texts
Line breaks are exported as well. The current language is exported. If the texts have
translations, not all the languages are exported; only the one that is currently visible.
● Dimensions
Dimensions are broken down into texts and lines. Dimensions are not exported as a
dimension.
● Objects with the "DXF" tab
If an engineering object has the "DXF" tab, a block is created and all attributes of the "DXF"
tab are created as attributes of the block.
● Labeling objects
Labeling objects used on P&ID reports, such as pipe labels, are exported as independent
blocks. COMOS labeling objects of the class Data records are taken into consideration here.
● Pipe references / pipe flags as blocks
Symbols for pipe references are exported as a block:
– The symbol is created using the @PIPECONSYMBOL standard table
– The reference symbol has its own symbol identification key <Header.Class>
– The Header.Class is entered in the "DXF.ini" file as the ReferenceClass =??? variable.
The result is that the drawn line of the pipe is broken up and the page reference symbol is
exported as a block.
Pipe flags are exported as a block:
The same technique is used to export pipe texts as independent blocks.
– The symbol is created using a standard table
– The reference symbol has its own symbol identification key <Header.Class>
– The Header.Class is entered in the "DXF.ini" file as the PipeFlagClass =??? variable.
Standard name:
Pipe, attribute SYS.DXFBLOCKNAME: This value is used as the block name for the default
label of a pipe if the pipe is written as a polyline.
Exceptions
● Deactivated objects are not exported to DXF.
● Dimensions are broken down and are not exported as "blocks" but as dimensions.
● File links in COMOS are not exported to AutoCAD.
● BMP files included in COMOS are only created as a file link in the AutoCAD drawing. If you
pass on the drawing, you also have to pass on the corresponding BMP files.
● WMF files are not exported.
● Circles: AutoCAD knows two different "circle" types: true circles and circles made up of line
segments. True circles can only be controlled as of AutoCAD 2000.
● The color white is not exported. In AutoCAD, the color white is interpreted in different ways:
for example, as black in screen views and as gray in hard copy output. This is why the color
white is not exported, to avoid any errors.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 29
Importing and exporting data
1.6 Exporting and importing DWG/DXF files
Special characters
The following characters are not exported:
● :
● \
● <
● >
● /
● ?
● "
● ;
● *
● |
● ,
● =
Procedure
1. Select the "Export > DXF/DWG..." command in the context menu of the report.
2. Select the desired export options in the "Export to DWG/DXF" window. See also chapter
"Report to DWG/DXF" window (Page 43).
3. Click "OK".
Platform Interfaces
30 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.6 Exporting and importing DWG/DXF files
Procedure
1. Select the "Documents > DWG/DXF export" menu command.
2. Select multiple reports in the Navigator and drag&drop them into the "Start object(s)" field
in the "DWG/DXF export" tab.
3. Select all reports in the table that are to be exported.
4. Click the "Execute" button.
5. Select the desired export options in the "Export to DWG/DXF" window. See also chapter
"Report to DWG/DXF" window (Page 43).
6. Click "OK".
1.6.3.1 Overview
Objects
All objects that were created or designed as follows are considered and imported:
● Circles, arcs
Also when mirrored.
● Ellipses
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 31
Importing and exporting data
1.6 Exporting and importing DWG/DXF files
Supported units
Units supported for the import operation are:
● "inch": If the import detects that the AutoCAD drawing has the unit "inch", the INI file
"DXF_inch.ini" from the OCX directory is used automatically.
● "mm"
● "no unit"
Platform Interfaces
32 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.6 Exporting and importing DWG/DXF files
Exceptions
● Layer/ colors
If an AutoCAD element is supposed to get its color from the layer, the layer color has priority
over the element color. If an AutoCAD color is not defined in the "dxf.ini" file, the default
color black is used.
● Line width
The line width is always derived from the color valid for the element. If a line width is not
defined in the "dxf.ini" file, the default line width of 0.13 mm is used.
● Dimensions
Dimensions including texts are not imported.
Special conversions
Procedure
Drag a DWG/DXF file from Windows Explorer into an opened report.
Result
The display of the placed AutoCAD object is not controlled by COMOS at this time. COMOS
objects are not created, and a "dxf.ini" or "dxf_inch.ini" conversion file is not evaluated. The
AutoCAD object is displayed with the help of Windows and AutoCAD interpreters. The
AutoCAD object owns own properties.
Note
Undo
For technical reasons, there is no "undo" available for an import of DWG/DXF drawings. To
undo a import, close the report without saving it.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 33
Importing and exporting data
1.6 Exporting and importing DWG/DXF files
Procedure
1. Open the "Symbols" tab of a base object.
2. To open the file selection of the "Symbol path" field, click the "..." button.
3. Select a DWG/DWX file.
4. Click "OK".
Requirement
A report with an embedded AutoCAD object is open. See also chapter Importing an AutoCAD
drawing in an interactive report (Page 33).
Procedure
1. Right-click in the selection box of the AutoCAD object.
2. Select the "Dissolve DWG/DXF drawing into engineering objects" command in the context
menu.
3. Make the desired settings in the "Dissolve DWG/DXF drawing into engineering objects"
window. See also chapter "Dissolve DWG/DXF drawing into engineering objects" window
(Page 43).
Result
Depending on the settings you selected in the "Dissolve DWG/DXF drawing into engineering
objects" window, base objects or engineering objects are created when the AutoCAD object
is dissolved.
Requirement
You have opened a report with an embedded AutoCAD object. See also chapter Importing an
AutoCAD drawing in an interactive report (Page 33).
Platform Interfaces
34 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.6 Exporting and importing DWG/DXF files
Procedure
1. Right-click in the selection box of the AutoCAD object.
2. Select the "Dissolve DWG/DXF drawing graphically" command in the context menu.
3. Make the desired settings in the "Dissolve DWG/DXF drawing graphically" window.
The same window is opened as when an AutoCAD object is dissolved into engineering
objects. See also chapter "Dissolve DWG/DXF drawing into engineering objects" window
(Page 43). However, only the "Create graphic in document" option is enabled this time.
Result
All the report objects are dissolved into report elements and subsequently all the created
engineering objects are deleted.
Only the dissolved AutoCAD object is present graphically in the report. Engineering or base
objects do not exist.
Requirement
You have opened a report with an embedded AutoCAD object. See also chapter Importing an
AutoCAD drawing in an interactive report (Page 33).
Procedure
1. Right-click in the selection box of the AutoCAD object.
2. Select the "Analyze DWG/DXF drawing" command in the context menu.
– Import preparation: The DWG drawing is analyzed and the results are written to a new
conversion file. The file has the name of the DWG file.
Example: A Motordrive.ini file is created at a Motordrive.dwg file.
– Analysis options: Once drawing analysis has started, the dialog window "Analyze DWG/
DXF file" opens with two options. These two options are not evaluated. Only the layers
and lines that are used are entered in the INI file.
3. Assign COMOS values to the DWG values in the DWG mapping editor. See also chapter
DWG/DXF mapping editor (Page 38).
Requirement
You have opened a report with an embedded AutoCAD object. See also chapter Importing an
AutoCAD drawing in an interactive report (Page 33).
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 35
Importing and exporting data
1.6 Exporting and importing DWG/DXF files
Procedure
1. Right-click in the selection box of the AutoCAD object.
2. Select the "Properties" command in the context menu.
Result
The information about the embedded AutoCAD object is displayed in the properties. See also
chapter Information about embedded AutoCAD object in the properties (Page 37).
Overview
Base objects
You have the option of creating a table in the base objects, in which you enter XRefs. This
table is evaluated during the import operation. If an entry for an XRef entry is found in the table,
COMOS assumes that the corresponding resource already exists in COMOS.
Platform Interfaces
36 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.6 Exporting and importing DWG/DXF files
Result
The XRef window is no longer displayed and the import runs faster because it is not necessary
to repeatedly import the same resources.
Procedure
1. Copy the font files from AutoCAD to a directory on the hard disk.
2. Store the directory of the font files in a system variable of your computer.
For example: "ACAD=c:\autocad\fonts"
Result
The information takes effect the next time COMOS starts. Then the import starts.
The improved text display affects the text justification, font size, and font type.
General
In COMOS, the import and export of DWG data is controlled using an INI file. This INI file
contains conversion rules for colors, lines, layers, etc.
The DWG/DXF mapping editor creates and changes these INI-files. Before the export, the
DWG/DXF mapping editor is used to create a correct "dxf.ini" file.
Exporting always uses the file "<COMOS installation directory>\config\DXF_EXPORT.INI".
AutoCAD 2004 and AutoCAD 2007 are supported for the DWG/DXF import using the "dxf.ini"
file.
If you make changes in the DWG mapping editor and save a "dxf.ini" or "dxf_inch.ini" file to
another location, this file will be used in the active work session. When COMOS starts again,
the default files in the OCX directory are used again.
See also chapter Opening the DWG/DXF mapping editor (Page 38).
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 37
Importing and exporting data
1.6 Exporting and importing DWG/DXF files
Procedure
Select the "Plugins > Basic > DWG/DXF mapping editor" menu command.
See also chapter Tabs in the mapping editor (Page 44).
Procedure
Enter "*" in the DWG/DXF mapping editor for an item of information.
Result
The "*" entry will be interpreted as any value.
Note
Do not make the "*" entry in the "Layer" tab. The "*" is a suitable entry in the "Combinations"
tab.
Platform Interfaces
38 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.6 Exporting and importing DWG/DXF files
Base objects
Link the generated import base objects with COMOS base objects. The import base objects
are located in the base project under the "@20 > D20 > Y30 > DXF DXF imports" node.
To do this, create a base object reference to a COMOS base object in the properties of the
import base objects.
During the subsequent conversion, the symbol that was read from the AutoCAD file and not
the assigned original symbol will be placed on the document for a linked base object. You can
replace it later with the linked real system using "Restore the original symbol".
Attributes
Link the created DXF attributes under the DXF base objects to the attributes of the COMOS
base objects.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 39
Importing and exporting data
1.7 User interface
To do this, open the DXF attribute to be linked and create a view attribute to the COMOS
attribute with link type "Via own object", "Fully dynamic". Then drag&drop the COMOS attribute
from the base data into the "Attribute" input field.
Note
"Sub" is not supported at this point.
Control elements
List Description
"Database" Select a file in MDB, XLS or XML format here.
"Table" Select a table from the selected file here.
Platform Interfaces
40 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.7 User interface
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 41
Importing and exporting data
1.7 User interface
Overview
Overview
Platform Interfaces
42 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.7 User interface
Overview
Overview
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 43
Importing and exporting data
1.7 User interface
Note
Setting paper size
You can use the "ACADPrnPaperSpace" attribute for the base object of the document to define
the paper size or the print layout.
Platform Interfaces
44 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.7 User interface
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 45
Importing and exporting data
1.7 User interface
Overview
This tab is not evaluated for the export.
The following allocation is always applied:
Platform Interfaces
46 Operating Manual, 04/2015, A5E32019975-AD
Importing and exporting data
1.7 User interface
Overview
This tab is evaluated for the export.
You have the following options:
● "Set COMOS color automatically" option activated: The color is assigned automatically. A
matching AutoCAD color is found based on the RGB values.
● "Set COMOS color automatically" option deactivated: You make the color assignment
yourself:
– Select a color in the "DWG/DXF color" column. The DWG/DXF color index is displayed
automatically.
– Select a color in the "COMOS color" column. The RGB values are displayed
automatically.
– Select the width of lines with this color in the "COMOS line width" column.
Overview
You assign the layers in this tab.
If a COMOS layer is not yet entered in the "dxf.ini" in the COMOS drawing, insert the COMOS
layer here. The assigned AutoCAD layer then has the same name as the COMOS layer. If the
COMOS layer has already been entered, the AutoCAD layer is assigned at the object.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 47
Importing and exporting data
1.7 User interface
Overview
You define how special objects are converted in this tab.
You describe all convertible properties of an object. If objects with these properties are found
during the import or export, they are converted as defined.
Platform Interfaces
48 Operating Manual, 04/2015, A5E32019975-AD
XML connectors 2
2.1 Basic principles
2.1.1 Introduction
Function
XML connectors import and export data that are structured in accordance with a valid XML
format. The XML format does not necessarily need to correspond to COMOS’s own XML
format.
The assignment between COMOS data and XML data basically can be bidirectional. An XML
connector in COMOS can be used to both read and to write XML data.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 49
XML connectors
2.1 Basic principles
2.1.2 Requirement
The following requirements must be met when working with XML connectors:
● You have experience with queries.
You can find additional information on this topic in the "COMOS Platform Operation"
manual, keyword "Working with queries and bulk processing".
● Before you create and implement XML connectors, define the design structures and objects
to be imported or exported.
● You need to be familiar with the target XML structure described by the data.
This simplifies the configuration of the XML connectors.
Overview
Basically, there are four different option available for mapping data:
● Drag&drop assigning
● Conversion of values via standard tables
● Formation of object hierarchies through nested queries
● Formation of object hierarchies via reference columns
Overview
As of version 9.0, XML connectors are no longer processed with VB script.
All old functions continue to be supported. The old connectors are downwards compatible.
Progress bar
If you use connectors with VB script, a second window that shows the progress opens after
importing or exporting has been started.
Overview
COMOS XML connectors are documents of the type "XML connector document". You usually
create documents in the "Documents" Navigator tab or link the document to the tab. See also
chapter XML connector documents (Page 53).
Platform Interfaces
50 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.1 Basic principles
Document groups
You can group documents into document groups to make the layout of the "Documents" tab
in the Navigator clearer.
Connector documents that were triggered via the Enterprise Server should be saved in an own
document group. Create this document group directly below the project node. Name the
document group "@MXC".
Connector documents that are not triggered by the Enterprise Server can be saved at any
location in COMOS where documents are allowed.
Reference object
You assign a template and a reference object to the object in the "XML document" tab in the
properties of the connector document. The reference object is the start object of the XML
connector document and contains the objects that are exported. The objects to be imported
are created below the reference object.
The reference object is stored in the connector document, not the connector template. It can
be changed when the connector document is triggered.
Configuration
Configurations of the connector document are stored in the connector template. When you
open the connector document for the configuration, the available configurations are loaded
from the connector template. See also chapter Connector template (Page 51).
Overview
The template for XML connector documents must be an "XML connector template" type. Every
XML connector document must be linked to a connector template. A connector template can
be linked to several connector documents.
Create a document group for connector templates.
Assign the "@30 > M02 > A80 > A10 document object for XML connector" base object or an
object below it to the connector template.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 51
XML connectors
2.1 Basic principles
Overview
The "Envelope" field can be found in the "Attributes > XML" tab in the properties of the XML
connector document. To edit the field, click on the "..." button.
You can use the "Envelope" field to enter fixed strings to enclose the XML content and declare
the XML format. The XML version and the code used are displayed here.
The following rules apply for the "Envelope" field:
● The root node of the XML file must match the node that you have specified in the "XML
start node" field of the configuration tool.
● If you want to use XML name spaces, you need to enter them in the "Envelope" field.
Example
<?xml version="1.0" encoding="UTF-8" ?>
<CAETest xmlns:cis="http://www.siemens.com">
<Content/>
</CAETest>
You then insert the data generated in the XML connector at the location of the
<"Content/"> placeholder.
Platform Interfaces
52 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.2 XML connector documents
Example
To ensure correct processing of the XML file, the following definition cannot be included:
<?xml version="1.0" encoding="UTF-32"?>
Procedure
1. Open the engineering project
2. Select the "Units", "Locations" or "Documents" tab in the Navigator.
3. Create a new document of the "XML connector document" type.
4. Open the properties of the document.
5. Select the "XML document" tab.
6. Click the "..." button next to the "Template" field.
The attributes are taken from the template and the queries below are evaluated.
7. Assign a template to the document.
8. If required, change the default setting in the "Reference object" field.
This field sets the default setting for the "Query start object" field.
Procedure
1. Open the context menu of the XML connector document.
2. Select the "XML > Configure XML connector" command.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 53
XML connectors
2.2 XML connector documents
Overview
To select a query type for the XML connector document, click in the "Base object" field in the
"Edit query container" window. See also chapter Connecting a query with XML connector
(Page 64).
The following query types are available:
● "Query: Base objects"
● "Query: Connectors"
● "Query: Object engineering" (engineering objects)
● "Query: Documents".
● "Query pointer"
● "Query: Specifications" (attributes)
Which query type you select depends on the object you process.
You save predefined queries on the "Base objects" tab in the "@99 > A30 > M00 > A60 XML
connector data" node. The queries you created can then be selected in the "Base object" field.
Rule
Test the query before linking it to the XML structure.
Naming queries
The name of queries for connector documents must begin with a letter. Names of queries are
used in the script as name of subfunctions. Subfunctions must begin with a letter due to a
Microsoft convention. A script error occurs if a subfunction has a number as its first character.
Overview
Query pointers reduce data redundancy by excluding duplicates.
Platform Interfaces
54 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.2 XML connector documents
Base object
The base object for query pointers is located under "@99 > A30 > M00 > A60 > A10 Query
pointer".
Function
Within XML connectors, you define an object that refers to a query inside or outside the
connector. The query pointer is the copy of the target query and therefore has the same
functionality. Lower level queries are also considered. If a query pointer is found during the
processing of an XML connector document, the target query is used to import or export
COMOS objects. See also chapter Assigning a query using properties (Page 55).
Procedure
1. Open the properties of the "@99 > A30 > M00 > A60 > A10 Query pointer" node.
2. Select the "Attributes > Query pointer" tab.
3. Use the "Set pointer..." button to select the desired query.
"COMOS" tab
In the case of linked data, the query refers to the object collection you create in the "COMOS"
tab. You select the object collection type by dragging the desired object from the Navigator
into the "Class(es)" field and the "Base object(s)" field of the query.
"Mapping" tab
In the "Mapping" tab, complete the query that is to be evaluated in the "XML" tab. The evaluated
COMOS objects of the query are displayed in the "COMOS" tab. The evaluated XML nodes
are displayed in the "XML" tab.
Therefore, there are two object collections, one for COMOS objects and one for XML nodes.
First, edit the "XML collection" field in the "Mapping" tab.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 55
XML connectors
2.2 XML connector documents
The collection of XML nodes is created based on the node that you drag&dropped from the
XML file into the "XML collection" field in the "Mapping" tab. This automatically creates the
XPath expression, which points to the desired node. The XPath expression in the "XML
collection" field depends on the entry in the "XML start node" field. The XPath expression
indicates the position of the nodes contained in the XML collection, depending on the entry in
the "XML start node" field.
You can see the columns of the query used in the lower section of the "Mapping" tab. This is
where you link the COMOS data with the XML data. The columns of the query are displayed
as rows in the mapping table. When you drag&drop an XML node to a cell in the "XML mapping"
column, you assign the XML node to the corresponding column of the query. The XML
connector document then knows which XML value needs to be entered in the assigned column
during runtime. The XPath expression generated in the "XML mapping" column depends on
the entry in the "XML collection" field.
"XML" tab
If the XML table in the "XML" tab has been filled out correctly, the data is successfully linked.
Requirement
The "COMOS" tab must be open in the configuration tool.
There are two columns: one for creating the object and one for the base object.
Platform Interfaces
56 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.2 XML connector documents
Result
The reference object serves as a library object for the new object that is to be created.
Creating an object
1. Enter the name of the base object that you want to use to create a new object in an empty
cell of the column you have defined for the start object of the base object search.
2. The cell returns the found base object as the value.
3. The object is created below the specified start object of the query. If no base object is found
below the start object for the search, a new base object is created.
2.2.8 References
References in COMOS
In COMOS, references are used in addition to the object hierarchy to create logical links
between items of information. You can find additional information on this topic in the "Class
Documentation COMOS_dll" manual.
Reference
A reference is a function or property that contains connection information for an individual
object and can be read as well as written. You can find additional information on this topic in
the "Class Documentation COMOS_dll" manual, keyword "Reference".
For example, you can save the information about a component belonging to a specific location.
To do this, you do not need to place the component below the location. You can the save
reference to the location at the component: "Device.Location". "Device" is the
component and "Location" is the reference to the location.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 57
XML connectors
2.2 XML connector documents
Another example is the link between two connectors. There is a collection of connectors below
a component. These connectors can be linked to the connectors of another component, which
would then have the following reference: "Connector.ConnectedWith".
References in XML
XML manages references using the following pointers:
● ID: Information
● IDREF: Reference to this information
Therefore, there can be multiple IDREFs for a single ID.
See also chapter Configuring references in the XML connector (Page 58).
Procedure
1. Since the target information has to have an ID, create an "ID" column.
2. Select the "New > General" command in the context menu of the "Name" column.
3. Enter the desired name in the "Name" and "Description" fields, for example "ID Number".
COMOS automatically generates the IDs in this column.
4. Since IDREF searches for the ID, the object with the ID must be known. Be sure you can
find the right object with the ID in the definition of the IDREF. Select one of the following
options:
– The objects in which the IDREFs is defined are a different object group than the objects
with the ID. You can create two queries for the "Device.Location" example: One
that searches the locations and generates the ID and a second query that searches for
the component and generates the IDREF.
You can use the REFID collection method.
Background: COMOS does not export any empty queries to XML. If you create a query
whose sole task is providing the ID, this query will only be exported if the IDs are
required. If COMOS encounters an ID column, COMOS remembers the SystemUID and
that an ID must be resolved to an object here. When at least one IDREF requesting an
ID is not found and the query otherwise does not export defined XML elements or XML
attributes, this object will not appear in the XML file.
– The objects all belong to a group and are efficiently searched with a query. For the
"Connector.ConnectedWith" example, you can search all connectors in a single
query and also generate both the ID and the IDREF in this query. Then right-click in the
header of the "Name" column and select the context menu command "New > Connected
> Connector".
5. Switch to the "Mapping" tab and specify the following XML mapping: See also chapter
Examples of XML mapping (Page 59).
Platform Interfaces
58 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.2 XML connector documents
Examples
Assignment Description
"Objekt > Name": @Name This column is already present in the query. Recommendation: Always ex‐
port the name of the objects as well, in this case the name of the connection
objects.
"ID-Nummer > ID-Nummer": @ID You have created this column in the query. The ID is generated in this col‐
umn in the next step. The column can also have another name than "ID".
"Object_ConnectedWith > Conn. This column is to put out the IDREF in the next step. To do this, you first
connector": @IDREF_ConnectedWith have to find the object with the target ID using the predefined column "New
> Connected > Connector". To verify this, open the properties of the column
in the "COMOS" tab. The properties show the "ConnectedWith" navigation
step in the "Object evaluation" tab. This is a COMOS reference that is cal‐
culated from the "Object > Name" column. The mapping is made with the
definition of IDREF. Here, you have to ensure that the object with the ID is
found.
Similar to the "ID Number" column, you can enter the XML mapping
"@IDREF" here. However, the legibility of the XML file increases when you
specify the kind of reference it pertains to. Recommendation: An XML map‐
ping such as "@IDREF_ConnectedWith".
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 59
XML connectors
2.2 XML connector documents
Example
You want to find the locations that are used for a set of engineering objects. To do this, insert
a column in the query that outputs the reference to the location for each engineering object.
Collection REFID
In this case, you should use the REFID collection. This method discards the "Query passes
start object for deeper query" method. With regard to the configuration tool, this means that
the "Query start object" field is no longer of any significance.
Instead, a collection is formed that contains all objects that were previously already used. See
also chapter Defining the COMOS collection (Page 61).
Platform Interfaces
60 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.2 XML connector documents
Procedure
1. Create a query in which the engineering objects are collected.
2. Click on the column and select the "New > Location" command from the context menu.
A new column, "Location", is created.
3. Mark the new row, "Location", in the "Mapping" tab.
4. For the "Location" row, select the "IDREF" entry from the "Corresponding XML type" column.
5. Create a query that collects locations below the existing query.
A column with an ID is created in this query as a counterpart to the above IDREF.
6. Click on the column and select the "New > General" command from the context menu.
A new column, "ID", is created.
7. Mark the new row, "ID", in the "Mapping" tab.
8. For the "ID" row, select "ID" from the list in the "Corresponding XML type" column.
9. In the query in the "Mapping" tab, select "REFID objects" from the "COMOS collection type"
list.
Result
You get an XML structure. However, the REFID collection is formed on demand during the
course of the export. Previously used objects in this collection are not deleted again.
This means an ever increasing number of XML elements are created in the XML files during
the export operation.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 61
XML connectors
2.2 XML connector documents
Examples
● You want to convert text into another key text. In COMOS, "mm" is used for the millimeters
unit, but the string "Millim." needs to be in the XML file.
● Import or export values are to be assigned to another value on the basis of a fixed key.
Multiple import values form a COMOS value or vice versa.
Such a simplified mapping excludes a bidirectional mapping. In such a case you either export
nor import.
See also chapter Transforming data during runtime (Page 62).
Procedure
1. Select the "Administrator > Base data > Standard tables" command in the menu bar.
2. Drag&drop the required standard table to the "Mapping table" column.
You can use standard tables from the engineering project, the base project or the system
project. COMOS only stores the name of the standard table and not the project from which
the standard table derives. COMOS first searches for the standard table in the engineering
project, then in the base project, and finally in the system project.
If you select a standard table from the base project and there is a standard table with the
same name but different content in the engineering project, the standard table from the
engineering project is found.
You can find additional information on this topic in the manual "COMOS Platform Operation".
Platform Interfaces
62 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.2 XML connector documents
Enterprise Server
The Check column writes information about the values of the row to the Enterprise Server:
Check columns are always executed at the end of the calculation of a row. When the check
column function is executed, all other cell values of this row are available and can be queried.
If the Enterprise Server started an XML connector, all values of the check column are written
to the MXR file (response file).
Definition
XML fragments are strings that are not evaluated nor changed and passed to an XML file.
Make certain that these strings comply with the applicable XML syntax and contain meaningful
content. See also chapter Creating an XML fragment (Page 64).
Example
XFrag("ABC/XY")
XFrag("MN")
Rule
If you perform a reimport, make sure the in the memo field entered string has the same root
name as the fragment name.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 63
XML connectors
2.2 XML connector documents
Example
● String in the memo field:
<Fragment X1="234" X2="CX">
<SubFragment>Greetings!</SubFragment>
</Fragment>
● XML assignment:
XFRAG(""Fragment"")
Procedure
1. Prepare a "Memo field" type attribute at the objects in the base data.
2. Enter the string in the memo field of the engineering data.
3. In the "COMOS" tab of the configuration tool, create a reference column using the context
menu. See also chapter Opening the configuration tool (Page 53).
4. To create a new column, select the desired column "New > General" from the context menu.
5. Fill out the name and description of the new column.
6. Select the "Object evaluation" tab of the new column.
7. Select "SpecificationByNestedName" from the "Navigation step" list.
8. Enter "<Name of tab.Name of attribute>" for the parameter.
9. Select "GetDisplayXValue" in the "Display" field of the "Value calculation" tab and enter "0"
as the index in the "Parameter(s)" field.
10.Save the properties of the column.
11.Select the "Mapping" tab in the configuration tool and enter the newly created row "XFRAG
("Fragment name")" in the "XML mapping" column.
Procedure
Once you have created the connector document, you can also create the query using the
configuration tool of the XML connector document.
1. Select the "XML > Configure XML connector" command in the context menu of the
connector document.
See also chapter Opening the configuration tool (Page 53).
2. Click on the "..." button next to the "Query" list.
3. In the "Edit queries" window, right-click on the XML connector template and select the "New
> Query" command from the context menu.
Platform Interfaces
64 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.2 XML connector documents
Recommendation
Check if the query can be fully edited.
Tab Description
"General" You make general settings for the column properties here.
"Object evaluation" An object is calculated here. The information gathered from this ob‐
ject is displayed in the object browser.
"Value calculation" Value calculation uses the object of the object evaluation for further
information processing. The value calculation cannot supply a result
unless a correct definition is provided in the "Object evaluation" tab.
"Object by value" You define rules for creating new objects.
This requires you to select the "Options" command in the context
menu of the column header and activate the "Permit new row" option
in the "Editing type" control group in the "General" tab.
"Extra" You make additional settings for the column properties here.
"Languages" This tab shows the name of the column in various languages.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 65
XML connectors
2.3 Configuring the export of XML data
Hyperlinks
You will find a help section consisting of hyperlinks in the lower right of the application area.
When you click on the text in the help area, a window opens in which you perform the suggested
work step.
Platform Interfaces
66 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.3 Configuring the export of XML data
Result
Each column of the "COMOS" tab is displayed as a separate line in the "Mapping" tab.
Example
You will already be familiar with the method for comparing the exported XML file with the
"Mapping" tab:
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 67
XML connectors
2.3 Configuring the export of XML data
The objects collected in this query were exported as "Position" XML elements. The XML
attributes "Tag" and "Description" were created in this XML element.
The content of the "COMOS" tab should match that of the generated XML elements.
Sorting
If you create the queries below the XML connector, you have to keep two things in mind when
assigning names:
● The queries are processed in the order in which they appear in the "Queries" list. The
sequence of the queries is defined solely by their names. If you require a specific execution
sequence, adapt the names accordingly.
● The names of the queries must begin with a letter. If the name of a query begins with a
number, the name cannot be used as a function name in the script. This results in a script
error.
Example
Both queries are dedicated to the same level of the XML file. However, each of the queries
handles a different collection of information on this level. For this, the queries are called as
often as required.
The queries "Attribute HSD" and "Attribute SYS" are called for each object of the "Q11
functions" query.
Platform Interfaces
68 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.3 Configuring the export of XML data
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 69
XML connectors
2.4 Configuring the import of XML data
Reimport
A configured XML connector is always based on a fixed XML structure. The data can be
reimported through the XML connector as long as this XML structure remains unchanged.
If you do not define key columns, the data cannot be reimported.
In this case, you can call the import function, but the data will not be entered into the COMOS
objects because these objects cannot be found.
Example
The sum of the name of the object, the unit, and the position are always unique in COMOS. If
you create three columns in the query and fill them with name, unit, and position, respectively,
and then define all three columns as key columns, you can then assign any object.
Key columns are required for the import. The COMOS objects to be changed are identified via
key columns, or new COMOS objects are created or deleted.
The key columns are not relevant for the export.
Platform Interfaces
70 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.5 Using XML connectors
General
The master column shows the query which cell contains the object that is to be searched for
or created in the OrgCollection. The master column is a general function of queries.
There is only one master column.
Overview
The following expressions are supported for the import but not for the export:
● Expressions with "OR", "AND"
Example:
/../Specifications/Specification [@Name="Temperature" OR
@Name="Pressure"]
A unique object must be addressed during an export.
● Expression for selecting an unknown node:
/*, //, @*...etc
Example: Valve/*
Procedure
1. Open the context menu of the XML connector document.
2. Select the "XML > Export" command.
3. Make the required settings in the "MotionX" window. See also chapter "MotionX" window
for the export (Page 89).
4. Click "OK".
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 71
XML connectors
2.5 Using XML connectors
Procedure
1. Open the context menu of the XML connector document.
2. Select the "XML > Import" command.
3. Make the required settings in the "MotionX" window. See also chapter "MotionX" window
for the import (Page 90).
4. Click "OK".
Function
A so-called job is started while the XML connector is running for each query. The job has a
property that shows the query being used for the current import or export job.
You use the XML adapter to process COMOS and XML data both before and after the import
or export.
JobOptions
If JobOptions have already been created through the Enterprise Server and forwarded to the
XML adapter, for example, the settings only need to be read.
If you start the XML adapter from COMOS, the JobOptions must be created and adapted via
the option of the interface.
Adapter type
A variety of components can implement the "IAdapterActions" interface. These components
are assigned to the XML adapter via the "Adapter type" attribute in the "XML" tab. Here, in the
list behind the "Adapter type" attribute in the "XML" tab, all the components listed in the
properties of the XML connector are assigned a name.
Platform Interfaces
72 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.5 Using XML connectors
Column Description
"Name" This column displays the internal name.
"Description" This column shows the name of the component that can be selected
in the "Adapter type" list.
"Value 1" This column shows the internal name by which the adapter is quer‐
ied in order to load the special settings.
"Value 2" This column displays the name of the class to be loaded. "Kompo‐
nentenName.KlassenName" applies for all COM components.
"Namespaces.ClassName" applies for all .NET components.
"Value 3" This column shows the "AssemblyName" of a .NET class. This value
remains empty for COM components.
"Value 4" This column shows the path and the name of the XML file for internal
processing.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 73
XML connectors
2.5 Using XML connectors
If you set the "ProgressBar" option manually to the value "Nothing", you must set
"qeDialogType" to "0".
Set Options.Item("ProgressBar").Value = Nothing
Options.Item("qeDialogType").Value = 0
Values for "qeDialogType":
Value Description
0 No window / no progress bar
1 Full dialog with options, requires manual start by user
2 Minimum dialog, only shows the progress bar
The above listed options must be changed as described for the server mode. This has already
been received from the "MXExec.exe" file.
Value Description
1 Import
2 Export
Return value
If the "LoadFromScript" function was successfully executed, the return value of the function
is "0".
Platform Interfaces
74 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.6 Extending an XML connector through a C# assembly
Recommendation
Use previously compiled DLLs and embed these in COMOS.
Debugging
If you use Visual Studio, debug from the development environment. To do this, configure the
project properties and declare Comos.exe under "Start external program" in the "Debugging"
tab.
Procedure
1. Select the "Assembly" tab in the configuration tool. See also chapter Opening the
configuration tool (Page 53).
2. Select the "Write code" option.
3. Specify the desire C# source code in the editor.
4. Save the setting.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 75
XML connectors
2.6 Extending an XML connector through a C# assembly
Procedure
There are two ways to specify an already compiled assembly:
1. Enter the path and file name of the DLL file in the "Assembly file" field.
This file is searched to find the "ICodeProviderActions" interface and an instance of the
class you specified in the "Class name" field is created. The instance of the class
implements the interface.
In addition to the file path, you can also specify the fully qualified class name. The class
name is formed as follows: "Namespaces.ClassName". If you specify the class name, the
search targets an instance of the specified class instead of a class.
2. If you do not state the file name you have to state the assembly name and the fully qualified
class name. The DLL of the assembly must be located parallel to the Comos.exe or in a
subfolder of the "Comos\Bin" folder. If the DLL is located in a subfolder, you need to edit
"Comos.exe.config" file. Specify the subfolders in which to search for DLLs.
Rule
You must always specify the assembly name.
Example
The subfolder is named "CompiledAssemblies". Enter the following line in the
"Comos.exe.config" file:
<assemblyBinding>
<probing privatePath="Interop;CompiledAssemblies"/>
</assemblyBinding>
The file name of the DLL must correspond to the name of the assembly: "AssemblyName".dll.
Overview
The following describes the most important interfaces and properties you need to work
with .NET assemblies.
See also chapter:
● "ICodeProviderActions" interface (Page 77)
● "IAdapterActions" interface (Page 78)
● "IJobHelper" interface (Page 79)
● "IXMLExecJob" interface (Page 80)
Platform Interfaces
76 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.6 Extending an XML connector through a C# assembly
Overview
All methods that are to be called by the XML connector must be defined beforehand for a .NET
assembly. To ensure this, there is an interface that you need to implement when creating a
class. This is the only way to guarantee that all classes follow the same scheme.
Interface:
1. short Version { get; }
Returns the version of the implemented interface (currently 1).
2. bool Import
Called for an import.
3. bool Export
Called for an export.
Parameters
The following table describes the parameters of the interface:
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 77
XML connectors
2.6 Extending an XML connector through a C# assembly
Explanations
There is a difference between "Master_..." and "…_ExportRow". The same method is called
in both cases. If a master call is involved, the method is passed via the 'queryName' parameter
of the "@@Master" value. If a call from a query is involved, the method is passed via the
'queryName' parameter of the <name of query> value. Evaluate the forwarded parameter.
Do not randomly select the return value from both methods, since it will be interpreted and
influences the execution of the job. The return value tells you if your actions were performed
when a method was called – return value: TRUE. Since an assembly is saved for the entire
connector and not for each query, you need to be able to distinguish when actions are
performed. This is not possible before the methods are called. You can use the 'queryName'
parameter to determine if the actions should be performed.
Example
When you call the 'Export' with 'queryName' = "@@Master" method and want to extend the
execution, the return parameter must have the value TRUE.
If FALSE is the return value, COMOS executes its standard procedure.
Parameters
Parameter Description
Version Returns the current interface version.
PreAction Starts the PreAction of the XML adapter and runs before the XML connector
is started internally.
PostAction Starts the PostAction of the XML adapter and runs after the XML connector
is started internally.
jobType Name of the job type:
● Import
● Export
document The XML connector document that is to be used. The XML document is a CO‐
MOS object.
Platform Interfaces
78 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.6 Extending an XML connector through a C# assembly
Parameter Description
FileName Name of the XML file that is to be used.
Note: This is a REF parameter. If the value is changed within the method, this
change persists after the method is called and is, therefore, retained throughout
the remainder of the XML connector process.
jobOptions Options for the XML connector. The options are defined (via the user interface,
for example) before the connector starts.
Overview
The following table describes methods and properties.
Method/Property Description
IComosDDocument Document { get; } Returns the Document property of the current job.
Note: The document is the COMOS XML connector.
ComosQueryInterface.IOptions Options { get; } Returns the external options of the current job.
ComosQueryInterface.qeProgressState Returns the status of the progress bar.
ProgressState { get; }
IComosDProject Project { get; } Returns the current project.
IJobHelper ThisGlobal { get; } Returns itself.
IComosDWorkset Workset { get; } Returns the instance of the currently created workset.
XMLExecJob Currentjob { get; set; } Returns the started job and sets a job and thus all parameters
depending on it (e.g., document, options).
string ProgressText { get; set; } Returns and sets the text of the progress bar.
string XMLFileName { get; set; } Returns and sets the name of the processed XML file.
double GetProgressPercentage(int level) Returns the progress of the passed levels of the current pro‐
gress bar.
Permitted parameter values: 1, 2.
void SetProgressPercentage(int level, double Sets the progress of the passed levels of the progress bar.
value) Permitted parameter values: 1, 2 – level ; 0 to 100 – value
void CheckMessage(string msgText) Writes a text to the log file. Syntax:<check descrip‐
tion="<<msgText>>" />
XMLExecJob CreateNewJob() Creates a copy of the current job.
void OutputDebugString(string lpOutputString) Writes a text to the trace listener 'QueryX'. The associated
file is defined in the "Comos.exe.config" file.
Note: The Trace.Listener property is .NET-Standard.
ComosQueryInterface.IProgressBar Returns the current progress bar as an object.
ProgressBar()
IComosBaseObject ReportObject() Returns the ReportObject property of the current docu‐
ment.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 79
XML connectors
2.6 Extending an XML connector through a C# assembly
Methods
The following table describes the methods:
Method Description
void Export() Starts the export for the current query
void Import() Starts the import for the current query
Properties
The following table describes the properties:
Overview
You can use an assembly to adapt XML connectors in line with your requirements. The XML
adapter is used to process the COMOS and XML data both before and after the import or
export.
Platform Interfaces
80 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.7 User interface
Configure the PreAction method for actions that are to be performed before the connector
is called. Configure the PostAction method for actions that are to be performed after the
connector is called.
General
The Custom connector gives you a degree of control over pre/postprocessing.
This means you can exercise a degree of control over the XML connectors before and after
the import and export processes. For this, you implement the interface in the same class as
"ICodeProviderActions". Configure the XML connector via the "Assembly" tab. See also
chapter "ICodeProviderActions" interface (Page 77).
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 81
XML connectors
2.7 User interface
Overview
The user interface and functions of the "COMOS" tab are the same as those for a query.
You can use the "COMOS" tab to create new columns or edit the options of the query. It also
provides the navigation menu and all other tools of a query.
Click the "Search" button to check your previous entries. The information is evaluated.
You can find additional information on this topic in the "COMOS Platform Operation" manual,
keyword "Using queries".
Overview
The data of the XML file are shown in this tab. This is for viewing purposes.
Overview
In the "Mapping" tab you enter how the COMOS data should appear in the XML file.
Platform Interfaces
82 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.7 User interface
Control elements
Overview
You can use the "Assembly" tab of the configuration tool to load existing assemblies or create
a new assembly.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 83
XML connectors
2.7 User interface
Overview
The "Error" tab displays the errors that occur during manual compilation of the C# source code.
Overview
The "Extra" tab is for making additional settings for the column properties.
Platform Interfaces
84 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.7 User interface
These settings can be found in the table on the configuration tool's "Mapping" tab.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 85
XML connectors
2.7 User interface
You can find additional information on this topic in the "COMOS Platform Operation" manual,
keyword "Using queries".
Function
By default, the queries that are located directly below the XML template get their respective
COMOS start objects from the XML connector document. The queries subsequently pass their
row objects as COMOS objects to the queries that are located below them in the hierarchy.
You have the option of intervening in this sequence using a script.
The top queries directly below the XML template can call the following functions:
● "Master_Export"
● "Master_Import"
If there are master methods, they are called.
The following functions are available for all other levels:
● "<"QueryName">_ImportRow"
● "<"QueryName">_ExportRow"
This applies for each row of the running query. If there is a script method, it is called line-by-
line. If there is no script method, all underlying queries get the row object of the query currently
being executed as the start object.
Platform Interfaces
86 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.7 User interface
The CurrentJob
When the query is processed, the so-called CurrentJob runs. You can then query the following
from this object:
● Current query
● OrigCollection of COMOS objects
● XMLNodes at the XML document
New jobs
You have the possibility of creating and starting new jobs in the script:
● Type of the job object: "ComosQueryInterface.IXMLConnectorJob"
● Properties:
Job.QueryContainer = <query container>
Job.TopQuery = <ITopQuery>
Job.RootComosObject = <query StartObject>
Job.ComosObjects = <query OrigCollection>
Job.RootXMLNode = <RootNode for 'XML-Rows'>
Job.XMLNodes = <'XML-Rows'>
Job.RootXMLNodeCompare = <RootNode for 'XML-Rows' of compare
version>
Job.XMLNodesCompare = <'XML-Rows' of compare version>
There are two methods available for this:
● Job.Import
● Job.Export
Properties
Property Description
"QueryContainer" Corresponds to the objects in the interface that you edit in the
"Edit query container" and "New query container" dialogs.
This involves an object or base object that carries the actual
query. The XObjects for these objects are saved.
"TopQuery" Actual query. This parameter corresponds to the calculation
core, not the query browser.
"RootComosObject" Corresponds to the "Start Comos object" field in the user in‐
terface.
"ComosObjects" The COMOS collection that was determined and returned by
"TopQuery".
"RootXMLNode" Corresponds to the "Start XML node" field in the interface.
"XMLNodes" Corresponds in the user interface to the set of results in the
"XML" tab.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 87
XML connectors
2.7 User interface
Property Description
"RootXMLNodeCompare" and "XMLNodesCompare" Parameter for import only, when there is at least one XML
version. The parameters supply the XML node of the previous
version. This is important if you only want to edit the differen‐
ces from the previous version.
"Job.Import" and "Job.Export" These parameters start the execution of the job.
Example 1
This is how the standard case looks like in the script:
Sub Q1_ExportRow(ComosObj, XMLNode)
Set QSubs = CurrentJob.QueryContainer.EnObs("J")
For i = 1 To QSubs.Count
Set NJ = CreateNewJob()
NJ.QueryContainer = QSubs.Item(i)
NJ.RootComosObject = ComosObj
NJ.RootXMLNode = XMLNode
NJ.Export
Next
End Sub
Sub Q2_ImportRow(ComosObj, XMLNode, XmlNodeCompare)
Set QSubs = CurrentJob.QueryContainer.EnObs("J")
For i = 1 To QSubs.Count
Set NJ = CreateNewJob()
NJ.QueryContainer = QSubs.Item(i)
NJ.RootComosObject = ComosObj
NJ.RootXMLNode = XMLNode
NJ.RootXMLNodeCompare = XmlNodeCompare
NJ.Import
Platform Interfaces
88 Operating Manual, 04/2015, A5E32019975-AD
XML connectors
2.7 User interface
Next
End Sub
Script templates
The templates for script methods can be accessed via the "Source code templates" button.
Overview
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 89
XML connectors
2.7 User interface
Overview
Platform Interfaces
90 Operating Manual, 04/2015, A5E32019975-AD
Standard import "Blank XML" 3
3.1 Introduction
General
The standard import for XML data is specified for the import of XML data that were not COMOS
objects previously.
You can import these external data into COMOS and store them in the form of base or
engineering objects. See also chapters Opening the preset standard import (Page 91) and
Creating a new standard import (Page 91).
The table import function uses DOM ("MSXML.DOMDocument").
The data is first read into the action and displayed for checking on the screen. The import into
the database takes place in a second step, for example, as a unit of new COMOS objects.
You can control the importing process with a script. This script and all other details on a special
import process are stored in an archive and can be reused at any time.
Procedure
In the menu bar, select the "Extra > Standard import > XML blank" command.
See also chapter Configuring and carrying out a standard import (Page 92).
Procedure
1. Open the base project.
2. Select the "Base objects" tab in the Navigator.
3. Select the object under which you want to create the XML file.
4. Select the "New > New standard import > XML data" command in the context menu.
5. Double-click the newly created object.
The "Standard import: XML data" tab opens.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 91
Standard import "Blank XML"
3.5 Using saved settings for the import
See also
Configuring and carrying out a standard import (Page 92)
Requirement
The "XML blank" tab or the "Standard import: XML data" tab is open. See also chapters
Opening the preset standard import (Page 91) and Creating a new standard import (Page 91).
Procedure
1. Select a mode.
"Design mode" is set by default.
– If you want to make configuration settings via a script before importing data from an
XML file, click the "Design mode" button.
Click the "Open XML file" button and select the XML file. The corresponding XML code
is displayed in the lower field.
Specify the settings for how the XML data is to be handled in the script area in the form
of a VB script.
Save the settings of the design mode for the future import of XML data. See also chapter
Using saved settings for the import (Page 92).
– If you want to import data from an XML file and not make any changes to the default
settings in the process, click the "Run mode" button.
If the XML file field is empty or you want to change the field content, click the "Open
XML file" button and select the XML file.
2. To carry out the standard import of the XML file, click the "Execute" button.
Requirement
You have already made settings for an import. See also chapter Configuring and carrying out
a standard import (Page 92).
Procedure
To call up an import process with the stored settings again, double-click the import object in
the Navigator.
Platform Interfaces
92 Operating Manual, 04/2015, A5E32019975-AD
Standard import "Blank XML"
3.6 Allowing or prohibiting changes to import settings
Requirement
The "Standard import: XML data" or "XML blank" tab is open. See also chapter Configuring
and carrying out a standard import (Page 92).
Procedure
1. Click the "Administration" button in the "Standard import: XML data" tab.
– If you want to permit changes or storing, activate the "Allow" button.
– If you want to prohibit changes or storing, activate the "Prohibit" button.
– To specify detailed settings click the "Extended" button in the "Administration" window.
You can differentiate between operating options via the toolbar or the changing of input
values and carry out the settings.
2. Select one of the following options:
– To save the settings, click the "OK" or "Apply" buttons in the "Administration" window.
– To apply the settings permanently, click the "Save" button in the "Standard import: XML
data" or "XML blank" tab.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 93
Standard import "Blank XML"
3.6 Allowing or prohibiting changes to import settings
Platform Interfaces
94 Operating Manual, 04/2015, A5E32019975-AD
Standard import "Blank table" 4
4.1 Introduction
You can import external tables into COMOS and store the data of the tables in the form of
base objects or engineering objects. Access databases, Excel tables and text files are
supported.
The table import function uses ADO ("ADODB.Recordset).
Recommendation
Use Access databases as the import source if possible.
Procedure
In the menu bar, select the "Extra > Standard import > Blank table" command. See also chapter
Configuring and carrying out a standard import (Page 96).
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 95
Standard import "Blank table"
4.4 Configuring and carrying out a standard import
Procedure
1. Open the base project.
2. Go to the "Base objects" tab in the Navigator.
3. Select the object under which you want to create the table data.
4. Select the "New > New standard import > Table" command in the context menu.
5. Double-click the newly created object.
See also chapter Configuring and carrying out a standard import (Page 96).
Requirement
The "Blank table" tab or the "Standard import: Table" tab is open. See also chapters Opening
the preset standard import (Page 95) and Creating a new standard import (Page 96).
Procedure
1. Select a mode.
"Design mode" is set by default.
– If you want to make configuration settings via a script before importing table data, click
the "Design mode" button.
Select "Access", "Excel" or "Txt file" in the upper field. Click the "Open file" button and
select the file. See also chapter Import sources (Page 97).
Specify the settings on how the table data is to be handled in the script area in the form
of a VB script. See also chapter Script for import actions (Page 100).
Save the settings of the draft mode for the future import of table data using the "Save"
button. See also chapter .
– If you want to import data from a table and not make any changes to the default settings
in the process, click the "Run mode" button.
If the "Database" field is empty or you want to change the field content, click the "Open
file" button and select the file.
– If you want to specify whether to allow or prohibit the changing of import settings, click
the "Administration" button. See also chapter Using saved settings for the import
(Page 97).
2. To perform the standard import of the table data, click the "Execute" button.
Platform Interfaces
96 Operating Manual, 04/2015, A5E32019975-AD
Standard import "Blank table"
4.7 Import sources
Requirement
You have already made settings for an import. See also chapter Configuring and carrying out
a standard import (Page 96).
Procedure
To call up an import process with the stored settings again, double-click the import object in
the Navigator.
4.7.1 Access
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 97
Standard import "Blank table"
4.7 Import sources
4.7.2 Excel
Formatting
Excel spreadsheets must use a header row. The field names are entered in the header row.
If you select an Excel file, all Excel sheets of this file are offered for import. The worksheets
are described as "tables" in the import object.
The table or Excel sheet selected in each case is imported. You can only import the tables
one after the other.
Note that an error-free import of the data from Excel is only possible if the columns of the Excel
table are formatted (number, text) before the first input is made. Otherwise data can be lost
during the import. Excel uses formats of its own such as "General". This format is a function
that reacts to the inputs and formats the cells in different ways according to the situation.
Standardized software products such as SQL, ADO, and TrueDBGrid cannot process such
data.
Retrospective changes to the column definition have no effect. If you want to format an Excel
table subsequently, you must format each cell individually.
You can also import undefined Excel tables into Access and then open the Access database
in the import object.
Import format
● Import interface for Excel and text: Microsoft ActiveX Database Objects (ADO)
● Provider: Microsoft.Jet.OLEDB.4.0
● Definition of the ADO settings:
Registry "\HKEY_LOCAL_MACHINE\Software\Microsoft\Jet\4.0\Engines
\Text"
Or
Registry "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet
\4.0\Engines\Text"
● Key for the definition of the delimiter: Format
Default setting for the key value: CSVDelimited
The delimiter is determined by the registry key Format. If Format: CSVDelimited is
entered, the delimiter is a comma. The language of the operating system has no effect on the
delimiter.
The text files must be saved without a format.
Platform Interfaces
98 Operating Manual, 04/2015, A5E32019975-AD
Standard import "Blank table"
4.7 Import sources
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 99
Standard import "Blank table"
4.8 Script for import actions
Overview
Each script contains the following areas:
● "Global"
● "Init"
● "ImportRow"
● "Finish"
You can also add your own "Subs" or "Functions" to the script.
Components
Component Meaning
"Set RootObject = <Object>" <Object> represents any variable name and is filled with an object.
The objects in which the imported data is stored are created below this engi‐
neering object.
As a rule, the variable is defined in Global and can thus also be redefined in
one of the other script components.
"Set RootCObject = <Object>" Root object in the form of a base object.
The objects in which the imported data is stored are created below this base
object.
As a rule, the variable is defined in Global and can thus also be redefined in
one of the other script components.
Note that it is possible to simultaneously specify a root object for engineering
objects with the RootObject command and a root object for base objects with
the RootCObject command in one import operation. But only one project can
be opened. If engineering and base objects are created simultaneously with
the various Set commands, local base objects will be created in an engineering
project, for example.
Platform Interfaces
100 Operating Manual, 04/2015, A5E32019975-AD
Standard import "Blank table"
4.8 Script for import actions
Component Meaning
"Set <Object> = Reference object or reference command is Set RootObject
NewObject(<RelativeName>, <RelativeName>: Name and path defined relative to the root object. The lev‐
[<Description>])" els of the path are separated with the default delimiter.
Example "X|XY": In this case, a node "X" is searched for or created below the
root object, and an object with the name "XY" is searched for or created there.
<Description>: Optional; sets or overwrites the object description.
"Set <Object> = Reference object or reference command is Set RootCObject
NewCObject(<RelativeName>, <RelativeName> : Name and path defined relative to the root object. The
[<Description>])" levels of the path are separated with the default delimiter.
Example "X|XY": In this case, a node "X" node is searched for or created below
the root object, and an object with the name "XY" is searched for or created
there.
<Description>: Optional; sets or overwrites the object description.
"Set <Object> = Creates a new attribute and/or a new "Attributes" tab for a base object.
NewSpec(<CObject> , ● <CObject>: The base object for which new attributes are created.
<NestedName>, [<Description>])"
● <NestedName>: The NestedName is the combination of the name of the
"Attributes" tab and the name of the attribute separated by a dot. Example:
Chap1.Spec1 is the "Spec1" attribute in the "Chap1" tab.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 101
Standard import "Blank table"
4.8 Script for import actions
Component Meaning
"CNameForNewObject(<Index>) = Specifies a base object for the engineering object that makes up this node. The
<FullName>" base object must exist already, the base object could also have been created
already at an earlier point in time while the script was running.
● <Index>: Number of the level starting from the root object. In the example
"X|XY": The node "X" has index 1 and the object "XY" has index 2.
● <FullName>: Name and path of the base object relative to the project, e.g.,
"@U|Anl1".
As a rule, the variable is defined in Global and can thus also be redefined in
one of the other script components.
"If <...> Then A standard VBScript routine.
... Checks whether a condition has the value "True" or "False" in order to execute
Else one or more instructions conditionally.
...
End If"
"Select Case <...> A standard VBScript routine.
... The routine is activated when Case occurs.
End Select"
"For i = <...> To <...> A standard VBScript routine.
... This routine is run as often as specified.
Next"
"For Each <...> In <...> A standard VBScript routine.
... The routine is run as many times as there are members in this collection.
Next"
"Do <...> A standard VBScript routine.
... The routine is executed until the Do condition is fulfilled and there is a possibility
Loop" to exit.
"While <...> A standard VBScript routine.
... Same as Do ... Loop, but without a possibility to exit.
Wend"
See also
Opening the preset standard import (Page 95)
Procedure
1. Open the standard import. See also chapter Opening the preset standard import
(Page 95).
2. Click the "Help" button in the script area.
3. Double-click a component in the "Script components" tab in the "Script components,
declarations" window.
Platform Interfaces
102 Operating Manual, 04/2015, A5E32019975-AD
Standard import "Blank table"
4.8 Script for import actions
Result
The script text is applied. The commented marked as comments are not applied.
DLLs
The "Declarations" tab in the "Script components, declarations" window shows the functions
and properties of DLLs. A number of important DLLs are already entered in the list.
Applies to all DLLs:
You can use drag&drop to apply the last level (functions and properties) in each case to the
script.
In addition to the DLLs offered in the list, you can drag any other appropriate DLL into the script
field. The corresponding DLL is read in and its functions and properties are offered. The DLL
is not permanently saved.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 103
Standard import "Blank table"
4.9 Tab "Blank table"
4.8.5 Example
Button Description
"Navigate" Displays the object in the Navigator.
"Refresh" The special interface is updated.
Platform Interfaces
104 Operating Manual, 04/2015, A5E32019975-AD
Standard import "Blank table"
4.9 Tab "Blank table"
Button Description
"Save / Load" To save the object, click the button. If you click the arrow to the right of the button,
the following commands are displayed:
● "Save": Saves the object, including the archive
● "Save as": Duplicates the object, including the archive. The "Save as..."
window opens for this purpose:
● "Save to file...": Opens the file selection for the save operation
● "Load from file...": You overwrite the current archive.
● "Load from inheritance source": Determines the inheritance sources
"Properties" Displays the properties of engineering objects.
"Administration" Here, you specify to what extent the engineering object of the import may be
changed.
"Stop at error" The import stops. The extent to which COMOS data is created depends on the
import script. If anything was saved in the script up to this point, then this data
is imported.
Note: This setting is only taken into account in the case of syntax errors in the
script. If errors occur during creation, for example if a COMOS object is not
successfully created, this setting is not taken into account.
"Continue at error" For engineering objects, an attempt is made to perform the rest of the import.
"Design mode" The draft mode opens the corresponding interface. Here, you develop the rules,
which are also later saved in the archive.
"Run mode" The runtime mode is used to execute an import after concluding all preparatory
work.
Button Description
"Mark as comment" To mark as a comment, click in the desired line of script and then on this button.
"Remark comment" To cancel marking as comment, click in the desired line of script marked as
comment and then on this button.
"Increase indent" To increase the indent of a line, click in the desired line of script and then on
this button.
"Decrease indent" To decrease the indent of a line, click in the desired line of script and then on
this button.
"Execute" The import starts for the selected datasets.
"Cancel" Cancels the triggered import process. The extent to which COMOS data is
created depends on the import script. If you have saved the script up to this
point in time, this data is imported.
"Undo COMOS ob‐ All COMOS objects that are imported on a test basis in the draft mode are
jects" initially temporary. The temporary objects can be saved manually or are saved
automatically in specific situations, such as when the properties are opened.
For objects that have not already been saved, this function undoes all changes
that were created in the course of a test import. Newly created objects are
deleted.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 105
Standard import "Blank table"
4.9 Tab "Blank table"
Button Description
"Save COMOS ob‐ All COMOS objects that are imported on a test basis in the draft mode are
jects" initially temporary. The temporary objects are saved manually with this com‐
mand.
If you save objects using this method, you can no longer undo the changes
with this button.
"Apply example" A fully usable example for an import that can actually be run is called. All entries
made previously for the import are discarded.
Help Use this button to open the script help. See also chapter Script blocks
(Page 100).
Platform Interfaces
106 Operating Manual, 04/2015, A5E32019975-AD
Engineering projects 5
5.1 Importing a project
Requirement
● The project is imported from a second database.
● The hierarchy of the standard tables is identical.
Different hierarchical structures of standard tables can result in inconsistencies. In that
case, the "Object test" tab opens automatically.
Procedure
1. Select the "File > Open project" command in the menu bar.
2. Select the "Import" command from the context menu of a project.
3. In the "Import project" window, select the source database from which you want to import
a project.
4. Check whether you have the necessary rights for this operation for both databases.
5. Click "Next >".
6. In the "Import project" window, select the project you want to import.
7. In the "link with base project:" table, select the base project that is to be assigned for the
engineering project.
8. Click on the "Import" button.
See also chapter Exporting a project (Page 107).
Requirement
● The project is not linked to a base working layer.
● The project is exported to a second database.
Procedure
1. Select the "File > Open project" command in the menu bar.
2. Select a project in the upper list.
The "Open project" tab lists the projects in the upper list. The lower list contains the working
layers for which a separate "Export" function is available.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 107
Engineering projects
5.2 Exporting a project
Platform Interfaces
108 Operating Manual, 04/2015, A5E32019975-AD
Data exchange with NOXIE 6
6.1 Purpose of NOXIE
See also
Exchanging data via the NOXIE plugin (Page 109)
Structure of the generated XML file (Page 111)
Procedure
1. Select the command "Plugins > Basic > Native Object XML Import Export" on the menu
bar.
The "Native Object XML Import Export" tab opens.
2. Select one of the following options:
– To export, select the "Export" option in the "Options" control group.
– To import, select the "Import" option in the "Options" control group.
3. Click on the "..." button next to the "XML Import / Export file" field and select an XML file.
4. To select a directory, click on the "..." button in the "Document directory" field and select
the required directory.
COMOS automatically creates a document folder called "documents" parallel to the XML
file after the selection. The processed documents are saved or searched in this directory.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 109
Data exchange with NOXIE
6.2 Exchanging data via the NOXIE plugin
Result
Export:
● The XML file is created. The documents including external documents are collected in the
"documents" folder.
● When you send the XML file, please include the "documents" folder; if you do not, the
documents will be empty.
Import:
● All objects are created together below the selected node. The references are set
subsequently. A requirement is that the referenced object was also exported.
● Since all data is initially imported below a shared node, copy and move the units and
locations to the right positions.
See also
Purpose of NOXIE (Page 109)
Structure of the generated XML file (Page 111)
Platform Interfaces
110 Operating Manual, 04/2015, A5E32019975-AD
Data exchange with NOXIE
6.3 Structure of the generated XML file
Inherited objects
Inherited objects and objects below them are not exported or imported. However, since these
objects are required in certain cases by NOXIE, they are also contained in the XML file. They
are not counted during importing and exporting.
See also
Exchanging data via the NOXIE plugin (Page 109)
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 111
Data exchange with NOXIE
6.3 Structure of the generated XML file
Platform Interfaces
112 Operating Manual, 04/2015, A5E32019975-AD
COMOS document interface 7
7.1 Purpose of the CDI
Automated export
In the "COMOS document interface" (CDI) tab, you can automate the export of COMOS data
to Word and Excel documents. You can adapt the layout of these exported documents to the
corporate design, archive the exported documents with additional documents or pass on the
exported documents externally.
In addition, you can reimport data edited in Excel back to COMOS.
See also chapter Using a COMOS document interface (Page 114).
Exceptions
CDI cannot process DVM documents.
● CDI and DVM save changes at different times.
● CDI and DVM use a different hierarchy when accessing documents.
7.2 Requirements
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 113
COMOS document interface
7.3 Using a COMOS document interface
Workflow
The following list provides an overview of the steps you perform in order to export data from
COMOS to an Office document, edit it there, and, if necessary, reimport it back to COMOS:
1. Create the Office document in COMOS. See also chapter Creating an Office document
(Page 114).
2. If necessary, open the Office document and prepare it.
For Word documents, create the DocVariables. See also chapter Preparing Office
documents (Page 115).
3. To open the document interface, select the "Plugins > Basic > Document interface"
command in the menu bar. See also chapter Working in the "Document Interface" tab
(Page 116).
4. Use drag&drop to move the Office document to the "Document" field in the "Document
interface" tab.
5. Write the CDI script.
6. Check the result of the script in the preview window.
7. Save the script.
8. Close the "Document interface" tab.
9. Open the Office document.
This starts the export.
Excel
You can start a reimport to COMOS by closing the document.
Procedure
1. In the Navigator, select the object under which the document is to be located.
2. From the context menu, select the "New > General > New Document" command.
3. Enter a name and a description for the document in the properties of the document.
Platform Interfaces
114 Operating Manual, 04/2015, A5E32019975-AD
COMOS document interface
7.3 Using a COMOS document interface
4. Select one of the following entries from the "Type" list in the "General" tab:
– "Word"
– "Word document 2007"
– "Excel"
– "Excel table 2007"
5. Save your changes.
You can find additional information on this topic in the "COMOS Platform Operation" manual,
keyword "Working with documents".
Procedure
1. Open the Word document from COMOS.
2. In Microsoft Word, open the options and activate the field functions.
3. Enter the DocVariables in the areas of the document in which you later want to output the
COMOS data:
– Place the cursor at the desired location in the Word document.
– Click the "Quick Parts" button in the "Text" control group in the "Insert" tab and select
the menu command "Field".
– Select the list entry "Document Automation" and select "DocVariable" as field name.
– In the "New name" field, enter the name of the DocVariable.
All DocVariables must have unique names.
It is not possible to generate DocVariables dynamically during an export operation.
– Click "OK".
The DocVariable is pasted into the document at the location of the mouse cursor.
4. If the COMOS data is to be output in a table, create a table containing the desired columns
before inserting the DocVariables. Enter the DocVariables in the table cells.
5. Disable the display of field functions once again.
6. Save.
Note
The technical data of all components below a common owner is to be output. The
corresponding number of DocVariables is created in the Word document. If you then create
additional components below the owner and perform an import, the new components are not
taken into consideration in the import because the corresponding DocVariables are missing
in the Word document.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 115
COMOS document interface
7.3 Using a COMOS document interface
Procedure
1. Select the "Plugins > Basic > Document Interface" command in the menu bar.
The "Document Interface" tab opens.
2. Ensure that the "Document" field in the "Document interface" tab is filled.
This field contains the document link to the document into which the import will be made
or for which a script will be written.
– If the Document" field is empty, use drag&drop to move the document from the Navigator
into the "Document" field. You can only use Excel and Word documents.
– If the "Document" field is already filled, a document was already selected before the
command "Plugins > Basic > Document Interface" was called in the Navigator.
3. Set the desired behavior for each script.
– The toolbar contains the standard tools for script editors.
– You implement the CDI script Sub DoCDI() in the script editor. It defines which
COMOS data is to be written to the Office document and where it is to be output.
– You can call up all public properties and methods from
ComosXMLContent.SCGlobal in the script.
– As is the case for attributes, CDS scripts may not contain pipe characters ("|").
– In addition, all usual COMOS default script commands are available to the user. You
can find additional information on this topic in the "Class Documentation COMOS_dll"
manual.
– Example:
Platform Interfaces
116 Operating Manual, 04/2015, A5E32019975-AD
COMOS document interface
7.3 Using a COMOS document interface
4. To test the script entered in the script editor, click the "XML converter" button.
The result of the script is output in the preview window. Two view modes are available.
– Tree view:
– XML view:
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 117
COMOS document interface
7.3 Using a COMOS document interface
Result
Example
Platform Interfaces
118 Operating Manual, 04/2015, A5E32019975-AD
COMOS document interface
7.3 Using a COMOS document interface
Script
Result in Word
See also
Working in the "Document Interface" tab (Page 116)
7.3.5 Export
When you open an Office document, the script of the document is run automatically. The data
is exported from COMOS to the Office application.
You can edit the data in Office. Note that only Excel tables offer the option to reimport into
COMOS.
Export to Word
The content of the Word document changes when values are exported to Word.
Other changes, such as reformatting or the insertion of macros, are not made.
If the DocVariables addressed in the script do not exist in the Word document, no data is
exported.
The exported data is only displayed in the document if the field codes in the document are not
displayed.
Export to Excel
If the spreadsheet that is addressed in the script does not exist, it is created dynamically. The
data is written into the specified cells of this spreadsheet.
If the exported data include an attribute that is stored with a list, the cell in Excel is also stored
with a list. All values of the list are available.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 119
COMOS document interface
7.3 Using a COMOS document interface
If the exported data include an attribute of the type "Checkbox", a check is carried out whether
it is a check box or an option group. A check box or an option is then inserted in the table
accordingly.
7.3.6 Reimport
Method Content()
If the data were exported to Excel using the Content() method, the Excel file is reimported
to COMOS once you have closed it. The values edited in Excel are automatically written back
to the COMOS objects if the IO parameter of the Content() method has the value I.
7.3.7 Macros
Excel
When you open or close an Excel document, COMOS calls special macros for the COMOS
document interface, if these are implemented.
You can adapt the macros for every worksheet. In most cases, however, it is sufficient for the
macros to be available in ThisWorkbook and to recur in the worksheets.
The following macros are available:
OnBeforeCdiToDocument
Public Sub OnBeforeCdiToDocument(ByVal comosDocument As Object,
ByVal reportObject As Object)
This method is called when the document is opened and before COMOS starts the data
transfer.
Parameter Description
comosDocument IComosDDocument with DocumentType.ProgramName =
(IComosDDocument) "ComosIDocExcel.IDocExcel" is opened
reportObject Report object of the document
(IComsoBaseObject)
You can use this macro in order to prepare the data export from COMOS to Excel, for example,
if old contents are to be deleted.
OnAfterCdiToDocument
Public Sub OnAfterCdiToDocument(ByVal comosDocument As Object, ByVal
reportObject As Object)
Platform Interfaces
120 Operating Manual, 04/2015, A5E32019975-AD
COMOS document interface
7.3 Using a COMOS document interface
This macro is called after COMOS has transferred the data to the Excel workbook and before
the workbook is displayed.
Parameter Description
comosDocument IComosDDocument with DocumentType.ProgramName =
(IComosDDocument) "ComosIDocExcel.IDocExcel" is opened
reportObject Report object of the document
(IComsoBaseObject)
You use this macro in order to prepare the display of the document, for example, if empty
worksheets are to be hidden.
OnBeforeCdiToComos
Public Sub OnBeforeCdiToComos(ByVal comosDocument As Object, ByVal
reportObject As Object)
This method is called when the workbook is closed and before the data is transferred from the
workbook to COMOS. The workbook is no longer visible at this time.
Note
This macro is not supported in the ThisWorkbook code module.
Parameter Description
comosDocument IComosDDocument with DocumentType.ProgramName =
(IComosDDocument) "ComosIDocExcel.IDocExcel" is opened
reportObject
(IComsoBaseObject)
You can use this macro in order to prepare data for reimport, for example, if you delete content
of cells you do not want to reimport.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 121
COMOS document interface
7.4 Reference of the script functions
Method
As soon as the CDI plugin is initialized with a document, the following method appears in the
Editor window:
Sub DoCDI()
End Sub
This method is started automatically when evaluating the document if a CDI script was saved
in the document (in the "XValue(1)" of a hidden attribute). In this method the user can input
his own script.
All public properties and methods from "ComosXMLContent.SCGlobal" are made available
to the user in the script.
7.4.2 Properties
Overview
Platform Interfaces
122 Operating Manual, 04/2015, A5E32019975-AD
COMOS document interface
7.4 Reference of the script functions
General
Declaration Description
"Public Function ExcelABC() As String" Enables the conversion of a number into its equivalent as a
column name. This method can be helpful if you iterate col‐
lections via an index. You can thus determine the index of the
column name with the help of the "ExcelABC()" function.
General
Declaration Description
"Public Sub Content(ByVal DocPointer As Depending on "IOMode", data is exported from COMOS into
String, " Office, imported from Office into COMOS or exported and
" ByVal ComosObject As IComosBaseObject, " reimported using "Content()".
" ByVal PropName As String, " "Content()" can also be used for Word documents. How‐
ever, since these only support the exporting of data from CO‐
" ByVal PropParameter As Variant, "
MOS, the more simple "ContentFix()" function can also
" ByVal PhysUnitLabel As String, " be used for Word files.
" ByVal IOMode As String, "
" Optional ByVal AllValuesNumeric As
Boolean)"
Parameters
Parameter Description
"DocPointer" Specifies at which position in the document the value is to be written and/or from which
position the value is to be written back to COMOS.
● Excel:
Specify the spreadsheet and the cell here:
"Spreadsheet name!cell name", for example, "Spreadsheet1!B9".
If the specified spreadsheet does not yet exist, then it is created.
● Word:
Enter the name of the DocVariables here, for example, "volume".
It is not possible to write this data back to COMOS.
Unlike with Excel, the specified DocVariable is not created if it does not yet exist.
"ComosObject" The object from which the value of a property is to be queried or to which the value is
to be written back.
(normally the "Specification" SystemType, although other SystemTypes are possible).
"PropName" Determines which "ComosObject" property is to be read in or out. Either a property
or a function of the "ComosObject" is passed (for example, "Name",
"GetDisplayValue", "GetXValue", etc.).
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 123
COMOS document interface
7.4 Reference of the script functions
Parameter Description
"PropParameter" If a method was passed using the "PropName" method, a parameter can here be
specified for the queried property
For example, if you want to query "ComosObject.GetXValue(0)" via a CDI script,
this would look as follows:
Content "Table1!C2", ComosObject, "GetXValue", 0, "", "IO",
False
"PhysUnitLabel" Physical unit of the value returned by "PropName" in the form of a string.
The value is converted into the unit specified in "PhysUnitLabel" and then passed
to Excel as a number. This means that the cell gets the "Numeric" format. The value
can then be used in Excel for further calculations.
The specified unit must originate from the units group that was set at
"ComosObject". Otherwise, the current unit of the COMOS attribute is used auto‐
matically.
Empty string: No unit is passed.
"IOMode" Specifies in which direction the data is to be written:
● "I": Only supported by Excel. Data is written from Excel to COMOS
● "O": Supported by Excel and Word. Data is written from COMOS to Word or Excel.
● "IO" or "": A combination of "I" and "O". Only supported by Excel.
"AllValueNumeric" Optional parameter. Specifies if an attempt is to be made first of all to interpret the value
that is to be written as a numeric value.
This parameter is extremely relevant to Excel. For example, it may be that an alpha‐
numeric attribute only contains numbers. If you were to write these values to Excel as
a string, you would no longer be able to use them to make any calculations.
General
Declaration Description
"Public Sub ContentFix(ByVal DocPointer As This method is a simplified variant of the "Content()"
String, " method. It can only be used to export values from COMOS.
" ByVal vNewValue As Variant, " It is not possible to write back the values.
" Optional ByVal AllValuesNumeric As Since only the value that is to be output is passed but the
Boolean)" information about which object and which property this value
belongs to is missing, numeric attributes cannot be detected
automatically. Therefore, each value is formatted as a string
in Excel by default. Only through the last optional parameter
you have the option to force the formatting to be numeric.
Platform Interfaces
124 Operating Manual, 04/2015, A5E32019975-AD
COMOS document interface
7.4 Reference of the script functions
Parameter
Parameter Description
"DocPointer" In the same way as for "Content()", the position where the value is to be written to
within Office is specified here.
"vNewValue" The to be written value value.
"AllValuesNumeric" Specifies if the value should be interpreted as a number.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 125
COMOS document interface
7.4 Reference of the script functions
Platform Interfaces
126 Operating Manual, 04/2015, A5E32019975-AD
SAP interface 8
8.1 Requirements
See also
Overview (Page 127)
8.2 Overview
Requirement
● The requirements are known.
See section Requirements (Page 127).
Aim
The COMOS SAP interface makes two-way communication between COMOS and the
following SAP modules and its Business Objects possible:
● Maintenance
– Functional locations
– Equipment
● Material Management
– Materials
– Bills of materials
● Document Management
– Documents
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 127
SAP interface
8.2 Overview
● Classification
– Classes
– Mapping of objects
● Additional modules
– User-defined data communication
Administration
COMOS uses the following interface technologies from SAP:
● BAPI (Business Application Programming Interface)
BAPI is a standardized programming interface that allows you to access the business
objects of SAP.
● RFC (Remote Function Call).
The SAP interface of COMOS is customizable. You can specify which business objects or
RFCs you want to use.
See section Administering the SAP interface (Page 138).
Sequence
1. You have configured the SAP login.
See section Creating an SAP target system (Page 136).
2. Log in to SAP.
See section SAP Login (Page 129).
3. Select an XML connector for import or export.
See section Exporting or importing SAP Business Objects (Page 131).
See also
Architecture of the COMOS SAP Interface (Page 132)
Platform Interfaces
128 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.3 SAP Login
Requirement
● An SAP target system has been created.
A target system can also contain a user name and password for the login in addition to the
connection data. See section Creating an SAP target system (Page 136).
● You are familiar with the overview of the SAP interface.
See section Overview (Page 127).
Procedure
1. In the menu bar, select the "Plugins > SAP > SAP login" command.
See also chapter "SAP login" tab (Page 130).
2. Select an SAP target system from the list.
In the "Language" column, check whether the desired language is used for the SAP login.
3. Click the "Login" button.
The "SAP login data" window opens.
4. Enter your user name and password.
5. To save your data so that it is there for you the next time you want to log in to COMOS,
activate the "Remember login data for next COMOS session" option.
6. Click "OK".
As soon as you log in to the SAP system, the COMOS standard SAP interface starts data
exchange via this connection.
Result
The connection remains active until you log off again or close COMOS. The current connection
status is displayed in the COMOS status line.
The COMOS standard SAP interface uses this connection to exchange data for as long as the
connection remains active. This means that the connection takes priority over any locally
defined connections, e.g. an SAP adapter. In particular, the following areas are affected:
● SAP adapter (SAP XML connectors)
● SAP manufacturer device catalogs and the associated query extender class required to
create these catalogs (Comos.Sap.Xml.SapCatalogQueryExtender class)
● Script-based interface calls that involve the Comos.Sap.Xml.ComosSapExchanger class
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 129
SAP interface
8.3 SAP Login
Requirement
● You know the standard login to SAP.
See section Logging in to the SAP target system (Page 129).
● If you select the "Standard" login mode, the settings for Secure Network Communication
have to be activated in the login object properties on the "SAP" tab. See also chapter "SAP"
tab of the login objects (Page 134).
● If you select the "File saplogon.ini" login mode, the data has to exist in the "saplogon.ini"
file. See also chapter Establishing an SAP connection using the "saplogon.ini" file
(Page 148).
Procedure
1. In the menu bar, select the "Plugins > SAP > SAP login" command.
2. Ensure that your PKI card is inserted in the card reader.
3. Select an SAP target system from the list.
4. Click the "Login" button.
5. Enter the PIN for your card and click "OK".
Buttons
Button Description
"Log in" Use this button to log in to the selected SAP target system.
"Log out" Use this button to log out of the selected SAP target system.
"New" Use this button to open the "Properties" window where you can create a
new SAP target system. The new SAP target system is listed in the table.
"Properties" Use this button to open the "Properties" window for the selected SAP target
system.
"Current user" Use this button to show and hide the SAP target systems that have been
created only for the currently logged-in user.
"All users" Use this button to show and hide the SAP target systems that have been
created for all users.
Platform Interfaces
130 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.4 Exporting or importing SAP Business Objects
Requirement
● You are familiar with the use of XML connectors. See section XML connectors (Page 49).
SAP Business Objects are exported and imported using XML connectors.
● You are familiar with the overview of the SAP interface.
See section Overview (Page 127).
Procedure
Select one of the following options in the context menu of the XML connector:
● If you want to perform an export, select the "XML > Export" command.
● If you want to perform an import, select the "XML > Import" command.
See also
Architecture of the COMOS SAP Interface (Page 132)
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 131
SAP interface
8.5 Architecture of the COMOS SAP Interface
Sequence
1. At the COMOS end, an XML connector searches for a set of COMOS objects and generates
an XML file from this.
2. This XML file is passed to a DLL, the so-called SAP Broker.
Platform Interfaces
132 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.6 Administering login objects and SAP target systems
3. The SAP Broker communicates with the SAP standard interface and converts the XML file
into concrete function calls.
4. The results of the function calls are written to the XML file and transported to COMOS using
the XML connector.
&2026 6$3
1HW
:HDYHU
5)&V
%$3,V
Requirement
● You are familiar with the architecture of the COMOS SAP interface.
See section Architecture of the COMOS SAP Interface (Page 132).
● You are familiar with the requirements of the SAP interface.
See section Requirements (Page 138).
Login objects
In COMOS, a connection with SAP is established using login objects.
COMOS does not allow multiple users to use the same user and password data for a login
object when establishing a connection with SAP.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 133
SAP interface
8.6 Administering login objects and SAP target systems
Each user only sees the data that corresponds to the current COMOS user and can only
change this data. Similarly, only the user and password data of the current COMOS user is
used if the SAP system login takes place in the background.
The login objects are located on the "Base objects" tab under "@20 > C80 > Y30 > A10 Login
objects". See also chapter "SAP" tab of the login objects (Page 134).
See also section SAP Login (Page 129).
Note
Enterprise Server
The COMOS Enterprise Server does not support logging in with the PKI card.
Downward compatibility
Login objects at which user and password data was stored using earlier COMOS versions
continues to be supported as usual and is used to establish connections. If you act to save
your user and password data for this object while data that were saved with an earlier version
are still present, a prompt appears immediately informing you that the system will use the new
method to save the data.
You are asked if you want to perform this step. If you confirm this, the old data is deleted and
the new data is saved with the current method. From then on, user and password data for this
object will be stored separately for every user.
Requirement
● You are familiar managing login objects.
See section Administering login objects and SAP target systems (Page 133).
Platform Interfaces
134 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.6 Administering login objects and SAP target systems
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 135
SAP interface
8.6 Administering login objects and SAP target systems
Option Description
"Write back export parameters" When this option is activated, data is written back
to COMOS after an SAP export operation. If, for
example, you export documents from COMOS to
SAP that do not exist yet in SAP, SAP assigns a
new document number when it creates the docu‐
ments. If the option is activated, the document
number is written back to COMOS.
"Delete classification characteristics on import" This option applies to classification characteristics
that are defined as a list, for example tables or bills
of materials.
"Delete XML file after data exchange" When this option is activated, the XML file is de‐
leted automatically once the data has been ex‐
changed.
"Keep COMOS active during RFCs with GUI" When this option is activated, COMOS remains
active throughout your SAP session.
Procedure
1. In the menu bar, select the "Plugins > SAP > SAP login" command.
See also chapter "SAP login" tab (Page 130).
2. Click the "New" button in the "SAP login" tab.
3. Enter the properties of the SAP target system. See also chapter "Properties" window for
the SAP target system (Page 136).
The "Client", "Application server", and "System number" fields are mandatory.
4. Save your entries.
Requirement
● You are familiar with how a SAP target system is created.
See section Creating an SAP target system (Page 136).
Platform Interfaces
136 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.6 Administering login objects and SAP target systems
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 137
SAP interface
8.7 Administering the SAP interface
8.7.1 Requirements
Technical requirements
● SAP is installed on your desktop. COMOS supports the SAP GUI for Windows Version 6.4
and later with Unicode RFC libraries.
● You have access to the SAP server.
Platform Interfaces
138 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
See also
Administering login objects and SAP target systems (Page 133)
Adjustments
The following gives you an overview concerning the adjustments you have to conduct.
● Create RFC objects
See also chapter Create RFC objects (Page 139).
● Preparing SAP interface objects
See also chapter Preparing SAP interface objects (Page 140).
● Linking SAP interface objects to COMOS objects
See also chapter Linking SAP interface objects to COMOS objects (Page 141).
● Preparing XML connectors
See also chapter Preparing XML connectors (Page 142).
● Optional: Classification
See also chapter Displaying class characteristics from SAP in COMOS (Page 149)
● Import and export settings for the COMOS attributes (preparation is optional)
See also chapter Import and export settings for COMOS attributes (Page 151).
Procedure
1. Open the base objects of the base project.
2. Open the "@20 > C80 > Y30 > A20 > A70 > A10 Custom RFC object for maintenance
notification" node in the Navigator.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 139
SAP interface
8.7 Administering the SAP interface
Attributes
The SAP interface objects are provided with attributes that correspond to the RFC parameters
that are to be exchanged with SAP.
You can create the SAP interface objects under the "@20 > C80 > Y30 > A30 SAP interface
objects" node in the base project.
You can find templates for the required attributes and tabs of the SAP interface objects under
the "@40 > A10 > Y30 > M03 @Y SAP attributes" node.
Fields
Fields can either be import or export parameters. In COMOS, fields are represented by
attributes in the "General" tab.
The attribute name of a field in COMOS is "F_<SAP parameter name>". If, for example,
you want the parameter name for the "FUNCTLOCATION" field from SAP to be displayed in
COMOS, the corresponding attribute name is: "F_FUNCTLOCATION".
Structures
Structures can be just like import and export parameter fields. In COMOS, structures are
represented by a tab of their own. The name of the tab is "S_<SAP parameter name>". If,
for example, you want to display the "DATA_GENERAL" parameter from SAP in COMOS, the
name of the corresponding tab is "S_DATA_GENERAL".
Platform Interfaces
140 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
The fields of the structure are entered in the tab as attributes. The names of the attributes must
correspond to the field names in SAP. Note that you do not need to enter all fields, but only
those that you will use for data communication with SAP.
Tables
Table parameters are displayed in COMOS in exactly the same way as structures with their
own tab. The name of the tab is "T_<SAP parameter name>". If, for example, you want to
display the "MATERIALDESCRIPTION" table parameter from SAP in COMOS, the name of the
corresponding tab is "T_MATERIALDESCRIPTION".
Once you have created the tab, you create an attribute bearing the name of the RFC table
from SAP in the tab. This attribute can either be a list attribute or a query attribute.
A maximum of 5000 entries are created per list attribute. You can place multiple list attributes
in a tab; these must have the same name. After you have assigned the name for the first list
attribute, append the "%COUNTER" suffix to each additional list attribute, whereby
"COUNTER" represents a consecutive number beginning at 1. When you open the tab,
COMOS loads all data of the lists. The list is emptied during import.
Query attributes have the advantage that they are more dynamic than list attributes. However,
you only use query attributes for exporting data. Place just one query attribute per tab.
The column names of the RFC table from SAP are displayed in COMOS as column names of
the list or the query.
General
The SAP interface objects are used for data communication with SAP. For the COMOS user,
they are often not noticeable during everyday work. In order to enable this, you link the data
of the SAP interface objects to the data of the regular COMOS objects.
In order to conduct the linking you first have have to create the SAP interface object as an
element. See also chapter Creating a SAP interface object as an element (Page 141).
Procedure
1. Open the properties of the COMOS base object "@10 > A20 > A10 > A10 > A20 > A10 >
A10 Pump, general".
2. Select the "Elements" tab.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 141
SAP interface
8.7 Administering the SAP interface
3. Use drag&drop to move the "@20 > C80 > Y30 > A30 > A10 > A20 Pump" object from the
Navigator onto the "Elements" tab.
SAP interface object "A20 Pump" is created as an element below the COMOS base object
"A10 Pump, general".
4. Select one of the following entries for the element in the "Virtual" column:
– "Off"
– "1"
5. Save your entries.
See also chapter Creating a link (Page 142).
Procedure
1. Navigate to the "@20 > C80 > Y30 > A30 > A10 > A20 > S_DATA_GENERAL General
data" tab.
2. Open the properties of the "OBJ_WEIGHT Weight" attribute.
3. Click on the "Link" tab.
4. Select "By owner" from the "Link type" list.
5. In the "Attribute" field, enter the attribute for the COMOS object that you want to use to
create the link. In this example, this is the "Y00A00123 Weight" attribute of the "@10 > A20
> A10 > A10 > A20 > A10 > A10 Pump, general" COMOS object.
6. Select one of the following options as the link value:
– "Dynamic"
– "Full dynamic"
7. Confirm your settings.
Introduction
The SAP interface objects are converted into XML using the XML connectors that you collect
in an query beforehand. See also chapter Configuring an XML connector (Page 146).
Platform Interfaces
142 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
"RFCs" tab
The query that you use for assigning the SAP interface objects to the XML connectors must
contain a tab called "RFCs". You can use a template to create the tab. Take great care with
the spelling.
The "A02 @Y Settings for SAP query" tab is located below the "@40 > A20 > Y30 > M03 >
A10 > RFCs Tabs" node.
The following attributes are located on the tab:
Attribute Description
"Classification info" control group The attributes located in this control group contain settings for the
classification.
"RFC object" field The attribute must contain a reference (link) to the RFC object,
which you have prepared beforehand.
"Class" field Here, enter the name of the .NET class that is in charge for the
processing of the business objects.
"Assembly(.Net)" field Here, enter the name of the assembly in which the .NET class is
located.
.NET classes
The following provides you an overview of the .NET classes that you can use and the Business
Objects to which the .NET classes are assigned:
Ensure that you spell the .NET classes in precisely the same way as stated in the table.
"Filter" tab
Add the "Filter" tab to import the query. Via the tab, you can limit the import of the business
objects with the help of RFC parameters.
You can only create tables and fields as attributes in the "Standard filter" tab: The syntax of
the attributes corresponds to the syntax of the attributes at the SAP interface objects.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 143
SAP interface
8.7 Administering the SAP interface
SAP adapters
SAP adapters are XML connectors which have been configured for the COMOS standard SAP
interface.
Requirement
Several queries of the same BOType are located below the SAP adapter.
Procedure
1. Click on the "XML > Configure XML connector" list item in the context menu of the SAP
adapter.
2. Open the "Assignment" tab.
You will see an operation for generating part of the XML file in the "XML collection" field.
3. In the "XML collection" field, add the "GroupID" attribute to the "/BOGroup[@Type
="<BOType>"]/BO" instruction.
Structure the instruction as follows: "/BOGroup[@Type ="<BOType>" and
@GroupID="<unique name>"]/BO".
For example, it makes sense to use the name of the relevant query as the value of the
"GroupID" attribute.
4. Select another query from the "Query" list.
Platform Interfaces
144 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
Result
You can transfer several queries of the same BOType below an SAP adapter into an XML file.
Procedure
1. Open the corresponding query.
2. Drag a start object into the "Start object(s)" field and an SAP interface object of the desired
type into the "Base object(s)" field.
3. Save the setting.
See also chapter Adding the query to the XML connector (Page 145).
Requirement
You have collected the SAP interface objects using the query. See also chapter Collecting
SAP interface objects in a query (Page 145).
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 145
SAP interface
8.7 Administering the SAP interface
Procedure
1. Open the "Documents" tab in the Navigator.
2. Select the "New > A10 XML connector document" command in the context menu of the
"Enterprise Server XML connectors" document group.
3. Select the "XML document" tab in the properties of the new document.
4. Use drag&drop to move the XML connector template into the "Template" field.
5. Select the "Attributes > SAP" tab and enter the connection data for the SAP server here.
See also chapter "SAP" tab of the login objects (Page 134).
6. Select the "Attributes > XML" tab and enter the data. See also chapter "General > XML"
tab (Page 146).
Control elements
Requirement
You have prepared the XML connector. See also chapter Preparing XML connectors
(Page 142).
Platform Interfaces
146 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
Procedure
1. Select the "XML > Configure XML connector" command in the context menu of the XML
connector.
The query that you have added to the XML connector and the associated XML structure
are displayed.
2. Configure the following three columns of the query:
– "SAPID"
– "Parameter"
– "SystemUID"
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 147
SAP interface
8.7 Administering the SAP interface
Setting options
1. Select the "Options" command in the context menu of any column of the query.
2. Select the "MotionX" tab.
3. In the "XML mapping" column, enter the type you stated in the "XML collection" field in the
"Assignment" tab.
With this entry you ensure that, when the XML connector is tested, each target object is written
to a "BO" element that is within a "BOGroup" element in the XML schema.
Platform Interfaces
148 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
Procedure
1. Open the "Attributes > SAP" tab in the properties of the SAP adapter.
2. Select the system description of the required SAP system from the "System description"
list.
3. Select the "saplogon.ini file" entry from the "Login mode" list.
If the login is to be carried out using a PKI card, ensure that the information about the Secure
Network Communication is also contained in the "saplogon.ini" file.
4. Save your changes.
Classification
SAP offers you the option of assigning various classes to business objects. The business
objects get additional characteristics in this way.
In order for you to be able to exchange the classification data with COMOS, you need to create
a tab for each desired class in COMOS that bears the name of the class.
Tab designations
The tab you require for data communication in COMOS must have the CL_ prefix.
Example
The "PUMP" tab from SAP must be named "CL_PUMP" in COMOS.
Attribute
Each SAP class comprises a series of characteristics. In order to exchange characteristics
between SAP and COMOS, you create an attribute for each characteristic in the tab that you
have created in COMOS for data communication. The attribute must have the same name as
the characteristic from SAP.
Once you have created the tab in COMOS, you assign the tab to an SAP interface object.
List attributes
A class characteristic in SAP corresponds to an attribute on a class tab of SAP interface objects
in COMOS.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 149
SAP interface
8.7 Administering the SAP interface
Procedure
1. Open the properties of an SAP interface object.
2. Open the "Attributes" tab and the lower-level tab on which you want to create a list attribute.
3. Create a list attribute.
You can find additional information on this topic in the "COMOS Platform Operation"
manual, keyword "Working in list attributes".
4. Create a column named "VALUE0". If you want to display intervals, create an additional
column named "VALUE1". "VALUE0" displays the lower value, "VALUE1" the higher value.
If you have created two columns, however, it is only possible to enter data in the "VALUE0"
column or in neither column.
Each line in the list corresponds to a characteristic value in SAP.
Result
SAP characteristics with a multiple evaluation are displayed in the created list.
Export
Create a class type attribute named "CLI_CLASSTYPE" in the tab of the class.
The class type is read directly from the class tab when exporting.
If there is no class type attribute on the class tab, the class type is read from the "RFCs" tab
of the query.
Platform Interfaces
150 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
Import
1. Delete the value for the "CLASSTYPE_IMP" parameter for the
"BAPI_OBJCL_GETCLASSES" class.
Classes from all class types are returned, including information on which class type a class
belongs to.
2. Create an attribute named "GETCLASSES_CLASSTYPECOLUMN" in the "RFCs" tab for
the RFC object.
3. In the attribute you have created, enter a value for the name of the table column that
contains the class types after the corresponding RFC call.
4. Enter the "#ClassTypeColumn" reference parameter for the "CLASSTYPE" parameter of
the "BAPI_OBJCL_GETDETAIL" function module.
Procedure
1. Open the properties of the query that you prepared.
2. Open the "RFCs" tab.
3. Select from the "Object table" list the name of the object table that you require for the
classification.
4. Select from the "Class type" list the type of class that you require for the classification.
On export, the class type is only evaluated if this attribute is not available on the class tab
of the interface object.
When an import is performed, the class type is only evaluated if the
"GETCLASSES_CLASSTYPECOLUM" attribute is not defined in the "RFCs" tab of the RFC
object.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 151
SAP interface
8.7 Administering the SAP interface
<FlowDirection>
You specify the direction of data communication between COMOS and SAP using the
<FlowDirection> element.
● Default: Element empty; data flows in both directions.
● "IN": the data flows from SAP to COMOS.
● "OUT": the data flow from COMOS to SAP.
● "NONE": No data flow.
<Unit>
In COMOS, you can assign units to numeric attributes. For example, you can assign the unit
grams, kilogram, ton, etc., to the Weight attribute.
In order to assign a unit to an attribute, select a unit group and a unit in the attribute properties.
When working with the attribute you can change the unit shown within the scope of the group
and, for example, switch from kilograms to grams.
The <Unit> element exchanges the attribute value along with your desired unit with SAP and
converts it. For this, you fill the element with the name of the desired unit.
The unit must be a component of the specified unit group.
<Type>
To format attribute values from COMOS for data communication with SAP in a particular way,
you use the <Type> element.
Example: The attribute for the date in COMOS contains the date as well as the time of day. In
SAP, the date and time of day are managed separately.
With the help of the <Type> element, you specify the format for the attribute values to be
exchanged with SAP.
Overview
You can set the following values in the <Type> element:
Value Description
Character The attribute value from COMOS is treated as a character string.
Numeric The attribute value from COMOS is interpreted as a number.
Currency The attribute value from COMOS is interpreted as a number and as a currency at
the same time.
Date The attribute value from COMOS is interpreted as an SAP date in the format
YYYYMMDD.
Time The attribute value from COMOS is interpreted as an SAP time in the format
HHMMSS.
Platform Interfaces
152 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
If you do not use the <Type> element, standard values are selected:
● For attributes of the "Edit field" type
– (Number): Numeric
– (Text or alphanumeric): Character
● For attributes of the Date type: Date
<ComosSAPInterface>
The XML base element must always have the name ComosSAPInterface.
<Login>
The <Login> element is located directly below the base element and contains five sub-
elements:
Element Description
<Application> Contains the IP address of the SAP Application Server.
<Client> Contains the SAP Client ID.
<Language> Contains the login language code.
<SystemNumber> Contains the SAP system number.
<User> Contains the SAP user name.
<Context>
The Context element contains general information on data communication with SAP. It
comprises the following sub-elements and attributes:
Element Description
<Timestamp> Contains the date and time of the data communication with SAP.
<Project> Contains the name of the project in which the data communication took place.
<WorkingLayer> This element and the associated attributes are only created if the data communication
took place in a COMOS working layer. The SystemFullName attribute contains the
SystemFullName of the working layer in which the exchange took place. The ID attribute
contains the identification number of the working layer.
<StartObject> Contains the reference object for data communication with SAP. This is usually the XML
connector.
<BOGroup>
The <BOGroup> element is used to group several several business objects (BOs) of the same
type that will be processed with the same SAP function modules.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 153
SAP interface
8.7 Administering the SAP interface
The XML schema must include an element with the name BOGroup for each different BOType
that is to be exchanged.
Attribute Description
Type Contains the business object type.
Assembly Contains the name of the assembly that contains the class for the processing of the
BOGroup element.
Class Contains the complete name of the class for the processing of the BOGroup element.
GroupID Contains a value that serves to distinguish between several BOGroup nodes of the same
type within an XML file.
<RFCS>
The BOGroup element contains the RFCS sub-element. The content of the RFCS element is
based in the "RFCs" tab of the RFC object.
The RFCS element contains a <RFC> sub-element for each RFC that is used during the data
communication with SAP:
Attribute/Element Description
Name attribute Contains the name of the RFC.
Type attribute Contains the type of the RFC.
RFC element Contains additional sub-elements: <Import><Export><Table>.
Import parameters are grouped together below the <Import> element.
Export parameters and table parameters are grouped together below the <Export> and
<Table> elements respectively.
Within these sub-elements, there are additional Parameter sub-elements that contain the
parameters the SAP interface needs for the data communication.
<BOGroupParam>
The BOGroupParam element contains the RFC parameters required for the import. The values
of these parameters are located in the "RFCs" tab of the query.
Element Description
<Fields> For each field parameter, the Fields element contains a Field element with a
Attribut Name that contains the name of the field, and a Attribut Value that con‐
tains the value of the field.
<Structures> The Structures element contains sub-elements with the name Structure. The
Structure sub-element contains a sub-element with the Namen Field for each element
in the structure.
<Tables> The Tables element contains sub-elements with the name Table. The Table sub-ele‐
ment contains a Row element for each row in the table and a Field element for each field
in the row.
Platform Interfaces
154 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
<BO>
The BOGroup element contains a BO sub-element for each Business Object that is imported
or exported via the SAP interface. The BO sub-element contains the attributes SAPID and
Status.
● The SAPID attribute contains the identification number of the business object that was
imported or exported via the SAP interface.
● The Status attribute is set after the import or export.
● <Parameters>
The Parameters sub-element contains a description of the parameters that are required
for the RFC calls pertaining to each business object. It contains the following three sub-
elements:
Element Description
<Fields> For each field parameter, there is a Field ele‐
ment in the Fields element with a Attribut
Name that contains the name of the field, and a
Attribut Value that contains the value of the
field.
<Structures> The Structures element contains sub-ele‐
ments with the name Structure. The
Structure sub-element contains a sub-ele‐
ment with the Namen Field for each element
in the structure.
<Tables> The Tables element contains sub-elements
with the name Table. The Table sub-element
contains a Row element for each row in the table
and a Field element for each field in the row.
● <Return>
The Return sub-element is created after the exchange of data and contains information
on the progress of the export or import operation.
An RFC sub-element is created for each RFC called for the corresponding business object.
The element contains the following attributes:
Attribute Description
Name Contains the name of the RFC.
Type Contains the type of the RFC.
DateTime Contains information on the time of the RFC call.
Status Contains information on the success or failure of
the RFC call. The data that is displayed within
the attribute depends on the details that you en‐
tered in the "RFCs" tab of the RFC object.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 155
SAP interface
8.7 Administering the SAP interface
Requirement
The "Show file" option is deactivated during data communication. If this option is activated, the
XML file with the data returned by SAP is not deleted, as it is needed for display purposes.
Procedure
1. Open the base project.
2. Select the "Documents" tab in the Navigator.
3. Select an SAP adapter.
4. Open the properties of the adapter.
5. Select the "Attributes > SAP" tab.
6. Activate the "Delete XML file after exchange" option.
Result
The XML file generated is deleted automatically after every data exchange.
8.7.5.1 Introduction
Data exchange
COMOS supports data communication with the SAP "Maintenance" module.
You can implement data communication in other areas of the "Maintenance" module on the
basis of the "Custom" user-defined BOType.
See also
Functional locations (Page 157)
Equipment (Page 159)
Platform Interfaces
156 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
Export sequence
Import sequence
"RFCs" tab
You configure the "RFCs" tab of an RFC object in order to prepare the export and import for
functional locations.
This tab has already been prepared for you in the database. It is located in the Navigator under
"@20 > C80 > Y30 > A20 > A10 > A10 > RFCs Functional location".
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 157
SAP interface
8.7 Administering the SAP interface
Attribute Description
"CHECKEXISTENCE_CHECKFIELD You use the "CHECKEXISTENCE_CHECKFIELD" attribute to define the RFC
Check field" parameter of the "CHECKEXISTENCE" RFC that specifies whether a particular
functional location already exists. The parameter can be a field parameter or a
field of a structure parameter. For a field of a structure parameter, you enter the
parameter name and field name separated by a dot in the "CHECKFIELD" field.
Example: "DATA_SPECIFIC_EXP.STRIND"
"CHECKEXISTENCE_CHECKVALUE You use the "CHECKEXISTENCE_CHECKVALUE" attribute to specify the return
Check value" value that represents an existing functional location. If you want every non-empty
return value to be interpreted as a success, enter the "#NotEmpty" value.
Attribute Description
"GETOBJECTS_OBJECTSIDCOLUMN The "GETOBJECTS" RFC returns a list of functional locations in table format. In
Objects ID column" the "GETOBJECTS_OBJECTSIDCOLUMN" attribute, you enter the name of the
table column that contains the IDs of the objects. "ALLOCLIST.OBJECT" exam‐
ple. "ALLOCLIST" stands for the table name and "OBJECT" for the column name.
The individual IDs of the functional locations can be used in the following RFCs
using the "#ObjectIdColumn" entry in the "Ref. parameter" column. This means
that the return parameter of an RFC can be used as the input parameter in an‐
other RFC. Example: "GETOBJECTS_OBJECTSIDCOLUMN" has the value
"ALLOCLIST.OBJECT".
For each object ID which the RFC GetObjects puts out, the RFC ReadStandard‐
Params is called once. By entering the "#ObjectIdColumn" label in the Ref. Pa‐
rameter column of the "FUNCTLOCATION" parameter, the current object ID for
the "FUNCTLOCATION" parameter is used in each case when the RFC is called.
"READSTANDARDPARAMS_OWNER‐ You use the "READSTANDARDPARAMS_OWNERID" attribute to specify that
ID Read standard parameters RFC" the functional locations will be created in the correct order in COMOS during the
import operation. In the attribute, you enter the RFC parameter that contains the
higher-level functional location. The parameter can be a field parameter or a
structure parameter. Example: "DATA_SPECIFIC.SUPFLOC." in the "OWNER‐
ID" field
"GETCLASSES_CLASSIDCOLUMN The "GETCLASSES" RFC type provides a table with all classes to which a func‐
Class ID column" tional location belongs. You use the "GETCLASSES_CLASSIDCOLUMN" attrib‐
ute to specify which table column contains the class names.
Example: "ALLOCLIST.CLASSNUM." in the "CLASSIDCOLUMN" field
You can use the returned class names as input parameters in subsequent func‐
tion modules later in the import procedure using the "#ClassIdColumn" entry. For
this, you enter "#ClassIdColumn" in the "Ref. Parameter" column of the param‐
eter.
Platform Interfaces
158 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
Procedure
1. Open the properties of the query.
2. Select the "Attributes > RFCs" tab.
3. Configure the attributes of the "RFCs" tab.
Connect the query with the corresponding XML connector.
4. Select the "XML > Configure XML connector" command in the context menu of the XML
connector.
5. Select the "Assignment" tab.
6. Enter the following value in the "XML collection" field:
"/BOGroup[@Type ="FunctionalLocation"]/BO"
See also
Creating an XML connector (Page 146)
8.7.5.3 Equipment
Export sequence
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 159
SAP interface
8.7 Administering the SAP interface
Import sequence
"RFCs" tab
In order to prepare the export or import of the equipment, you must first create the "RFCs" tab
at an RFC object. See also chapters Create RFC objects (Page 139) and Type mapping of
the RFC object (Page 171).
This tab has already been prepared for you in the database. It is located in the Navigator under
"@20 > C80 > Y30 > A20 > A20 > A10 > RFCs Equipment".
Procedure
1. Open the properties of the query.
2. Select the "Attributes > RFCs" tab.
3. Configure the attributes.
Connect the query with the corresponding XML connector.
4. Select the "XML > Configure XML connector" command in the context menu of the XML
connector.
5. Select the "Assignment" tab.
6. Enter the following value in the "XML collection" field:
"/BOGroup[@Type ="Equipment"]/BO".
Platform Interfaces
160 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
8.7.6.1 Introduction
Data exchange
The database provides examples of exchanging materials and bills of materials. You can
implement data communication in other areas of the Material Management module via the
user-defined business object type ("Custom").
8.7.6.2 Materials
Export sequence
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 161
SAP interface
8.7 Administering the SAP interface
Import sequence
"RFCs" tab
In order to prepare the export or import for materials, you first create the "RFCs" tab of the
RFC object.
A tab has already been prepared in the database. You can find it in the Navigator in the "Base
objects" tab under "@20 > C80 > Y30 > A20 > A40 > A10 > RFCs Materials".
Attribute Description
"GETSAPID_OBJECTSIDCOLUMN SAP ID When a new material is to be created in SAP, then first of all an RFC to query
Column" a new material number is called. The "GETSAPID_OBJECTSIDCOLUMN"
attribute must contain the name of the parameter that contains the returned
material number. The parameter can be a field parameter, the field of a
structure or the column of a table. If the parameter is the column of a table,
the first column entry is used. If the parameter involves a structure field or a
table column, you specify the parameter name and the field name separated
by a dot.
Example: "MATERIAL_NUMBER.MATERIAL." in the "SAP ID Column" field
"SAVEDATA_ADDPARAM SAP ID Parame‐ In the "SAP ID parameter" attribute, enter the name of the parameter that
ter" contains the material number of the material to be saved, e.g. "HEADDA‐
TA.MATERIAL".
Platform Interfaces
162 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
Attribute Description
"GETOBJECTS_OBJECTSIDCOLUMN Ob‐ The "GETOBJECTS" RFC provides you with a list of materials in table
jects ID column" format. You can enter the name of the table column that contains the ma‐
terial numbers in the "GETOBJECTS_OBJECTSIDCOLUMN" attribute.
Example: "MATNRLIST.MATERIAL." in the "Objects ID column" field
You can reference the object IDs in the SAP function modules using the
"#ObjectIdColumn" entry. For this, you enter "#ObjectIdColumn" in the
"Ref. Parameter" column of the parameter.
Result: The object IDs are used as input parameters in the function com‐
ponent.
"GETCLASSES_CLASSIDCOLUMN Class ID The "GETCLASSES" RFC supplies a table with classes to which a material
column" belongs. You use the "GETCLASSES_CLASSIDCOLUMN" attribute to
specify which table column contains the class names, e.g., "ALLO‐
CLIST.CLASSNUM".
You can use the returned class names as input parameters in function
modules later on in the import procedure using the "#ClassIdColumn" en‐
try. For this, you enter "#ClassIdColumn" in the "Ref. Parameter" column
of the parameter.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 163
SAP interface
8.7 Administering the SAP interface
Procedure
1. Open the properties of the query.
2. Select the "Attributes > Settings" tab.
3. Configure the attributes.
Once you have configured the attributes, connect the query with the corresponding XML
connector.
4. Select the "XML > Configure XML connector" command in the context menu of the XML
connector.
5. Select the "Assignment" tab.
6. Enter the following path in the "XML collection" field:
"/BOGroup[@Type ="Material"]/BO"
Sequence
The database contains an SAP example for exporting bills of materials.
Only export operations are supported for Bill of Materials.
Platform Interfaces
164 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
"RFCs" tab
You first have to create the "RFCs" tab of the RFC object to prepare the export operation for
bills of materials.
A tab has already been prepared for you in the database. You can find it in the Navigator in
the "Base objects" tab under "@40 > A20 > Y30 > M03 > A10 > RFCs > A01 > B01 > C02
BOM".
Procedure
1. Open the properties of the query.
2. Select the "Attributes > Settings for SAP queries" tab.
3. Configure the attributes.
Connect the query with the corresponding XML connector.
4. Select the "XML > Configure XML connector" command in the context menu of the XML
connector.
You also have the option of creating a new XML connector.
5. Select the "Assignment" tab in the configuration tool.
6. Enter the following path in the "XML collection" field:
"/BOGroup[@Type ="BOM"]/BO"
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 165
SAP interface
8.7 Administering the SAP interface
8.7.7.1 Introduction
Export
You can use the COMOS SAP Interface to exchange documents between COMOS and SAP.
Only exporting is supported.
Sequence
"RFCs" tab
In order to prepare the export of documents, create the "RFCs" tab of the RFC object for a
COMOS object.
This tab has already been prepared for you in the database. You can find it in the Navigator
in the "Base objects" tab under "@20 > C80 > Y30 > A20 > A30 > A10 > RFCs Document".
Platform Interfaces
166 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
Procedure
1. Open the properties of the query.
2. Select the "Attributes > Settings for SAP queries" tab.
3. Configure the attributes.
Connect the query with the XML connector. You also have the option of creating a new
XML connector.
4. Select the "XML > Configure XML connector" command in the context menu of the XML
connector.
5. Click the "Assignment" tab.
6. Enter the following path in the "XML connection" field:
"/BOGroup[@Type ="Document"]/BO"
Attribute Description
"CHECKEXISTENCE_CHECKFIELD Check You use the "CHECKEXISTENCE_CHECKFIELD" attribute to define the
field" parameter of the "CHECKEXISTENCE" RFC that specifies whether a
particular document already exists. The parameter can involve a field
parameter or an individual field of a structure parameter. If a structure
parameter is involved, enter the parameter name and field name sepa‐
rated by a dot.
"CHECKEXISTENCE_CHECKVALUE Check val‐ You use the "CHECKEXISTENCE_CHECKVALUE" attribute to specify
ue" the return value that represents an existing document. If you want every
non-empty return value to be interpreted as a success, enter the "#NotE‐
mpty" value in the "Check value" field.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 167
SAP interface
8.7 Administering the SAP interface
8.7.8.1 Introduction
Procedure
1. In the base data, open the "@99 > A30 > M00 > A10 > A10 SAP catalog" object.
2. Select the "New > New base object" command in the context menu.
3. Select the "Attributes > SAP" tab.
4. Enter the login data for the connection to the SAP system.
5. Select the "Attributes > Class" tab.
6. Enter "Comos.Sap.Xml.SapCatalogConnection" in the "Used class" field.
This component is used for the following tasks:
– Creating a connection with the manufacturer device catalog.
– Downloading materials
– Performing a conversion from the XML format of the SAP interface to the XML format
of the manufacturer device selection.
The "Program path" field remains blank.
7. Select the "Attributes > Standard filter" tab.
Platform Interfaces
168 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
8. Specify the selection criteria of the devices that are to be downloaded. This involves filter
parameters, such as those already offered by the SAP interface.
9. Select the "Attributes > General" tab.
10.Drag&drop an SAP interface base object to the "Reference SAP interface object" field.
From this object, the necessary information for mapping an XML file in the format of the
SAP interface is converted into the COMOS internal format of the manufacturer device
selection.
Procedure
1. Open the "Elements" tab in the properties of the SAP catalog object.
2. Navigate to the "@20 > A70 > Y10 > M03 > A10 Query: SAP manufacturer device catalog"
object in the base data.
3. Use drag&drop to move the query onto the "Elements" tab of the catalog object.
Result
The query is created under the manufacturer device catalog.
Overview
Command Description
"Import data from SAP" This entry opens a connection to SAP with the connection data defined for the SAP
catalog object. The RFCs also defined using the catalog object are called using the
standard SAP interface. The called XML mapping is then reevaluated.
"Refresh mapping" This entry refreshes the assignment of the data retrieved from SAP in XML format to
the assignment of XML data for the manufacturer device selection and evaluates it
again. No new data is called from SAP. Changes to the SAP interface base object are
taken into consideration.
"Generate XML" Generates an XML file in the format for the manufacturer device selection from all
imported manufacturer devices.
"Generate XML for selection" Generates an XML file in the format for the manufacturer device selection from the
manufacturer devices selected in the query.
"Restore last selection" Marks the manufacturer devices that were selected during the last generation of the
manufacturer device XML file in the query.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 169
SAP interface
8.7 Administering the SAP interface
Procedure
1. Open the "A10 query: SAP manufacturer device catalog" query you have created under
the manufacturer device catalog. See also chapter Defining a query (Page 169).
2. Open the context menu of a column in the query.
3. Select the "Import data from SAP" command.
4. Enter your user data.
An XML file containing all manufacturer devices from SAP is generated in the interface
format.
5. Select the "Generate XML" command in the context menu.
An XML file is generated in the format for the manufacturer device selection from all
imported manufacturer devices.
If you only want to generate an XML file from the manufacturer devices selected in the
query, select the "Generate XML for selection" command.
6. Confirm your entries.
Result
The manufacturer devices from SAP are saved in the SAP catalog object. You can use the
catalog via the standard user interface for device selection. You can find additional information
on this topic in the "EI&C Administration" manual, keyword "Configuring the "Device selection
(product data)" dialog".
Assignment sequence
1. A search is performed for SAP-related attributes at the SAP interface base object. The base
objects have a prefix such as "F_ " in the "General" tab or in a tab with the "S_", "T_", or
"CL_" prefix.
2. These attributes are checked for a "By owner" type link. If such a link is present, it is used
for assigning the corresponding value in the XML document of the standard SAP interface
to the value in the XML document of the manufacturer device selection. The assignment
follows the behavior of the standard SAP interface.
3. If an attribute has settings for the flow direction, exchange type, or unit, these are also taken
into consideration.
Platform Interfaces
170 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
Parameter
You enter the selected RFCs as well as the associated parameters in the "RFCs" tab.
Catalog attributes
You can also create the "RFCs" tab with the help of catalog attributes. Catalog attributes are
templates that speed up the creation of attributes and tabs. You can find the catalog attributes
for the COMOS SAP interface in the base objects under the "@40 > A20 > Y30 > M03 SAP
tabs" node.
Types
The following gives you an overview of the various types:
Type Assignment
FunctionalLocation Functional location
Equipment Equipment
BOM Bill of materials
Material Material
Documents Document
Custom User-defined
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 171
SAP interface
8.7 Administering the SAP interface
Overview
The following gives you an overview of settings that you make for the attributes in the "RFCs"
tab:
Ref. Parameter
RFC parameters often have different names although they have the same structure. As a rule,
it is superfluous to retain the attributes for such parameters on the SAP interface object
doubled. Instead, you enter a reference parameter in this column that is used instead of the
parameter specified in the "Parameter" column. Depending on whether the parameter involves
a field, a structure, or a table, you use the "F_", "S_" or "T_" prefix.
Example 1
The "DATA_GENERAL" import parameter of the "BAPI_FUNCLOC_CHANGE" RFC has the
same structure as the "DATA_GENERAL_EXP" export parameter. In order to write the data
of "DATA_GENERAL_EXP" to the corresponding COMOS attributes for "DATA_GENERAL"
for the SAP interface object, enter "S_DATA_GENERAL" as the reference parameter.
Platform Interfaces
172 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.7 Administering the SAP interface
Example 2
Use the number of a functional location ("FUNCTLOCATION" field parameter) for the
"OBJECTKEY" import parameter of the "BAPI_OBJCL_CHANGE" RFC. For this, you enter
"F_FUNCTLOCATION" as the reference parameter.
Example 3
For import fields, you can specify the field of a structure as the reference parameter. Use the
"MATERIAL" field of the "HEADDATA" structure for the "MATERIAL" import field of the
"BAPI_MATERIAL_GET_DETAIL" RFC. This is done by stating the structure and the field
names separated by a dot as follows: "S_HEADDATA.MATERIAL".
Example
There is an analogous "DATA_GENERALX" import structure for the "DATA_GENERAL" import
structure of the "BAPI_FUNCLOC_CHANGE" RFC. In order for the X entries to be set correctly,
enter the "#X_DATA_GENERALX" value in the "Ref. parameter" table column.
RFC parameters
Depending on the type of business objects to be exchanged with SAP, the COMOS SAP
interface in part makes use of special RFC parameters that you specify in the "RFCs" tab. To
enable access to these parameters in subsequent RFCs, you need to a special label in the
"Ref. parameter" table column. The individual labels always begin with a "#".
Example
During the import of equipment the RFC is called first, that then returns a table with the
equipment. A specific column of this table contains the unique numbers of the equipment items.
Subsequently, further RFCs are called for each column entry and supply the required details
for the relevant equipment items. These column entries are referenced with the
"#ObjectIdColumn" label and can be passed on to other RFCs in this way.
The sequence of calls of the SAP function modules defined in the "RFCs" tab depends on the
business object type which has been assigned to the tab.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 173
SAP interface
8.8 Checking the SAP interface configuration
8.8.1 General
Requirement
● You are familiar with the architecture of the SAP interface.
See section Architecture of the COMOS SAP Interface (Page 132).
Requirement
● The SAP interface is managed.
See section Administering the SAP interface (Page 138).
Procedure
1. Click the "Plugins > SAP > SAP interface configuration" menu command.
2. Select the action you want to carry out.
– "Test SAP connection"
See section Testing the SAP connection (Page 175).
– "Check XML connector configuration"
See section Checking the XML connector configuration (Page 176).
3. Click "Next >".
Platform Interfaces
174 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.8 Checking the SAP interface configuration
Requirement
A login object containing the SAP login data exists.
Procedure
1. Open the SAP interface configuration. See also chapter Opening the SAP interface
configuration (Page 174).
2. Activate the "Test SAP connection" option.
3. Click the "Continue" button.
4. Drag&drop a COMOS object into the "Login object" field. This object must contain the login
data for the SAP system.
5. Check the configuration messages for this object in the lower part of the tab:
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 175
SAP interface
8.8 Checking the SAP interface configuration
Procedure
1. Open the SAP interface configuration. See also chapter Opening the SAP interface
configuration (Page 174).
2. Activate the "Check XML connector configuration" option.
3. To specify which data communication direction the XML connector supports, select one of
the following entries from the list:
– "Export and import"
– "Export to SAP"
– "Import to COMOS"
4. Click "Next >".
See also
Specifying the business object types (Page 176)
Procedure
1. To specify the business object types you want to exchange, select at least one option.
2. Click "Next >".
See also chapter Checking an XML connector (Page 176).
Requirement
● The business object types are specified.
See section Specifying the business object types (Page 176).
Platform Interfaces
176 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.8 Checking the SAP interface configuration
Procedure
1. Drag&drop an XML connector for further checking to the "XML connector" field.
You can omit this step by clicking the "Skip >>" button and continue from the "Checking
the query configuration" step. See also chapter Checking the query configuration
(Page 177).
If you have not yet selected a query, RFC object, or SAP interface object by performing
subsequent configuration steps and then navigating back, COMOS attempts to set these
objects automatically when you set the XML connector.
2. Check the configuration messages for this object in the lower part of the tab:
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 177
SAP interface
8.8 Checking the SAP interface configuration
Procedure
1. If the "Query" field is not pre-assigned, drag&drop a query for exchanging business objects
of the type which you selected previously.
If you set the query manually and have not previously selected an associated RFC object
by performing subsequent configuration steps and then navigating back to this point,
COMOS attempts to set an associated RFC object for the next configuration step
automatically too when setting the query.
The lower area of the tab displays configuration messages for the query.
2. Click "Next >".
Procedure
1. If the "RFC object" field is not pre-assigned, drag&drop an RFC object of the type which
you selected previously to the "RFC object" field.
The lower area of the tab displays configuration messages for the RFC object.
If an XML connector has previously been set with login data for an SAP system, the "Match
RFC data with SAP" button will be active.
2. Click the "Match RFC data with SAP" button, if it is active.
COMOS attempts to establish a connection with SAP. If the connection can be established,
COMOS checks whether the RFCs defined at the RFC object and their parameters actually
exist in the SAP system. It also checks whether the specified parameter types, import,
export, or table parameters are correct.
A window indicates whether or not it was possible to establish the connection and whether
or not the necessary checks have been performed. If incorrect values were detected during
these checks, corresponding messages are displayed.
3. Click "Next >".
Platform Interfaces
178 Operating Manual, 04/2015, A5E32019975-AD
SAP interface
8.8 Checking the SAP interface configuration
Procedure
1. If the "SAP interface objects" field is not pre-assigned, drag&drop an SAP interface object
of the type which you selected previously to the "RFC object" field.
The lower area of the tab displays configuration messages for the SAP interface object
selected in each case.
2. Click the "SAP exchange properties" button.
A window opens, where you can edit the data communication properties of the SAP
interface object you have just selected. These properties include the flow direction, the
exchange type, and the physical unit of specific attributes or entire tabs.
3. Click "Next >".
Once the configuration of all queries, including the associated RFC objects and SAP
interface objects, is complete for a business object type, you will be asked whether you
want to configure another query for this business object type.
4. Click "Next >".
If you select the "Yes, configure another query for this business object type" option, you
can configure another query. Otherwise, click the "End" button.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 179
SAP interface
8.8 Checking the SAP interface configuration
Platform Interfaces
180 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter 9
9.1 COMOS Teamcenter interface
9.1.1 Introduction
Data exchange
COMOS offers an interface for connecting the Siemens PLM software Teamcenter 8.3 and
Teamcenter 9.1. The interface supports data communication in both directions. You can start
the exchange from COMOS.
The link with Teamcenter provides you with the following options:
● You can create plants in Teamcenter and synchronize them with COMOS.
See also chapter Synchronizing a unit from Teamcenter (Page 184).
● You can synchronize your existing COMOS unit with Teamcenter.
See also chapter Synchronizing a unit to Teamcenter (Page 185).
● You can edit a synchronized plant either in COMOS or in Teamcenter and then
resynchronized.
● You can transfer COMOS documents to Teamcenter.
See also chapter Publishing documents (Page 186).
9.1.2 Terms
Mapping object
A mapping object is an engineering object created on the basis of a base object. A Teamcenter
resource or a Teamcenter type must be assigned to the base object for this. Mapping objects
can be synchronized between Teamcenter and COMOS.
PDI
Process Data Interface
Pipe parts are transferred from COMOS to NX via PDI. To use the functions of PDI, you need
to use Teamcenter version 10.1 and NX version 9.0.
PLM
PLM (Product Lifecycle Management) is uniform management of product data throughout the
entire product lifecycle.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 181
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Synchronization
Synchronization is the equivalent of repeated importing or exporting of data. Synchronization
includes all cases in which only a portion of the data is to be updated.
Teamcenter
Siemens PLM software Teamcenter
The COMOS interface has been designed to interface with Teamcenter Version 8.3.
Assignment
The resources and types familiar in Teamcenter are initially independent of COMOS base
objects. To link the relevant objects, they must be assigned to one another.
The resource assignment also determines which base object is used to create an object from
Teamcenter in COMOS.
In the opposite direction, instance mapping defines the translation of COMOS engineering
objects into resources or types that can be understood by Teamcenter.
Attributes and units of measurement are translated in both directions using corresponding
assignments.
Objective
Plant data is to be transferred from the Siemens PLM solution Teamcenter to COMOS for the
first time.
Platform Interfaces
182 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Procedure
1. Create a new plant below the project node in the "Units" tab in the Navigator.
2. To determine the plant type used in Teamcenter, open the "@20 > B60 > M06 > Y30 > A20
Teamcenter types" node in the "Base objects" tab in the Navigator.
The types used in Teamcenter are listed.
3. Open the properties of the object matching the type of your plant in Teamcenter.
4. To navigate to the corresponding base object, click the "Navigate, properties" button in the
"Attributes > CTI resource mapping" tab and select "Navigate > Object".
This object is to be created on the engineering side.
5. Use drag&drop to move this object from the "Base objects" tab onto the plant in the "Units"
tab.
Requirement
The created plant is classified. A Teamcenter integrator object is added.
Procedure
1. To check the classification, select the created plant in the "Units" tab in the Navigator and
navigate to the base object.
2. Open the base object properties.
3. Open the "Classification" tab.
4. Check whether the "A490 Teamcenter object" entry is set in the "Functional classification"
list.
If it is not, inform your administrator.
5. Check whether the "Teamcenter integrator" object is present in the "Units" tab of the
Navigator in the mapping of the unit:
– If this object is listed, the interface is ready for connection to Teamcenter.
– If it is not listed, add a Teamcenter integrator object:
Open the "@20 > B60 > M06 > A10 > A10 Teamcenter integrator" node in the "Base
objects" tab in the Navigator.
Use drag&drop to move the Teamcenter integrator object onto the plant in the Units tab.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 183
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Requirements
● Your administrator has made the necessary default settings. See also chapter Specifying
resources and types for the assignment (Page 198).
● The plant from Teamcenter has been mapped in COMOS. See also chapter Mapping a
unit from Teamcenter (Page 182).
● You have checked or entered the settings. See also chapter Checking and making
settings (Page 183).
Procedure
1. In the "Units" tab in the Navigator, select the mapping of the plant from Teamcenter.
2. Select the "Teamcenter > Synchronize plant from Tc..." command from the context menu.
– If there is not an existing connection to Teamcenter, the "Teamcenter login" window
opens. Enter your access details and click "OK" to confirm. See also chapter
"Teamcenter login" window (Page 209).
– As soon as the connection to Teamcenter is established, the "Synchronize plant from
Teamcenter" window opens.
3. Make the required settings in the "Synchronize plant from Teamcenter" window. See also
chapter "Synchronize plant from Tc" window (Page 210).
4. To perform synchronization, click "OK".
Result
The plant in COMOS is updated with the data from Teamcenter.
Platform Interfaces
184 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Objective
Data of a plant in COMOS is to be synchronized to Teamcenter. Synchronization to
Teamcenter requires certain settings.
Procedure
1. Select the plant node you want to synchronize to Teamcenter (along with its content) in the
"Units" tab in the Navigator.
2. Check whether the "Y00T00128 @Y CTI instance mapping" tab is located below the
selected plant.
If the tab is not there, contact your administrator.
3. Navigate to the base object.
4. Open the base object properties.
5. To check the classification, open the "Classification" tab.
6. Ensure that the "A490 Teamcenter object" entry has been set in the "Functional
classification" list.
If it has not, inform your administrator.
7. To add the Teamcenter integrator object, open the "@20 > B60 > M06 > A10 > A10
Teamcenter integrator" node in the "Base objects" tab in the Navigator.
8. Use drag&drop to move the Teamcenter integrator object onto the plant in the "Units" tab.
Result
The plant in COMOS is prepared for synchronization to Teamcenter.
Procedure
1. Select the desired plant in the "Units" tab in the Navigator.
2. Select the "Teamcenter > Synchronize plant to Tc" command from the context menu.
– If there is not an existing connection to Teamcenter, the "Teamcenter login" window
opens. Enter your access details and click "OK" to confirm. See also chapter
"Teamcenter login" window (Page 209).
– As soon as the connection to Teamcenter is established, the "Synchronize plant to Tc"
window opens.
3. Make the required settings in the "Synchronize plant to Teamcenter" window. See also
chapter "Synchronize plant to Tc" window (Page 211).
4. To perform synchronization, click "OK".
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 185
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Result
The plant in Teamcenter is updated with the data from COMOS.
Procedure
1. To check the settings, select the required document in the "Units" tab or "Documents" tab
in the Navigator.
2. Navigate to the base object.
3. Open the base object properties.
4. Select the "System" tab.
5. Check whether the "Teamcenter revision" entry is displayed in the "Revision type" list.
If it is not, inform your administrator.
Requirement
Your administrator has made the necessary settings for the base object for your documents.
See also chapter Preparations for publishing documents (Page 208).
Procedure
1. Select the desired document in the Navigator.
2. Open the properties of the document and select the "Revisions" tab.
3. Click the "Creates a new revision" button and confirm the "Create new revision?" prompt
with "Yes".
4. Expand the "Created by" button and select the "Released by" entry.
– If there is not an existing connection to Teamcenter, the "Teamcenter login" window
opens. Enter your access details and click "OK" to confirm. See also chapter
"Teamcenter login" window (Page 209).
– As soon as the connection to Teamcenter is established, the document is sent to
Teamcenter.
Platform Interfaces
186 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Result
Following publication, the document is created in Teamcenter.
If there is a match for the object in Teamcenter directly up one level in COMOS, the document
is stored at the corresponding location.
If the document cannot be saved in a location corresponding to the unit structure in COMOS,
it is saved in the "Newstuff" folder belonging to the user whose login details were used to log
in on Teamcenter.
Overview
You can synchronize attribute values of Teamcenter forms to the engineering and base data
with COMOS attributes. Conversely, you can synchronize attribute values from COMOS
engineering to Teamcenter forms.
Sequence
1. You define the Teamcenter forms together with the other resources in Teamcenter and
synchronize these to the base data in COMOS.
2. You assign the attributes in COMOS. See also chapter Assigning attributes (Page 206).
To do this, use the "@20 > B60 > M06 > Y30 > A40 > Y00T00127 CTI attribute mapping"
tab.
Note
Units of measurement not supported
The Teamcenter form attributes do not support units of measurement.
Data types
We distinguish between two types of data:
● Static data
● Dynamic data
Static data
You define this data in Teamcenter and synchronize it to COMOS. Do not change the data in
COMOS. See also chapter Forms for static data (Page 188).
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 187
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Dynamic data
Dynamic data is predefined in Teamcenter and is part of and a result of the engineering
process. This data is synchronized to both COMOS and Teamcenter. See also chapter Forms
for dynamic data (Page 189).
Resources
Forms for static data are attached to the respective resource in Teamcenter. The same object
is also used for later synchronization of engineering data. In COMOS, objects are created
during synchronization of resources under the following node and attached as elements under
the COMOS base object which corresponds to the Teamcenter resource:
"@20 > B60 > M06 > Y30 > A40 > A10 Static Teamcenter forms"
Attribute assignment to the base object assigned to the resource in COMOS takes place from
the element. See also chapter Assigning attributes (Page 206).
Platform Interfaces
188 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Recommendation
Use the exchange of dynamic data selectively. For managing the dynamic data, Teamcenter
uses runtime objects which could slow down your system.
Objective
In this example, a new mapping object is created in COMOS and transferred to Teamcenter.
A resource or type mapped in COMOS that has been synchronized and assigned from
Teamcenter is used as the source.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 189
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Procedure
1. To select a resource, open one of the following nodes in the "Base objects" tab in the
Navigator:
– "@20 > B60 > M06 > Y30 > A10 > A20 Teamcenter classified resources"
– "@20 > B60 > M06 > Y30 > A10 > A30 Teamcenter unclassified resources"
– "@20 > B60 > M06 > Y30 > A20 Teamcenter types"
2. Select a resource saved below this node from Teamcenter.
Example: "@20 > B60 > M06 > Y30 > A20 Teamcenter types" node, the "MEStation" object
below it.
3. Open the properties of this object.
4. To navigate to the mapped base object, click the "Navigate, properties" button in the
"Attributes > CTI resource mapping" tab and select "Navigate > Object" from the menu.
This object is to be created on the engineering side.
Example: The base object "CMEStation" has been selected and marked.
5. Use drag&drop to move this object onto an existing mapping object in the "Units" tab.
The new mapping object is displayed below the existing mapping object. So that you can
transfer the necessary attributes of the new mapping during a subsequent synchronization
to Teamcenter, specify the Teamcenter "Item ID", "Revision ID", and "Name".
6. Open the properties of the newly created mapping object.
7. Select the "Attributes > CTI instance mapping" tab.
8. Click the "Instance properties ..." button.
9. To complete the mandatory fields "Item ID", "Revision ID", and "Name" in the "Element
properties" window, click the "Assign" button. See also chapter "Element properties"
window (Page 211).
A unique "Item ID" is requested from the Teamcenter server. Alternatively, you can also
edit these fields.
10.Click "OK" to save your settings.
Result
A Teamcenter item ID and a revision ID have been assigned to the mapped object.
Note
Synchronization of the created objects
There is a risk of data loss if you synchronize a plant from Teamcenter without transferring
your changes to the Teamcenter server first.
The objects you have created are not transferred to the Teamcenter server until the moment
you synchronize the unit to Teamcenter.
To link the created objects to their matches in Teamcenter, synchronize the plant from
Teamcenter afterwards.
Platform Interfaces
190 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Note
"Item" type objects
If you select the "Item" type, a new unclassified resource is produced when the plant is
synchronized to Teamcenter. Before you can synchronize the plant from Teamcenter, your
administrator must first synchronize the resources and map the new unclassified resource to
the same object in COMOS to which the "Item" type is mapped.
If you wish to add new resources, do this in Teamcenter.
Objective
You are changing the instance mapping for a newly created mapping object. If you used the
COMOS-internal inheritance mechanism during resource assignment, you have a means of
specifying the instance mapping.
For example, you can assign multiple robots from Teamcenter to a single base object in
COMOS. The first resource assigned is specified as the default value for the instance mapping.
If the resource is a classification (a robot, for example), once you have created a mapping
object, select a concrete classified resource (a Cartesian robot, for example). Then
synchronize the superior unit to Teamcenter.
Procedure
1. Open the properties of the mapping object in the "Units" tab.
2. Select the "Attributes > CTI instance mapping" tab.
3. To call the "Select Tc resource" window, click the "Select Tc resource ..." button.
All resources assigned to the base object of the mapping object are listed in the "Select Tc
resource" window. The COMOS-internal inheritance hierarchy is displayed as the tree
structure. See also chapter "Select Tc resource" window (Page 212).
4. You have the following options:
– To specify the assignment for a resource, select the required resource in the "Select Tc
resource" window.
– To cancel the assignment for a resource, click the "Remove pointer" button.
5. Click "OK" to confirm your selection.
Result
During the next synchronization to Teamcenter, the newly created mapping object is
transferred in accordance with the modified instance mapping.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 191
Interface to Teamcenter
9.1 COMOS Teamcenter interface
9.1.8.1 Overview
Settings in COMOS
Specify the settings for multiple projects and settings for individual projects. In the case of
additions to a plant in Teamcenter, you will be be involved several times within the framework
of a project.
Note
Need for reconciliation in a project
The tasks assigned to a user include synchronizing units to Teamcenter or to COMOS.
If resources, units of measurement, or attributes have been added to the current project in
Teamcenter, you should be informed as the administrator. You carry out the necessary
mapping in COMOS.
Platform Interfaces
192 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
9.1.8.2 Workflow
Overview
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 193
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Tc Configuration Legend:
Transmission method
Settings Teamcenter Admin
Teamcenter User
Synchronize
resources
Create corresponding
base objects,
e.g. CItem
Synchronize resource
information
Latest
if no change if in COMOS
version of the
of the unit
unit?
e.g. resources
was added in Tc
if in Tc
Project
completed
Platform Interfaces
194 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Recommendation
Prefix the original name with "C" when assigning new base objects to Teamcenter types. This
denotes the origin of the Teamcenter types.
Example:
COMOS node for assigning the Teamcenter New COMOS base object based on the Teamcenter
type type
"@20 > B60 > M06 > Y30 > A20 > Item" "CItem"
Recommendation
When you assign names, select names that indicate the following characteristics:
● Project name
● Resources or units
● "Collaboration Context", "Structure Context" or "Application Interface"
● Consecutive numbering if necessary
Examples:
● "AnyTownResourcesAI01"
● "AnyTown_Plant_03_CC"
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 195
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Procedure
1. Start Teamcenter Environment Manager in the Teamcenter installation directory.
Relative path: ".\install\tem.bat".
2. Activate the "Configuration Manager" option in the "Maintenance" step and click the "Next"
button.
3. Activate the "Perform maintenance on an existing configuration" option in the "Configuration
Maintenance" step and click the "Next" button.
4. Click the "Next" button in the "Configuration Selection" step.
5. Activate the "Add/Remove Features" option in the "Feature Maintenance" step and click
the "Next" button.
6. To import the template with the saved settings, click the "Browse" button in the "Select
Features" step and load the supplied file.
– Relative path on the CD for Teamcenter 8.3: ".\Software\AddOns\Teamcenter
\Teamcenter83ServerConfiguration"
– Relative path on the CD for Teamcenter 9.1: ".\Software\AddOns\Teamcenter
\Teamcenter91ServerConfiguration"
7. Activate the "Extensions > COMOS Interface" option in the tree structure displayed in the
"Select Features" step.
8. Activate the "Extensions > Manufacturing Process Management > Customization for eM-
Server Integration" option and click the "Next" button.
The additional components which are required to synchronize certain types from the
COMOS database to Teamcenter are installed.
9. In the "Teamcenter Administrative User" step, enter the administrator password in the
"Password" field and click the "Next" button.
10.Click the "Next" button in the "Database Template Summary" step.
11.To confirm your settings and install the required components, click the "Next" button in the
"Confirm Selections" step.
This starts a copy operation. When the copy operation finishes, the definition of the
"Application Interface" with the transfer types is complete.
Objective
Change the "Al_request_no_dependancy" setting in the options menu of Teamcenter.
Procedure
1. Select the "Edit > Options" menu command in Teamcenter.
2. Click the "Search" button in the lower area.
3. Enter "*request*" in the "Search On Keywords" field in the "Search Options" window:
Platform Interfaces
196 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
4. To run the search, click on the button with the magnifying glass symbol.
The search results are displayed in the "Preference List" list.
5. Select the "Al_request_no_dependancy" entry in this list.
6. Enter "true" in the "Current Values" field.
7. To save the changes, click the "Modify" button.
Procedure
Edit the "Default.xml" file in the ".\soa\policies" subdirectory of the Teamcenter "tcdata" folder
and make the following addition:
<ObjectType name="MEPlantContext">
<Property name="configuration_context"/>
<Property name="revision_rule"/>
</ObjectType>
Procedure
1. Open the "My Teamcenter" application in Teamcenter.
2. To create a folder for saving the "Collaboration Context", select the "Home" folder and select
the "File > New > Folder..." command in the menu.
The "New Folder" window opens.
3. In the "New Folder" window, enter a name for the new folder in the "Name" field and, if
required, a description in the "Description" field.
4. Click "OK" to confirm your entries.
5. Select the created folder and then select the "File > New > Collaboration Context" command
in the menu.
6. Make sure that the "CCObject" type is selected on the left side of the window.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 197
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Objective
Specify the resources and types that are used in the plant and are to be synchronized to
COMOS. The specified resources and types are referenced in a "Structure Context" type object
for the synchronization to COMOS.
Requirements
A "Structure Context" type object is created.
Procedure
1. To specify the resources and types required for synchronization to COMOS, select a plant
and select the "Send to > Manufacturing Process Planner" command in the context menu.
The "Manufacturing Process Planner" application opens.
2. Copy all "ItemRevision" type objects to the "Structure Context" type object in the "My
Teamcenter" application.
3. To empty the "Manufacturing Process Planner" application, close and reopen this window.
4. To create a new working area, select the "File > New > New Workarea" command in the
"Manufacturing Process Planner" application.
Platform Interfaces
198 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
5. If there are types listed in the "New Workarea" window that are not contained in the supplied
database, create the missing types.
The database supplied with the product includes the following types:
– "MECell"
– "MECompResource"
– "MEDepartment"
– "MELine"
– "MEPlant"
– "MEPrLine"
– "MEProcResource"
– "MEProductLocation"
– "MEPrPlant"
– "MEPrStation"
– "MEPrZone"
– "MESite"
– "MEStation"
– "MEWorkarea"
– "MEZone"
6. Copy all types to the same "Structure Context" type object as described in Step 2.
Result
All resources and types for synchronization have been selected. Selection of the resources
and types is the requirement for the synchronization of resources.
Once the resources have been synchronized, the user can synchronize a plant from
Teamcenter to COMOS.
Objective
In order to exchange data, you need an "Application Interface" type object.
This object is used to specify the following:
● Definition of a transfer format for the import
● Definition of a transfer format for the export
● Definition of the content of the data transfer by connecting the "Application Interface" type
object with a "CollaborationContext" type object
● History of previous data transfers
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 199
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Requirement
● A "Collaboration Context" type object is created for resources.
Alternatively,
a "Collaboration Context" type object is created for a plant. This plant exists in Teamcenter
or an empty plant is created in Teamcenter for the synchronization.
● The "Application Interface" type object and transfer types are defined.
Procedure
1. To create a new "Application Interface" type object, select the "Collaboration Context" type
object and select the "Tools > Export > Objects..." command.
2. Select "AppInterface" on the left. Click the button at the top right.
3. Select "COMOS_Al" on the left and enter a name. Make sure that the following settings are
used:
– "Import Transfer Mode Name:" "COMOS_Import"
– "Export Transfer Mode Name:" "COMOS_Export"
4. To make the display clearer, move the new "Application Interface" type object from the
"Newstuff" folder to the folder containing the "Collaboration Context" type object.
Requirement
A plant exists in Teamcenter.
Procedure
1. Select the plant, transfer it to the "Manufacturing Process Planer", and click "File > Save
as new Collaboration Context".
2. Select the "MECollaborationContext" type.
3. Enter the name of the new "CollaborationContext".
4. Check that the entry "MEPlantContext" is selected for "Structure Context Type".
5. Click the "Save" to save.
6. To make the display clearer, move the created "Collaboration Context" type object from the
"Newstuff" folder in "My Teamcenter" to the folder in which the "Collaboration Context" type
object is usually saved.
7. Select the created "Collaboration Context" type object and create an "Application Interface"
type object with the "COMOS_Al" subtype.
Platform Interfaces
200 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Requirement
● A "Collaboration Context" object has been created for resources in Teamcenter.
● Resources and types for the assignment have been specified in Teamcenter.
● An "Application Interface" has been added in Teamcenter.
● Resources are synchronized in COMOS.
● Resources and types are assigned in COMOS.
Procedure
1. Create an empty plant in Teamcenter of the type assigned to the base object in COMOS.
2. Transfer the plant to the "Manufacturing Process Planer". Select the plant and select the
"File > Save as new Collaboration Context" command.
3. To make the display clearer, move the new "Collaboration Context" type object from the
"Newstuff" folder to a suitable location.
4. Create an "Application Interface" for the "Collaboration Context".
5. Switch to COMOS.
6. Start the synchronization of the unit from COMOS to Teamcenter.
Requirement
The COMOS client and the Teamcenter installation are in use on different computers.
In this case, install a Teamcenter component on the computer running the COMOS client. The
Teamcenter FCC is part of the Teamcenter data storage concept. It caches changes locally
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 201
Interface to Teamcenter
9.1 COMOS Teamcenter interface
on the client before they are transferred to the server. All accesses to the Teamcenter server
are via this cache. The installation file is located on the data carrier supplied with the product.
Note
Installing the cache component
If you are using the COMOS client and the Teamcenter installation on the same computer,
you do not need the cache component. In this context, it does not matter whether you are using
the Teamcenter server or the Teamcenter client.
Procedure
1. Start the COMOS CD browser on the data carrier supplied with the product.
2. Click the "Additional Software" button.
3. Click the "Teamcenter FCC" button. Confirm the prompt to run the file (if there is one) and
follow the installation instructions.
4. Confirm the defaults.
Enter the following in the "FMS Settings, Please enter Parent and Proxy settings" window:
5. To enter a link to the Teamcenter server, enter either the computer name or the IP address
in the "FSC Parent Host" field of the "FMS Settings, Please enter Parent and Proxy settings"
window.
6. Check whether the entry in the "FSC Parent Port" field of the "FSC Parent Settings" control
group matches the Teamcenter server setting. Change the setting if necessary.
The "Connect to FSC Parent Via" and "FSC Parent Port" fields are filled in automatically.
7. Click the "Next" button.
8. Complete the installation.
9. Set the "FMS_HOME" environment variable to the directory in which you installed the cache
component.
Note that the environment variable for the relevant Windows user account must be set.
10.Enter a link to the "startfcc.bat" file in the Windows start menu under "Start > Programs >
Startup".
The file is located in the same directory as the one used in Step 9.
Platform Interfaces
202 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Procedure
1. In the "Base objects" tab in the Navigator, select the "@20 > B60 > M06 > Y30 > A10
Teamcenter resources" node.
2. Select the "Teamcenter > Synchronize resources..." command from the context menu.
– If an active connection to the Teamcenter does not exist, the "Teamcenter Login"
window is called up. Enter the access information in this window and press "OK" to
confirm your entry. See also chapter "Teamcenter login" window (Page 209).
– When the connection to Teamcenter has been established, the "Synchronize resources"
window opens.
3. Carry out the following settings in the "Synchronize Tc resources" window:
– The first time the window opens, select the project corresponding to the resources in
Teamcenter from the "Project selection" list.
– If called again, the previously selected project is set by default. To select a new project,
show the list using the "Project selection" button.
– To retain existing data, activate the "Incremental update" option.
– To create transferred data in a separate working layer, activate the "Create working
layer" option.
4. To perform synchronization, click "OK".
Result
New resources are stored at various locations in COMOS depending on their type:
● Classified resources appear in the "@20 > B60 > M06 > Y30 > A10 > A20 Teamcenter
classified resources" node
● Unclassified resources appear in the "@20 > B60 > M06 > Y30 > A10 > A30 Teamcenter
unclassified resources" node
● Types appear in the "@20 > B60 > M06 > Y30 > A20 Teamcenter types" node
● Units of measurement appear in the "@20 > B60 > M06 > Y30 > A30 Teamcenter units of
measurement" node
● Static formulas appear in the "@20 > B60 > M06 > Y30 > A40 > A10 static Teamcenter
formulas" node
● Dynamic formulas appear in the "@20 > B60 > M06 > Y30 > A40 > A20 dynamic
Teamcenter formulas" node
Existing resources are updated in COMOS in the locations described.
See also chapter Calling the properties of synchronized resources (Page 204).
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 203
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Procedure
1. Select the desired resource.
2. Open the properties.
3. Select the "Attributes > CTI resource mapping" tab.
4. Click the "Resource properties..." button.
Result
The "Element properties" window containing the relevant information from Teamcenter is
displayed. See also chapter "Element properties" window (Page 211).
Objective
To use the units of measurement used in Teamcenter in COMOS, you carry out an assignment
in COMOS.
Requirement
● Resources from Teamcenter are synchronized. See also chapter Synchronizing
resources (Page 202).
● Attributes for assigning a COMOS unit of measurement are created automatically for the
units of measurement used in the Teamcenter resources during the synchronization of
resources.
Procedure
1. In the "Base objects" tab in the Navigator, select the "@20 > B60 > M06 > Y30 > A30
Teamcenter units of measurement" node.
2. Open the properties of the object.
3. Select the "Attributes > Teamcenter units of measurement" tab.
A table containing columns called "Name", "Description", and "COMOS unit" is displayed.
– If no rows are displayed, cancel the process.
Either no units of measurement are used in Teamcenter or no assignment attributes
have yet been created in COMOS. Assignment attributes are created automatically
when synchronizing resources to COMOS.
– If rows are displayed, the "Name" and "Description" fields have already been completed.
Complete empty cells in the "COMOS unit" column.
4. To complete empty cells in the "COMOS unit" column, select an empty cell.
Platform Interfaces
204 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Result
The units of measurement used in COMOS have been assigned to the units of measurement
used in Teamcenter. These units of measurement are displayed in the "COMOS unit" column
in the "Attributes > Teamcenter units of measurement" tab.
Objective
For synchronization of a plant from Teamcenter, mappings are created in COMOS of the
Teamcenter objects. When the mappings are created, the base objects used in each case are
determined using the Teamcenter object type. Base objects are assigned to each of the types
and resources.
Procedure
1. In order to map an object from Teamcenter in COMOS, create a base object or use an
existing base object and add the "Y00T00128 @Y CTI instance mapping" tab. This tab is
located in the "Base objects" tab in the Navigator under the "@40 > A20 > Y00 > A10 >
A60>Y00T00128>A01" node.
2. In the "Base objects" tab in the Navigator, select the "@20 > B60 > M06 > Y30 > A10
Teamcenter resources" node
3. Open the properties of a synchronized resource.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 205
Interface to Teamcenter
9.1 COMOS Teamcenter interface
4. There must be an entry in the "Mapped base object" field in the "Attributes > CTI resource
mapping" tab. See also chapter "CTI resource mapping" tab (Page 213). A suitable source
object must contain the "Y00T00128 @Y CTI instance mapping" tab. Select one of the
following options:
– If the required base object contains the necessary "Y00T00128 @Y CTI instance
mapping" tab, drag the base object from the Navigator into the "Mapped base object"
field.
– If the desired base object does not contain the required "Y00T00128 @Y CTI instance
mapping" tab, add this tab and use drag&drop to move the added base object to the
"Mapped base object" field.
The tab is located under the "@40 > A20 > Y00 > A10 > A60>Y00T00128>A01" node.
Note
Resources and base object
Multiple Teamcenter resources can be assigned to a single COMOS base object. The
Teamcenter objects are mapped by the same type of COMOS objects for the
synchronization of a plant from Teamcenter.
An instance mapping must be specified for an individual resource for synchronization
to Teamcenter. The first resource to which a base object is assigned is specified as the
default value for the instance mapping of the base object.
To change the instance mapping, click the "Navigate, properties" button and navigate
to the base object used during resource mapping. Open the properties of the base object
and select the "Attributes > CTI instance mapping" tab. Click the "Select Tc resource"
button. In the "Select Tc resource" window, select the required Teamcenter resource
from the tree structure displayed.
5. Repeat steps 1 through 3 for other resources and types located in the "@20 > B60 > M06
> Y30 > A20 Teamcenter types" node.
Note
Unassigned resources
The assignment of the "Item" type is a different solution for synchronizing a plant with
unassigned resources.
Objective
The relationship between the attributes saved for the Teamcenter objects and the
corresponding attributes in COMOS is defined by the administrator. For classified resources,
the attribute assignments can be inherited within the COMOS hierarchy.
To make this possible, you assign corresponding base objects to the resources from a
classification. The base objects inherit the tabs and attributes from a common source.
Platform Interfaces
206 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Procedure
1. In the "Base objects" tab of the Navigator, select the "@20 > B60 > M06 > Y30 > A10
Teamcenter resources" node.
2. Open the properties of a synchronized resource.
3. Open the "Attributes > CTI attribute mapping" tab. Note the table in this tab. See also
chapter "CTI attribute mapping" tab (Page 214).
4. Select the "Attributes > CTI resource mapping" tab. Use the "Navigate, properties" button
to find the assigned object in the tree structure of COMOS. Search the tab for attributes
matching the synchronized attributes from Teamcenter. See also chapter "CTI resource
mapping" tab (Page 213).
5. Select the "Attributes > CTI attribute mapping" tab. Drag&drop the attributes from the
COMOS tree structure into the row of the corresponding attribute synchronized from
Teamcenter.
6. Repeat the above steps for other resources and types located in the "Base objects" tab in
the Navigator under the "@20 > B60 > M06 > Y30 > A20 Teamcenter types" node.
Transfer file
One of the purposes of the transfer file is to transfer resource information. This transfer file is
transferred at the same time as resources are synchronized.
Resource information contains:
● Labels used to reference Teamcenter objects
● Properties of objects as they are saved in Teamcenter These properties include, for
example, the name, type, and description.
● Values of attributes synchronized to COMOS
After resources have been synchronized, objects are assigned to resources and types in
COMOS. The additional information from the transfer file is then transferred to the assigned
COMOS objects by synchronizing the resource information.
When the resources, attributes, and units have been assigned, additional information is read
from the transfer file and transferred to the corresponding COMOS objects based on the
assignments. This additional information includes attribute values, for example. These are
values saved for the relevant attributes in Teamcenter.
You do not need to be connected to Teamcenter to synchronize the resource information. The
data was transferred when the resources were synchronized and is available in the transfer
file. See also chapter Synchronizing resources (Page 202).
Procedure
1. In the "Base objects" tab in the Navigator, select the "@20 > B60 > M06 > Y30 > A10
Teamcenter resources" node.
2. Select the "Teamcenter > Synchronize resource info..." command in the context menu.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 207
Interface to Teamcenter
9.1 COMOS Teamcenter interface
3. If required, activate the "Create working layer" option in the "Synchronize resource info"
window. See also chapter "Synchronize resource info" window (Page 213).
4. Click "OK" to synchronize the resource information.
Objective
To enable the user to publish a document in Teamcenter, you specify the base object of the
document and assign the necessary revision type to the user.
Procedure
1. Select the required document.
2. Navigate to the base object.
3. Open the base object properties.
4. Select the "System" tab.
5. Select the "Teamcenter revision" entry in the "Revision type" list.
6. Save the setting.
7. Make the document available to the user.
You can find additional information on this topic in the "COMOS Platform Operation"
manual, keyword ""General" tab for documents".
Result
All documents using the specified base object are published to Teamcenter automatically
during revision and release.
Platform Interfaces
208 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Status Description
"Errors" The process has not been executed successfully. Further processing is not possible.
Check the content of the error message and repeat the process with the correct
settings.
"Warnings" This message shows information about problems that do not prevent further oper‐
ation but may lead to an unwanted result.
When a warning is displayed, use the description to check the result of the process.
If you wish to continue despite the warnings, click "Cancel".
To restart the process, click "OK".
"Messages" This message shows information that has no impact on further processing. It might
contain additional information about the progress of the process, for example.
To close the window, click "Cancel".
To hide certain types of system message, click on the appropriate buttons ("Errors",
"Warnings", or "Messages").
The entries in the status window are context-sensitive. To navigate to the cause of the system
message, double-click on the entry in the status window. If the message is uniquely assigned
to a specific COMOS object, the object is selected in the Navigator.
Field Description
"Server" Specify the server in the following format: "http://<Server>:<Port>/<Database
name>".
"User ID" The user name agreed upon together with the administrator.
"Password" Password for authentication
"Group" This field is optional and shows the group membership in the Teamcenter or‐
ganization structure as it is stored in Teamcenter.
"Role" This field is optional and shows the role in the selected group, if it deviates from
the default role. The data is shown as they are stored in Teamcenter.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 209
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Buttons
Button Description
"OK" Click on this button to start the login process.
"Cancel" Use this button to cancel the login process.
Buttons
Button Description
"OK" Starts the synchronization process from Teamcenter
"Cancel" Cancels the synchronization.
Platform Interfaces
210 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Buttons
Button Description
"OK" Starts the synchronization process to Teamcenter
"Cancel" Cancels the synchronization.
Field Description
"Name" Shows the name assigned in COMOS.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 211
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Field Description
"Name" Name of the position of the object in the Teamcenter plant.
"Quantity" Frequency of the object at the position in the Teamcenter plant.
Working area
Select a resource to be the instance mapping for the reference object via the working area.
Only resources whose resource assignment points to the reference object are displayed.
Field Description
"Name" The name of the element is displayed in this field.
Field Description
"Item ID" If the resource information has been synchronized, the data from Teamcenter
"Revision ID" is entered automatically in these fields.
"Name"
"Type"
"Description"
Platform Interfaces
212 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Table
Column Description
"Name" Non-editable field
The text in this field indicates the unit of measurement used in Teamcenter. To
clarify the origin, the units of measurement from Teamcenter are prefixed with
"CTI_".
"Description" Non-editable field
This field contains the description text saved in COMOS.
"COMOS unit" Editable field provided for the unit of measurement used in COMOS.
● If there is an entry in this field, you have already assigned a COMOS unit of
measurement to the text used in Teamcenter.
● If this field is empty, assign a COMOS unit of measurement to the text used
in Teamcenter.
Tab
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 213
Interface to Teamcenter
9.1 COMOS Teamcenter interface
Button
Name Description
"Update values ..." When you click this button, the "Update values" window is called up. By clicking
"OK", you start the transfer from this window of the values synchronized from
Teamcenter to the corresponding COMOS attributes based on the attribute
mapping.
Table
Column Description
"Tc description" Non-editable field
This field contains a short descriptive text that is synchronized to COMOS from
Teamcenter with the attribute.
"Tc value" Non-editable field
The "Tc value" column displays the value of the attribute as it was synchronized
from Teamcenter.
"Tc unit" Non-editable field
The "Tc unit" column displays information about the unit of measurement as
stored in Teamcenter.
"Attribute mapping" Here, you can assign an attribute. If you want to assign an attribute, use
drag&drop to move it from the assigned resource or its inheritance source into
the "Attribute mapping" field.
"Attribute unit" Non-editable field
This field displays the unit of measurement in COMOS.
Control elements
Platform Interfaces
214 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.2 Process Data Interface (PDI)
9.2.1 Introduction
Teamcenter version
To use the functions of PDI, you need to use Teamcenter version 10.1 and NX version 9.0.
Requirement
● You have write rights for the base project.
● The pipe specs have already been created and configured.
● The XML file "pipepartfamilies" exists. See chapter XML file "pipepartfamilies" (Page 223).
● The NX template is assigned, meaning that the pipe parts have already been created and
configured.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 215
Interface to Teamcenter
9.2 Process Data Interface (PDI)
Note
Assigning pipe parts
No assignment of pipe parts is supplied with the database. See also chapter Assigning
objects (Page 218).
Procedure
1. Open the base project.
2. Navigate to the desired pipe spec.
3. Select the "Teamcenter > Export pipe spec to Teamcenter" command from the context
menu.
4. If you are not yet logged in, log in to Teamcenter in the "Teamcenter login" window.
Various windows help you in the export process. Click the "Cancel" button to stop the
process. Initially, a window with the pipe part catalog and the pipe specs is displayed. You
can compare the last version of the data with the current version.
5. Check the information and click "Next".
6. Click "Next" in the "XMLViewer" window. See also chapter "XMLViewer" window
(Page 220).
7. To export the pipe specs, click the "Transfer" button.
Result
After the transfer to Teamcenter has been completed, a corresponding notice is displayed.
Two XML files are generated that are transferred to Teamcenter. The XML files contain
information about the pipe specs and the pipe part catalog. Teamcenter stores the files under
"Home > PDI" with the name of the pipe spec. "Home" is the node of the same name of the
user with which you logged in.
Requirement
The corresponding settings for your document and the project have been carried out. See
chapter "Checking the settings of the document base object (Page 222)" and
""Comos.PDI.config" configuration file (Page 222)".
Procedure
1. Open the properties of the desired document.
2. Select the tab "Revisions".
3. Click the "Creates a new revision" button.
4. Click the "Yes" button in the "Create revision" window.
Platform Interfaces
216 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.2 Process Data Interface (PDI)
5. Expand the "Created by" button and select the "Released by" entry.
If no connection to the Teamcenter is in place, the "Teamcenter Login" window is shown.
6. If you are not already logged in, enter your access data and click "OK".
Result
The following files are generated automatically and transferred to the Teamcenter:
● PDF file
● XML file "Piperun"
● XML file "XMpLant"
The target documents are saved as records under the revision of a document in the "PDI"
folder in Teamcenter.
If a counterpart of the published COMOS document already exists in Teamcenter, that
transferred documents are stored under a new revision of the counterpart. Otherwise, a new
document including initial revision is created in the Teamcenter.
Requirement
The connection between COMOS and NX is configured. See also chapter "Comos.PDI.config"
configuration file (Page 222). NX is opened.
Procedure
1. Open COMOS.
2. Select a P&ID in the Navigator.
3. Open the context menu.
4. Select the "Teamcenter > Start cross selection" command.
5. Switch to NX.
6. Select the menu entry "Tools > Schematics > Connect" in the main menu "Tools".
Result
When the connection has been established successfully, you have the following possibilities
on the P&ID:
● Connecting objects
● Navigating to the object in NX
● Disconnecting the connection between the objects
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 217
Interface to Teamcenter
9.2 Process Data Interface (PDI)
Requirement
COMOS and NX are connected. See chapter "Connecting COMOS and NX (Page 217)".
Procedure
1. Switch to NX.
2. Select the menu entry "Tools > Schematics > Disconnect" in the main menu "Tools".
Alternative procedure
1. Switch to COMOS.
2. In the context menu of the P&ID, select the command "Teamcenter > Stop cross-selection".
Requirement
COMOS and NX are connected. See chapter "Connecting COMOS and NX (Page 217)".
Procedure
1. Open a P&ID.
2. Select a P&ID object and open the context menu.
3. Select the "Teamcenter > Assign" command.
If the object has already been implemented, NX updates the assignment between the P&ID
object and the COMOS object.
4. Switch to NX.
If no object is displayed highlighted, the "Assign Component" window is displayed.
5. Select the desired object.
Result
You can check the assignment in the context menu of the selected object in NX under the
entry "Properties". You can also only navigate to assigned objects between Nx and COMOS.
Requirement
COMOS and NX are connected. See chapter "Connecting COMOS and NX (Page 217)".
Platform Interfaces
218 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.2 Process Data Interface (PDI)
Procedure
1. Select the desired object on the P&ID in COMOS.
2. Select the "Teamcenter > Unassign" command from the context menu.
Alternative procedure
1. Select the desired object in NX.
2. Select the menu entry "Tools > Schematics > Unassign" in the main menu "Tools".
Result
The assignment is canceled; you can no longer navigate between the respective object in Nx
and COMOS.
Requirement
● COMOS and NX are connected. See chapter "Connecting COMOS and NX (Page 217)".
● The object is assigned. See chapter Assigning objects (Page 218).
● The P&ID is open.
Procedure
1. Select the required object on the P&ID.
2. Select the entry "Teamcenter > Navigate to NX" in the context menu.
3. Switch to NX.
Result
The corresponding object is centered in NX and highlighted.
Requirement
● COMOS and NX are connected. See chapter Connecting COMOS and NX (Page 217).
● The object is assigned. See chapter Assigning objects (Page 218).
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 219
Interface to Teamcenter
9.2 Process Data Interface (PDI)
Procedure
1. Select the object in NX.
2. Select the menu entry "Tools > Schematics > Navigate to PID Symbol" in the main menu
"Tools".
3. Switch to COMOS.
Result
The corresponding object is highlighted on the P&ID (piping and instrumentation diagram) in
COMOS.
9.2.3.1 Views
Introduction
Before transferring a pipe to Teamcenter, you can view the generated files in the "XMLViewer"
window. You cannot make changes in this window. The XMLViewer is used for the final data
check before transfer. Recommendation: If abnormalities occur, cancel the transfer and make
the appropriate improvements in COMOS. The following functions are available in the
"XMLViewer" window:
● View of pipe spec specification in XML format
● View of the pipe part catalog in XML format
The views of pipe parts/pipe specs appear automatically one after the other. You cannot
go back to a previous view. You can call a version comparison in each case.
● Version comparison of generated files
● Confirmation of file transfer
Overview
The window "XMLViewer" has the same layout in every view.
The path to the generated and displayed file is shown at the top of the window. The symbol
bar contains the buttons which you use to switch between the views. The file data is shown
as content. Display of the content depends on which view you have selected. See also chapter
Calling a view (Page 221).
Platform Interfaces
220 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.2 Process Data Interface (PDI)
Views
You can call the following views:
View Description
"XML table" Tabular display of the data prepared for export
"Normal XML format" Display of the generated file in XML format
"Version comparison" This display shows the differences between two versions of
a pipe spec. The current version is always compared to the
previous version.
See also chapter Version comparison (Page 221).
Procedure
Select one of the following options:
● To call the "XML table" view, click the button.
● To call the "Normal XML format" view, click the button.
● To call the "Version comparison" view, click the button.
Column Description
"Current element names" List of all XML root elements which deviate.
"Comparison element names" List of XML elements which contain differences between two
versions.
"Comparison result" Shows a description of differences.
"Current element content" Shows the content of the XML element in the previous version.
"Comparison element content" Shows the content of the XML element to be compared in the
current version.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 221
Interface to Teamcenter
9.2 Process Data Interface (PDI)
Example
<add key="SharedFolder" value="C:\Temp\SchematicsExchangeDir" />
Configure NX accordingly so that the same directory is used.
Procedure
1. Open the project properties.
2. Select the "General settings > Revision options" category.
3. Check in the "Settings" control group whether the "PDFFactory (as of v. 1.5x)" entry has
been selected in the "Revision archive" list.
Procedure
1. Select the desired document in the Navigator.
2. Navigate to the base object.
3. Open the base object properties.
Platform Interfaces
222 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.2 Process Data Interface (PDI)
General
The XML file "pipepartfamilies" is located in the installation directory of COMOS in the "config
\pdi" folder.
A pipe part family from NX has to be mapped for each pipe part in COMOS. The pipe part
family categorizes pipe parts. The mapping is saved in the XML family. The mapping can be
edited in the file "pipepartfamilies.xml" either in COMOS or via an XML editor.
Recommendation
Edit the content of the XML file only in COMOS. See chapter "Editing the XML file
"pipepartfamilies" (Page 223)".
Procedure
1. Open the base project in COMOS.
2. Navigate to a pipe spec.
3. Select a pipe part lying under it.
4. Select the "Teamcenter > Map attribute configuration" command from the context menu.
5. Carry out the required changes in the "Pipe part attribute mapping" window:
– See chapter "Adding an attribute (Page 224)".
– See chapter "Editing an attribute (Page 224)".
– See chapter "Deleting an attribute (Page 225)".
6. Click "OK".
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 223
Interface to Teamcenter
9.2 Process Data Interface (PDI)
Overview
Requirement
You have called up the "Pipe part attribute mapping" window. See chapter "Editing the XML
file "pipepartfamilies" (Page 223)".
Procedure
1. Right-click under a table.
2. Select the "Add row" command.
3. Enter the desired information in the "Pipe part attribute mapping" window.
4. Click "OK".
Requirement
You have called up the "Pipe part attribute mapping" window. See chapter "Editing the XML
file "pipepartfamilies" (Page 223)".
Procedure
1. Right-click the desired attribute.
2. Select the "Edit row" command from the context menu.
Platform Interfaces
224 Operating Manual, 04/2015, A5E32019975-AD
Interface to Teamcenter
9.2 Process Data Interface (PDI)
3. Carry out the required changes in the "Pipe part attribute mapping" window.
4. Click "OK".
Requirement
You have called up the "Pipe part attribute mapping" window. See chapter "Editing the XML
file "pipepartfamilies" (Page 223)".
Procedure
1. Right-click the desired attribute.
2. Select the "Remove row" command from the context menu.
Platform Interfaces
Operating Manual, 04/2015, A5E32019975-AD 225
Interface to Teamcenter
9.2 Process Data Interface (PDI)
Platform Interfaces
226 Operating Manual, 04/2015, A5E32019975-AD