cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] DWG transformation

tsafarog
Champ on-the-rise
Champ on-the-rise
Hello thank you for reading this

I am trying to use the transformer capabilities of alfresco to get a preview of dwg files.

My sources were:
1)http://wiki.alfresco.com/wiki/Content_Transformations
and the conversation below eventhout it seems a bit outdated.
2)https://forums.alfresco.com/forum/general/non-technical-alfresco-discussion/autocad-dwg-pdf-transfor...

I am using Community version 5

I have tried the pdf transformation using Irfanview. Irfanview has BabaCAD4Image.dll and i can preview there my DWG documents but i also purchased a licence for CS_DWG.dll to test. Nothing works for me i either get a spining cycle when Alfresco share tried to do the preview or i get :

An error has occured in the Share component: /share/service/components/dashlets/my-sites.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 06290003 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/dashlets/my-sites.get.js': 06290002 06290003 Failed during processing of IMAP server status configuration from Alfresco: 06290002 Unable to retrieve IMAP server status from Alfresco: 404
Server: Alfresco Spring WebScripts - v1.2.0 (Release 1549) schema 1,000

this is what i have done so far:

I added the mimetype image/x-dwg unders mimetypes-extension-map.xml

Transform to pdf (dwg2pdf-context.xml)


?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>

<bean id="transformer.worker.dwg2pdf" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker">
        <property name="mimetypeService">
         <ref bean="mimetypeService" />
      </property>
      <property name="checkCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandsAndArguments">
                <map>
                    <entry key=".*">
               <list>
                        <value>E:\ECM\bin\IrfanView\i_view32.exe</value>
                  <value>E:\ECM\bin\IrfanView\jtp.gif</value>
                  <value>/convert=E:\ECM\bin\IrfanView\jtp.png</value>
                    </list>
               </entry>
                </map>
            </property>
         </bean>
        </property>
         <property name="transformCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandsAndArguments">
                <map>
            <entry key=".*">
            <list>
                    <value>E:\ECM\bin\IrfanView\i_view32.exe</value>
                  <value>${source}</value>
                  <value>/convert=${target}</value>
            </list>      
                                </entry>
                </map>
            </property>
            <property name="errorCodes">
               <value>1,2</value>
            </property>
         </bean>
      </property>
      <property name="explicitTransformations">
         <list>
            <bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" >
                <property name="sourceMimetype"><value>image/x-dwg</value></property>
               <property name="targetMimetype"><value>application/pdf</value></property>
            </bean>
         </list>
      </property>
   </bean>

   <bean id="transformer.dwg2pdf" class="org.alfresco.repo.content.transform.ProxyContentTransformer" parent="baseContentTransformer">
      <property name="worker">
         <ref bean="transformer.worker.dwg2pdf" />
      </property>
   </bean>


<!– DWG to SWF –>

<bean id="transformer.complex.dwg2pdf.pdf2swf"
        class="org.alfresco.repo.content.transform.ComplexContentTransformer"
        parent="baseContentTransformer" >
      <property name="transformers">
         <list>
            <ref bean="transformer.dwg2pdf" />
            <ref bean="transformer.pdf2swf" />
         </list>
      </property>
      <property name="intermediateMimetypes">
         <list>
            <value>application/pdf</value>
         </list>
      </property>
      <property name="explicitTransformations">
         <list>
               <bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" >
                       <property name="sourceMimetype"><value>image/x-dwg</value></property>
                       <property name="targetMimetype"><value>application/x-shockwave-flash</value></property>
            </bean>
         </list>
      </property>   
  </bean>

</beans>



If i add the DGW to PNG transform in the script i cant even get alfresco to load

After doing alterations with no success i tried to make transformer from DWG to PNG and DWG to GIF altering the above script with no success. I am not interested in detailed preview.

Any help would be greatly appreciated to get this working

Thanks in advance

Chris


(Edit by AFaust 2014/08/07: As per the latest comment I have moved the entire thread into "Developer Discussions" => "Repository Services")
26 REPLIES 26

First, when developing transformations, turn on information level messaging for transforms. This is in log4j properties file. This will cause Alfresco to dump out just about everything its doing to the logs.

Second, your transform above seems to try and go beyond PDF and into SWF, which I suspect you don't want to do.

Third your my-sites.get.js error is about IMAP and nothing to do with this transform.

Finally as at 4.? you also need to set up your transforms in alfresco-global.properties and not in your XML. This change is in the community information but its not that explicit and many many examples are from the older way of setting up transforms which can have some nasty side effects in the more recent releases.

Here is a transform I wrote to do html to pdf using wkhtmltopdf. To avoid overwriting the standard transform for html to pdf (which uses LibreOffice) I defined an additional mimetype with extension obc


<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
   <bean id="transformer.worker.html2pdf" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker">
      <property name="mimetypeService">
         <ref bean="mimetypeService" />
      </property>
      <property name="checkCommand">
            <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandMap">
               <map>
                  <entry key=".*">
                     <value>/usr/local/bin/wkhtmltopdf -help</value>
                  </entry>
               </map>
            </property>
            <property name="errorCodes">
               <value>2</value>
            </property>
         </bean>
      </property>
      <property name="transformCommand">
            <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandsAndArguments">
               <map>
                  <entry key="Linux">
                       <list>
                         <value>sh</value>
                         <value>-c</value>
                     <value>/usr/local/bin/html2pdf '${source}' '${target}'</value>
                       </list>
                  </entry>
                  <entry key="Windows.*">
                       <list>
                         <value>cmd</value>
                         <value>/C</value>
                     <value>/usr/local/bin/html2pdf "${source}" "${target}"</value>
                       </list>
                  </entry>
               </map>
            </property>
            <property name="errorCodes">
               <value>2</value>
            </property>
         </bean>
      </property>
   </bean>
   <bean id="transformer.html2pdf" class="org.alfresco.repo.content.transform.ProxyContentTransformer" parent="baseContentTransformer">
        <property name="worker">
            <ref bean="transformer.worker.html2pdf" />
        </property>
    </bean>
</beans>


and the alfresco-global.properties entries are:-


# What follows are the custom transforms
# for outbound letters
# the imput format is actually HTML
# the output PDF
# Define a default priority for the transformer
content.transformer.html2pdf.priority=50
# List the transformations that are supported
content.transformer.html2pdf.extensions.obc.pdf.supported=true
content.transformer.html2pdf.extensions.obc.pdf.priority=50

tsafarog
Champ on-the-rise
Champ on-the-rise
Bob thank you so much for your usefull information…

I must admit that i missed the part that sais that you need to mention the transformer in the global config.

I will try what you suggested but for the record the site.js error i get it only if i dont do something right in the transformer.. if i remove the transformer i get no errors.

Thank you again and i will update asap

tsafarog
Champ on-the-rise
Champ on-the-rise
Update

I changed application because i for some reason in the checkcommand i couldnt get the dwg to convert in pdf with Irfanview. So i changed applications with AcmeCadconverter which works just fine in the checkcommand

So now my tranformer looks like this and according to Bob's directions (thanks for your input)


<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>

<!– TRASFORMA DWG IN PDF   –>
<bean id="transformer.worker.dwg2pdf" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker">
        <property name="mimetypeService">
         <ref bean="mimetypeService" />
      </property>
      <property name="checkCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandsAndArguments">
                <map>
                    <entry key=".*">
               <list>
                      <value>cmd</value>
                      <value>/C</value>
                  <value>E:\\ECM\\bin\\acme\\AcmeCADConverter.exe /r /ad /f 104 E:\\ECM\\bin\\acme\\dtp.dwg dtp.pdf</value>
               </list>
               </entry>
                </map>
            </property>
         <property name="errorCodes">
               <value>1,2</value>
         </property>
         </bean>
        </property>
         <property name="transformCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandsAndArguments">
               <map>
                  <entry key="Linux">
                       <list>
                         <value>sh</value>
                         <value>-c</value>
                        <value>E:\\ECM\\bin\\acme\\AcmeCADConverter.exe /r /ad /f 104 '${source}' '${target}'</value>
                  </list>
                  </entry>
                  <entry key="Windows.*">
                       <list>
                         <value>cmd</value>
                         <value>/C</value>
                      <value>E:\\ECM\\bin\\acme\\AcmeCADConverter.exe /r /ad /f 104 "${source}" "${target}"</value>
                  </list>
                   </entry>
                    </map>
            </property>
         <property name="errorCodes">
               <value>1,2</value>
         </property>
         </bean>
      </property>
      <property name="explicitTransformations">
         <list>
            <bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" >
                <property name="sourceMimetype"><value>image/vnd.dwg</value></property>
            <property name="targetMimetype"><value>application/pdf</value></property>
            </bean>
         </list>
      </property>
   </bean>
   <bean id="transformer.dwg2pdf" class="org.alfresco.repo.content.transform.ProxyContentTransformer" parent="baseContentTransformer">
      <property name="worker">
         <ref bean="transformer.worker.dwg2pdf" />
      </property>
   </bean>

</beans>


I also updated global.properties file as following


### External executable locations ###
ooo.exe=E:\\ECM\\libreoffice\\App\\libreoffice\\program\\soffice.exe
ooo.enabled=true
ooo.port=8100
img.root=E:\\ECM\\imagemagick
img.coders=${img.root}\\modules\\coders
img.config=${img.root}\\config
img.gslib=${img.root}\\lib
img.exe=${img.root}\\convert.exe
swf.exe=E:\\ECM\\swftools\\pdf2swf.exe
swf.languagedir=E:\\ECM\\swftools\\japanese
dwg.exe=E:\\ECM\\bin\\acme\\AcmeCADConverter.exe
img.gslib=E:\\ECM\\bin\\gs9.09\\lib

jodconverter.enabled=true
jodconverter.officeHome=E:\\ECM\\libreoffice\\App\\libreoffice
jodconverter.portNumbers=8100

# What follows are the custom transforms
# Imput dwg the output is PDF
# Define a default priority for the transformer
content.transformer.dwg2pdf.priority=50
# List the transformations that are supported
content.transformer.dwg2pdf.extensions.dwg.pdf.supported=true
content.transformer.dwg2pdf.extensions.dwg.pdf.priority=50


THIS LOG OUTPUT


11:41:45,596 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-5] 6             dwg  txt  GRAMMIKO KIATO RIO_new2.dwg 288.4 KB – index – SolrIndexer NO transformers
11:41:45,596 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-5] 6             Finished in 0 ms Transformer NOT called

11:41:45,690 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-9] 7             dwg  txt  GRAMMIKO KIATO RIO_new2.dwg 288.4 KB – index – SolrIndexer NO transformers
11:41:45,690 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-9] 7             Finished in 0 ms Transformer NOT called

11:41:53,672 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-17-thread-1] 8             dwg  pdf  GRAMMIKO KIATO RIO_new2.dwg 288.4 KB – pdf – ContentService.transform(…)
11:41:53,672 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-17-thread-1] 8             **a)  [50] dwg2pdf<<Runtime>>           0 ms
11:41:53,672 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-17-thread-1] 8.1           dwg  pdf  GRAMMIKO KIATO RIO_new2.dwg 288.4 KB dwg2pdf<<Runtime>>
11:42:06,938 DEBUG [org.alfresco.util.exec.RuntimeExec] [pool-17-thread-1] Execution result:
   os:         Windows Server 2012
   command:    cmd /C "E:\\ECM\\bin\\acme\\AcmeCADConverter.exe /r /ad /f 104 "E:\ECM\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_source_1366542181829387142.dwg" "E:\ECM\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_target_1118018117675185787.pdf""
   succeeded:  true
   exit code:  0
   out:       
   err:       
11:42:06,953 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-17-thread-1] 8             Finished in 13.281 ms

11:42:15,485 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-8] 9             dwg  txt  GRAMMIKO KIATO RIO_new2.dwg 288.4 KB – index – SolrIndexer NO transformers
11:42:15,485 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-8] 9             Finished in 0 ms Transformer NOT called


The result in share is "Could not load pdf content"

Ok the weird thing i noticed

The target file on the debug is 0KB under tomcat/temp directory and once i get the error message in the preview that it cannot load pdf file, then another source file PDF is created from the DWG that is working just fine. Meaning that i have 3 files under tomcat/temp directory
1) RuntimeExecutableContentTransformerWorker_source_1366542181829387142.dwg (this is the source file)
2) RuntimeExecutableContentTransformerWorker_target_1118018117675185787.pdf (this one is 0KB size file)
3) RuntimeExecutableContentTransformerWorker_source_1366542181829387142.pdf (this is the correct converted dwg file but it only appears after i get the error message in the share previewer)

Another notice
The transform only occurs for newly uploaded files if the file already exists in the repository it wont try the conversion

Please advice

Kind Regards

Christos


tsafarog
Champ on-the-rise
Champ on-the-rise
It would be really nice if an admin could move this to developer section so i could get some more views and help

Sorry for the inconvinience

Kind regards

afaust
Legendary Innovator
Legendary Innovator
Hello,

as per your request I have moved this thread into Developer Discussions => Repository Services (which includes transformation services).
I will check if I can do something about https://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/dwg-pdf-transform... but it seems I can not do as much in that sub-forum as I could with this thread.

Regards
Axel

tsafarog
Champ on-the-rise
Champ on-the-rise
Thank you very much Mr Faust,

i ll try and close that other thread

I am updating the last script with the latest tries i performed but i believe this is not a script error….. for some reason i am still getting 3 files in the temp directory and the converted file is 0KB

Hello i am trying to get previews of DWG files (autocad drawings) into my alfresco share

I first tried with Irfanview but changed application because for some reason in the checkcommand i couldnt get the dwg to convert in pdf. So i changed applications with AcmeCadconverter which works just fine in the checkcommand

So now my tranformer looks like this:


<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>

<!– TRASFORMA DWG IN PDF   –>
<bean id="transformer.worker.dwg2pdf" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker">
        <property name="mimetypeService">
         <ref bean="mimetypeService" />
      </property>
      <property name="checkCommand">
         <bean name="transformer.dwg2pdf.checkCommand" class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandsAndArguments">
                <map>
                    <entry key=".*">
                  <list>
                   <value>cmd</value>
                        <value>/C</value>
                  <value>${dwg2pdf.root}/AcmeCADConverter.exe /r /ad /f 104 E:\ECM\bin\acme\dtp.dwg dtp.pdf</value>
                  </list>
               </entry>
                </map>
            </property>
         </bean>
        </property>
         <property name="transformCommand">
         <bean name="transformer.dwg2pdf.Command" class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandsAndArguments">
               <map>
                  <entry key="Linux.*">
                  <list>
                   <value>sh</value>
                        <value>-c</value>
                    <value>${dwg2pdf.root}/AcmeCADConverter /r /ad /f 104 ${source} ${target}</value>
                  </list>
                  </entry>
                  <entry key="Windows.*">
                  <list>
                  <value>cmd</value>
                        <value>/C</value>
                  <value>${dwg2pdf.root}/AcmeCADConverter.exe /r /ad /f 104 ${source} ${target}</value>
                    </list>
                  </entry>
                    </map>
            </property>
         <property name="waitForCompletion">
                <value>true</value>
            </property>
         </bean>
      </property>
      <property name="explicitTransformations">
         <list>
            <bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" >
                <property name="sourceMimetype"><value>image/vnd.dwg</value></property>
            <property name="targetMimetype"><value>application/pdf</value></property>
            </bean>
         </list>
      </property>
   </bean>
  
   <bean id="transformer.proxy.dwg2pdf" class="org.alfresco.repo.management.subsystems.SubsystemProxyFactory">
    <property name="sourceApplicationContextFactory">
      <ref bean="thirdparty"/>
    </property>
    <property name="sourceBeanName">
      <value>transformer.worker.dwg2pdf</value>
    </property>
    <property name="interfaces">
      <list>
        <value>org.alfresco.repo.content.transform.ContentTransformerWorker</value>
      </list>
    </property>
  </bean>
 
   <bean id="transformer.dwg2pdf" class="org.alfresco.repo.content.transform.ProxyContentTransformer" parent="baseContentTransformer">
      <property name="worker">
         <ref bean="transformer.worker.dwg2pdf" />
      </property>
   </bean>

</beans>


I also updated global.properties file as following


### External executable locations ###
ooo.exe=E:\\ECM\\libreoffice\\App\\libreoffice\\program\\soffice.exe
ooo.enabled=true
ooo.port=8100
img.root=E:\\ECM\\imagemagick
img.coders=${img.root}\\modules\\coders
img.config=${img.root}\\config
img.gslib=${img.root}\\lib
img.exe=${img.root}\\convert.exe
swf.exe=E:\\ECM\\swftools\\pdf2swf.exe
swf.languagedir=E:\\ECM\\swftools\\japanese
dwg2pdf.root=E:\\ECM\\bin\\acme
img.gslib=E:\\ECM\\bin\\gs9.09\\lib

jodconverter.enabled=true
jodconverter.officeHome=E:\\ECM\\libreoffice\\App\\libreoffice
jodconverter.portNumbers=8100

# What follows are the custom transforms
# Imput dwg the output is PDF
# Define a default priority for the transformer
content.transformer.dwg2pdf.priority=50
# List the transformations that are supported
content.transformer.dwg2pdf.extensions.dwg.pdf.supported=true
content.transformer.dwg2pdf.extensions.dwg.pdf.priority=50


THIS LOG OUTPUT


11:41:45,596 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-5] 6             dwg  txt  GRAMMIKO KIATO RIO_new2.dwg 288.4 KB – index – SolrIndexer NO transformers
11:41:45,596 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-5] 6             Finished in 0 ms Transformer NOT called

11:41:45,690 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-9] 7             dwg  txt  GRAMMIKO KIATO RIO_new2.dwg 288.4 KB – index – SolrIndexer NO transformers
11:41:45,690 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-9] 7             Finished in 0 ms Transformer NOT called

11:41:53,672 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-17-thread-1] 8             dwg  pdf  GRAMMIKO KIATO RIO_new2.dwg 288.4 KB – pdf – ContentService.transform(…)
11:41:53,672 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-17-thread-1] 8             **a)  [50] dwg2pdf<<Runtime>>           0 ms
11:41:53,672 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-17-thread-1] 8.1           dwg  pdf  GRAMMIKO KIATO RIO_new2.dwg 288.4 KB dwg2pdf<<Runtime>>
11:42:06,938 DEBUG [org.alfresco.util.exec.RuntimeExec] [pool-17-thread-1] Execution result:
   os:         Windows Server 2012
   command:    cmd /C "E:\\ECM\\bin\\acme\\AcmeCADConverter.exe /r /ad /f 104 "E:\ECM\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_source_1366542181829387142.dwg" "E:\ECM\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_target_1118018117675185787.pdf""
   succeeded:  true
   exit code:  0
   out:       
   err:       
11:42:06,953 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-17-thread-1] 8             Finished in 13.281 ms

11:42:15,485 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-8] 9             dwg  txt  GRAMMIKO KIATO RIO_new2.dwg 288.4 KB – index – SolrIndexer NO transformers
11:42:15,485 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-8] 9             Finished in 0 ms Transformer NOT called


The result in share is "Could not load pdf content"

Ok the weird thing i noticed

The target file on the debug is 0KB under tomcat/temp/afresco directory and once i get the error message in the preview that it cannot load pdf file, then another source file PDF is created from the DWG that is working just fine. Meaning that i have 3 files under tomcat/temp directory
1) RuntimeExecutableContentTransformerWorker_source_1366542181829387142.dwg (this is the source file)
2) RuntimeExecutableContentTransformerWorker_target_1118018117675185787.pdf (this one is 0KB size file)
3) RuntimeExecutableContentTransformerWorker_source_1366542181829387142.pdf (this is the correct converted dwg file but it only appears after i get the error message in the share previewer)

Another notice
The transform only occurs for newly uploaded files if the file already exists in the repository it wont try the conversion

Please advice

Kind Regards

Christos

tsafarog
Champ on-the-rise
Champ on-the-rise
so anyone with an idea? do you need me to post some more info?

Kind regards

kaynezhang
World-Class Innovator
World-Class Innovator
I guess the issue is caused by AcmeCADConverter,you might give it wrong parameters which leads it always saving the output file(pdf file) into the same folder as the input file(dwg file) and with the same name,only a different extension.
So even if the output pdf file is generated ,but it is not named according alfresco'need. And an empty pdf file is created when alfresco try to read the correct path(in your case
RuntimeExecutableContentTransformerWorker_target_1118018117675185787.pdf
).

but aren't ${source} and ${target} the full input and output paths?

Here are all the command line supported commands for acme cad converter http://www.dwg2pdf.biz/dwg-converter/cmd.htm

If anyone has a command suggestion please share

Kind regards and thank you in advance for your time

kaynezhang
World-Class Innovator
World-Class Innovator
Yes  ${source} and ${target} are the full input and output path.
But AcmeDWGConverter  command line format is like following

AcmeDWGConverter [/r] [/e] [/m] [/info] [/l filaname] [/ls] [/info] [/p integer] [/w integer] [/h integer] [/b integer] [/j integer] [/f integer] [filename] [filename] …


But it seems command line format says that [filename] [filename] are all input parameter.I guess you should use /d parameter,write it like this

<code> AcmeCADConverter /r /ad /f 105 /d ${target} ${source} 
</code>
I just read it from http://www.dwg2pdf.biz/dwg-converter/cmd.htm ,I have not tested ,you can give it a try.