Skip to content

Oseon Export ​

The Oseon adapter creates a Trumpf Oseon import file: an XML file plus the CAD files and documents it references. WSi writes them into a directory, normally the one Oseon watches. WSi sends nothing to a server.

The adapter needs version V25.0 of Oseon's import interface, which is available from Oseon V3.0.0.

When it appears ​

The licence feature oseonExport shows the File → Export → ERP export (Oseon) menu item and the toolbar button with the same name. If you don't see them, contact your sales representative at WSoptics.

Export to Oseon ​

  1. Give every assembly, and every part it is built from, a Part number (internal). You edit it in the Tree View.
  2. Click File → Export → ERP export (Oseon), or the toolbar button.
  3. Choose the directory for the files. A directory picker opens and remembers the last directory. If an administrator has set a target directory, the files go straight there. When that directory does not exist, the error Directory not found appears and the export stops.
  4. WSi writes the files. The XML file is MasterDataImp<id>.xml, where <id> is a random eight-character identifier. The documents and CAD files it references start with the same identifier. WSi writes the XML file last, so Oseon only picks up a complete set.

WARNING

If an assembly or one of its parts has no internal part number, the export stops with the message Data incomplete: "The following assemblies and parts have no internal part number. Oseon would assign one itself and lose the references between an assembly and its parts." The message lists the names. Enter the part numbers and export again.

Cost centers ​

Oseon splits a cost center into an Activity and a Workplace. The Cost center of a process in the process table therefore holds both as Activity/Workplace.

WSi splits the cost center at the / and trims blanks from both parts. It cuts each part at 50 characters. If there is no workplace, WSi sends no workplace. If the process has no cost center, WSi sends the activity undefinedActivity.

TIP

If a work step is missing in Oseon, check in the database that the Cost center of its process in the Processes table is set correctly.

Article data ​

The following fields of an article go into the Oseon import file. A BOM component is an article in the exported bill of materials.

Field in WSiBOM component memberOseon propertyMaximum lengthDescription
NamenameDescription50General purpose description of the part
Part number (external)externalPartNumberPartNoExt50External part number
Drawing number (external)externalDrawingNumberDrawingNo50The drawing number of the part
Revision number (external)externalRevisionNumberVersion10The revision of the part
Part number (internal)internalPartNumberPartNo21Oseon's unique identifier
CommentcommentNote255Additional comments for the part

WSi cuts longer values off at the maximum length. It does not refuse them.

When the internal part number is empty, WSi asks Oseon to assign a part number. An assembly refers to its parts by part number, so Oseon would lose these references if it assigned the numbers itself. This is why the assembly and every part it is built from need an internal part number.

CAD file selection ​

WSi references at most one CAD file for each part. It tries the file formats in a configured order and uses the first one that exists for the part. If the part has several files of that format, WSi uses the last one, so a bent part references the file with the bending details.

You set the order with cadFilenameTypesPriority, a list of geo, dxf and step. Without a setting, the order is geo, then dxf, then step. An empty list switches the CAD file reference off, so no part carries one.

A format must also be created for the export to be eligible. This is controlled by the attachments selected for BOM JSON in the ERP interface - Content setting (see Standard Interface and the Advanced Settings tab). If that setting is not set to BOM JSON, WSi exports a BOM without any optional files. It then creates no CAD files, and no part references one.

Configuration ​

There is no dialog for the Oseon adapter. You change the setting oseonConfig, the configuration of the Oseon adapter, in the Console. The Console is hidden by default and opened from the Windows menu. The call wsi.tables.setting("oseonConfig") returns the current value, or the built-in default when nothing is stored. Save a change with wsi.tables.commit(). Without this call, it only lasts until you close WSi.

MemberTypeDefaultMeaning
targetDirectoryText, optionalNot setThe directory for the XML file and its documents, for example "//trumpf01/pps/masterdata/import". If it is not set, a directory picker opens.
terminalAppendsList of cost centersEmpty listCost centers in the form Activity/Workplace that WSi appends as extra work steps to every article that is not part of another assembly, for example [ "Inspection/OutboundLoadingZone" ].
workStepPrependsObject that maps a cost center to a list of cost centersEmpty objectWSi adds the listed cost centers as extra work steps before every work step with the key's cost center, for example { "LaserCutting/Machine01": [ "Programming/Office" ] }.
workStepAppendsObject that maps a cost center to a list of cost centersEmpty objectWSi adds the listed cost centers as extra work steps after every work step with the key's cost center, for example { "LaserCutting/Machine01": [ "Separating/Machine01" ] }.
workStepInjectionModesObject that maps a cost center to "always", "first" or "last"Empty objectSays how often WSi adds an extra work step, for example { "QualityControl/OutboundLoadingZone": "last" }. A cost center without an entry uses "always".
cadFilenameTypesPriorityList of geo, dxf and step, optionalNot set, which means geo, dxf, stepThe order in which WSi tries the CAD file formats, for example ["geo", "dxf", "step"]. An empty list switches the CAD file reference off.

The extra work steps carry only the cost center, without times or documents. WSi compares cost centers by Activity and Workplace after trimming blanks.

The keys of workStepInjectionModes are the cost centers that WSi adds. The three modes work as follows:

  • "always" adds the extra work step every time a work step matches. This is the default.
  • "first" adds it only at the first match within an article and skips every later match.
  • "last" adds it only at the last match within an article and skips every earlier match.

Use a UNC path for targetDirectory, because the XML file refers to its documents by their full path, and Oseon must be able to reach them under that path.

The following calls set all members and save the change. They leave the target directory unset, so the directory picker opens, and add the work step Programming/Office after every work step with the cost center LaserCutting/Machine01.

js
wsi.tables.updateSetting({
    "content": {
        "value": {
            "cadFilenameTypesPriority": ["geo", "dxf", "step"],
            "targetDirectory": undefined,
            "terminalAppends": [],
            "workStepAppends": {
                "LaserCutting/Machine01": [
                    "Programming/Office"
                ],
            },
            "workStepInjectionModes": {},
            "workStepPrepends": {}
        }
    },
    "type": "oseonConfig"
});
wsi.tables.commit();

See Also ​