API-icon.png

Unknown macro: floating-toc

Create Imports

This page shows some examples how to create simple imports via scripting in Unknown macro: jbeam-sign.

Data Imports

Within the Unknown macro: jbeam-sign package, the jbComponentIF defines the different data file import types. (com.AMS.jBEAM.jbComponentIF) The availability of the component types depends on the customer license.

TypeClass (com.AMS.jBEAM)
ASCII_FILEFileImport_ASCII
EDAS_FILEFileImport_EDAS
CBEAM_FILEFileImport_cBEAM
DIADEM_FILEFileImport_Diadem
FAMOS_FILEFileImport_famos
PTV_FILEFileImport_PTV
GIDAS_FILEFileImport_Gidas
NETCFD_FILEFileImport_NetCDF
TEAC_FILEFileImport_TEAC
ETAS_FILEFileImport_ETAS
ISO13499MME_FILEFileImport_ISO13499MME
TECPLOT_FILEFileImport_Tecplot
RPC3_FILEFileImport_RPC3
DASYLAB_FILEFileImport_Dasylab
MATLAB_FILEFileImport_Matlab
TypeClass (com.AMS.jBEAM)
HBM_MGC_FILEFileImport_HMMmgcplus
AFT_FILEFileImport_AFT
YOKOGAWA_FILEFileImport_Yokogawa
DBASE_FILEFileImport_DBase
ASAM_ATF_FILEFileImport_ASAM_ATF
HICORDER_FILEFileImport_Hicorder
NICOLET_FILEFileImport_Nicolet
UFF_FILEFileImport_UniFileFormat
PA_TOOLS_FILEFileImport_PAtools
Q_DAS_FILEFileImport_Qdas
MADYMO_FILEFileImport_Madymo
ZWICK_FILEFileImport_Zwick
GANTNER_UDB_FILEFileImport_Gantner_UDB
IFILE_AVL_FILEFileImport_FFILE_AVL
PORSCHE_PDS_FILEFileImport_PorschePD5

Multimedia Imports

TypeClass (com.AMS.jBEAM)
AUDIO_FILEMuMeImport_Audio
IMAGE_IO_FILEMuMeImport_PixImage
VIDEO_FILEMuMeImport_Video
PROCESSVIS_FILEFileIO_ProcessVIS

Import Sample

import com.AMS.jBEAM.*;

// import type for FAMOS import
int importType = jbComponentIF.FAMOS_FILE;
// no editor dialog of component
boolean withEditor = false;

// new FAMOS importer component
FileImport_Famos famosImporter = (FileImport_Famos)jC.newComponent (importType, withEditor);
famosImporter.setProducerNameIsFileName(false);
// sets name of component
famosImporter.setName("Famos_Import");
// get FAMOS file
importFile = new  ("C:\\famos\\famos.raw");
// sets import file
famosImporter.setImportFile(importFile);
// validate framework to import file and get a valid jBEAM
jC.validateFramework();

Import ASCII-file with profile

import com.AMS.jBEAM.*;

//sets profile
File profileFile = new File("C:/Folder/Profiles/Profile.aix");
//sets data-file
File impFile = new File("C:/Folder/Data.txt");
FileImport_ASCII imp = jC.newComponent(FileImport_ASCII.class);
imp.setImportFile(impFile);
imp.loadProfile(profileFile);

See also


Copyright by Kistler Chemnitz GmbH 2021
XWiki Enterprise 4.4 - Documentation