Our 3D CAD supplier models have been moved to 3Dfindit.com, the new visual search engine for 3D CAD, CAE & BIM models.
You can log in there with your existing account of this site.
The content remains free of charge.
In the following the most important settings are explained, which are required for a first successful test run. The parts to be imported may be stored in a directory of your choice. From these files a company parts catalog with flat structure is created.
At any location, create a PLM Synchro working directory.
C:\PLM_Synchro\workingdir
Under "workingdir", create one directory for the files to be imported and another to store the process data.
plm_synchro.cfg (most important settings)
[PLMSynchronization] JobBackupDirectory=E:\PLM_Synchro\workingdir\backup
IFace=PdmProxyFSOPdmIfaceC #conversionPath=iface.inventor>partjava OutputFormat=PARTJAVA ToFile=1 ToFileFail=1
[QUERY] documentnamelike0=*.ipt documentnamelike1=*.iam
[CONVERSION] inputversion=iface.inventor
[IMPORT] NameErpID=DOCUMENT_NAME IFace=ci InitMode=1 ciCfg=E:\V1100SP0\setup\classimport.cfg OverwriteMode=0
[Download] Directory=
Details on the
configuration of plm_synchro.cfg
can be found
under ??? (currently only available in
German).
In the course of the PARTsolutions installation all required environment variables have been set. Thus they can be used for launching PLM-Synchro via batch file.
Open the
configuration file %CADENAS_SETUP%/pdmProxies.cfg
.
In the used proxy section (here [PdmProxyFSOPdmIfaceC]) enter the path to the parts to be processed.
[PdmProxiesCommon] ... [PdmProxyVaultIfaceC] ... PdmProxySWEnterprisePdmIfaceC] ... [PdmProxyWindchillIfaceC] ... [PdmProxyFSOPdmIfaceC] ... #:HELP;default; The path to the folder to start the search from. SearchBasePath=C:\PLM_Synchro\workingdir\cad_parts ... [PdmProxyTeamcenterIfaceC] ... [PdmProxyCreoTeamcenterIfaceC] ... [PdmProxyNxTeamcenterIfaceC] ... [PdmProxyTranslator]
If neutral formats shall be processed, please activate the following key. For native formats it has to be deactivated.
[PdmProxyFSOPdmIfaceC]
...
#HELP:default; Unless you want to convert non-cad files (e.g. stp),
keep this key commented out.
conversion_helper_class=pdmProxyConversionHelper_TranslatorLineC
Set ignoreFatalErrors=1 to skip corrupted parts. If the value is not set to 1 the import is cancelled at the first corrupted part.
ignoreFatalErrors=1
Open the
configuration file %CADENAS_SETUP%/ifacecommon.cfg
.
Activate the keys of the chosen proxy (here exemplified iface.inventor)
Check whether all entries are correct, if not please adjust them.
[iface.solidworks] ... [iface.inventor] Name_0=batch RequestLevel_0=1 Command_0=C:\Program Files\Autodesk\Inventor 2017\Bin\Inventor.exe Parameters_0= TimeOut_0=60000 WorkingDirectory_0=C:\Program Files\Autodesk\Inventor 2017\Bin EnhConfiguration_0= ... [iface.solidedge] ... [iface.proewildfire] ... [iface.catia] ... [iface.osdm] ... [iface.ugnx] ...
Open the
configuration file %CADENAS_SETUP%/classimport.cfg
.
Set the CAD identification of the used CAD system and the category name.
[CLASSIMPORT] #:VALS_SE;"STLFILE" #:HELP;default;CAD-Identification for the native parts #:HELP;german;CAD-Kennung für die zu erzeugenden nativen Teile NATIVETYPE=Inventor #:VALS_S;nat,cat #:HELP;default;Name of the category #:HELP;german;Name des neuen Kategorie CATEGORYNAME=cat
Set the internal (CLASSNAME) and external (CLASSDESC) catalog name. CLASSDESC is the displayed catalog name in PARTdataManager. Into this catalog the parts are imported.
CLASSNAME=plmstestcatalog5 CLASSDESC=plmstestcatalog5
For a first test run, deactivate the use of the link database.
#:VALS_N;0,1
#:HELP;default;0=don't use linkdatabase
#:HELP;german;sollen Stammdaten in die Linkdatenbank eingetragen werden. Wenn 0,
dann ohne Stammdaten arbeiten
USELINKDB=0
When
activating the use of the link database please especially regard the
setting under C:\ProgramData\cadenas\partsolutions\setup\classimport.cfg
-> [MATNR_FIELDS]
The most important settings in plm_synchro.cfg
Open the
configuration file %CADENAS_SETUP%/plm_synchro.cfg
.
Each PDM system has its own interface (PdmProxySWEnterprisePdmIfaceC, PdmProxyWindchillIfaceC, PdmProxyCreoTeamcenterIfaceC or PdmProxyNxTeamcenterIfaceC). When using the interface "PdmProxyFSOPdmIfaceC" the native parts are stored in a specified directory.
[job]
#IFace Description: Interface name or identifier. Interface names can be PDM system
names which are then mapped to interface identifiers. Possible values are stored
under $CADENAS_SETUP\pdmProxies.cfg
#Value: Interface name or identifier. PdmProxySWEnterprisePdmIfaceC,
PdmProxyWindchillIfaceC, PdmProxyFSOPdmIfaceC, PdmProxyCreoTeamcenterIfaceC,
PdmProxyNxTeamcenterIfaceC
IFace=PdmProxyFSOPdmIfaceC
Determine the backup directory. Here, all process log files are stored, whereby you can analyse the process and possibly occurring errors.
[job]
BackupDirectory=C:\PLM_Synchro\workingdir\backup
[job]
#TODO: Auch in Conversion möglich? Dann ggf. dahin verschieben...
#OutputFormat Description: Conversion option. Output format identifier.
The documents will be converted to this format.
#Value: Format identifier. STL_REDUCED, PARTJAVA_REDUCED
#OutputFormat=PARTJAVA_REDUCED
OutputFormat=PARTJAVA_REDUCED
A range of filters is available.
For a first test run it makes sense to filter with the file extension (may be only for single parts).
[query]
...
documentnamelike0=*.ipt
documentnamelike1=*.iam
...
#documentnamelike0=*.sldprt
...
#DocumentNameEqual Description: Adds a condition to the query to exactly match
specific document names.
Thereby the CAD is identified, which is used for the conversion of files.
With V10,
inputversion value is linked to block name in ifacecommon.cfg
.
So for Inventor, it would have to be set up like this:
inputversion=iface.inventor
Specify document property, which shall be used for the ERP-ID. With the help of the ERP-ID each line is uniquely identified.
When setting the key NameErpID to "DOCUMENT_NAME" for example, the document name is inserted in the column "ERP_PDM_NUMBER".
[import]
#NameErpID Description: Import option. Name a document property of which to take the
value to set as the ERP-ID for each document. Document properties: CNSUID,
CADIDENT_IDNR, PDM_ID, DOCUMENT_NAME, DOCUMENT_PATH, RELEASE_STATE, PDM_TYPE,
PART_TYPE, DATE_CREATED, DATE_MODIFIED, DATE_RELEASED.
#Value: Document property: CNSUID, CADIDENT_IDNR, PDM_ID, DOCUMENT_NAME, DOCUMENT_PATH,
RELEASE_STATE, PDM_TYPE, PART_TYPE, DATE_CREATED, DATE_MODIFIED, DATE_RELEASED.
NameErpID=DOCUMENT_NAME
Once no changes shall be applied anymore to the existing state, use the value 0.
[import]
OverwriteMode=0
Create a batch file with the following parameters:
"%cadenas%\bin\x86\64\cscripthost.exe" "%cadenas_setup%\scripts\common\plm_synchro.vbb" -cfg "%cadenas_setup%\plm_synchro.cfg" Pause
When all settings are made execute the batch file.
-> The CAD
system is automatically started, the native parts from the directory
C:\PLM_Synchro\workingdir\cad_parts
are sequentially processed, finally the CAD system is automatically closed
again.
-> In
PARTdataManager, a company parts catalog is
created, named as defined in the configuration file classimport.cfg
, in the key
CLASSDESC
.
If you would like
to execute further test runs and keep the catalog just created, change the
catalog name under %cadenas_setup%/classimport.cfg
.
[CLASSIMPORT] CLASSNAME=plmstestcatalog7 CLASSDESC=plmstestcatalog7
All process files
have been stored under C:\PLM_Synchro\workingdir\backup
.
At a faultless
process the entries in the log file classimport.log
should be similar
like this:
17.12.2014 14:46:21 Lock file was opened 17.12.2014 14:46:21 Import class structure 17.12.2014 14:46:21 Import Attributes 17.12.2014 14:46:21 Add attributes for 2-001730_0_2.ipt in class 2-001730_0_2.ipt 17.12.2014 14:46:21 Import images and 3d files 17.12.2014 14:46:21 Update STL file C:/cadenas/partsolutions/data/pool/insertpool/... 17.12.2014 14:46:22 Update preview file C:\cadenas\partsolutions\data\pool\insertpool\... 17.12.2014 14:46:22 Update STL file 2-001730_0_2.ipt.stl 17.12.2014 14:46:22 Activate attributes 17.12.2014 14:46:22 Activate class structure 17.12.2014 14:46:22 Generate index 17.12.2014 14:46:22 Index has been generated 17.12.2014 14:46:22 Generate geometrical index 17.12.2014 14:46:24 Geometrical index has been generated 17.12.2014 14:46:24 Generate configuration files for search 17.12.2014 14:46:24 Generate lucene index for search 17.12.2014 14:46:26 Search index has been generated 17.12.2014 14:46:26 Lock file was unlinked 17.12.2014 14:46:26 update finished 17.12.2014 14:46:26 Status: OK