Question

How to incorporate a plugin for CLI batch running of a workspace?

  • 21 December 2023
  • 0 replies
  • 17 views

Badge

I can see from the translation log after running with the GUI that there is a plugin imported that allows the readers to operate. How can I incorporate this plugin while running with command line interface?

Here is the output from command line:

fme "C:\FME\my.fmw" --BlockNameLookup "C:\FME\BlockNameLookup.csv" --DWG_InputFile "C:\FME\my.dwg" --DWG_MetaData_File "C:\FME\my.dwg" --DB_Input_CSV "C:\FME\my.csv" --PostGIS_DB_Connection "DEFAULT_NO_CONNECTION" --FEATURE_TYPES "" --FME_LAUNCH_VIEWER_APP "YES"
                FME 2023.1.1.1 (20231011 - Build 23636 - WIN64)
                        FME Form Fixed (node locked-crc)
                               Permanent License.
                        Machine host name is: mymachine
     Operating System: Microsoft Windows Server 2022 64-bit  (Build 20348)
                 Copyright (c) 1994 - 2023, Safe Software Inc.
                               Safe Software Inc.
 
Translation FAILED with 1 error(s) and 3 warning(s) (0 feature(s) output)
 
Module 'acad/ACAD' is unavailable for use with this FME edition
Program Terminating
 
Translation FAILED.

The command line attempt was run with the 'Command line to run this workspace' printed at the top of the translation log. Here is a snip from the log after a successful run of the workspace with the GUI. I think this is the piece I'm missing for the CLI run.

Creating reader for format: 
MULTI_READER(MULTI_READER): Will fail with first member reader failure
MULTI_READER(MULTI_READER): Adding ACAD Reader with keyword ACAD_2
MULTI_READER(MULTI_READER): Adding ACAD Reader with keyword ACAD_3
MULTI_READER(MULTI_READER): Adding CSV2 Reader with keyword CSV2_5
Using Multi Reader with keyword `MULTI_READER' to read multiple datasets
Creating reader for format: Autodesk AutoCAD DWG/DXF
Trying to find a DYNAMIC plugin for reader named `ACAD'
Loaded module 'ACAD' from file 'C:\Program Files\FME\plugins/acad/ACAD.dll'
FME API version of module 'acad/ACAD' matches current internal version (4.0 20230426)
ACAD_2 Reader: Using rich geometry.
AutoCAD Reader: Successfully opened the 'Release2018' AutoCAD file 'C:\FME\my.dwg'

Additionally, I have confirmed that the FME directory that is listed for module loading is including in my PATH environment variable.

 

Thanks!


0 replies

Be the first to reply!

Reply