Alfresco

Alfresco QCAD Integration for CAD Files Preview

Alfresco is a widely used Document Management System across the manufacturing and EPC (Engineer, Procurement, Construction) industry. One of the key document types in this segment is 2D and 3D CAD files which are generated through AutoCAD and other such CAD software. Alfresco default document previewer doesn't support these files, so the users can't view the documents within Alfresco. However, we can integrate QCAD software with Alfresco to enable users to view these CAD files within Alfresco document viewer.


In this blog, we have provided QCAD - Alfresco integration steps in the Linux environment for the developers.


Install QCAD using the following steps. (Linux)

1. Download following file
https://www.dropbox.com/s/kwwolj6kzckysvf/qcad-3.17.3-trial-linux-x86_64.run
 

2. Install QCAD using the following command
Go to the path where the above file is copied.
 

 ./qcad-3.17.3-trial-linux-x86_64.run press enter 

3. Copy and paste the following lines at the starting of alfresco.sh file located at /opt/alfresco-community/
(These are the environment variables which are need to be set before starting QCAD)

export QT_STYLE_OVERRIDE=""
export QT_QPA_PLATFORM=offscreen
export DISPLAY=""
export QT_QPA_FONTDIR="/usr/local/share/fonts/type1"
 

4. Place the following files at alfresco-community/tomcat/shared/classes/alfresco/extension/
https://www.dropbox.com/s/vhvp4ka1doym675/dwg2swf-transform-context.xml
https://www.dropbox.com/s/ns2rdh8vpl1nmhb/dxf2swf-transform-context.xml
https://www.dropbox.com/s/xaeiag05898z5pc/web-preview.get.config.xml
 

5. Add following in alfresco-community/tomcat/shared/classes/alfresco/extension/mimetype/mimetyps-extension-map.xml


dxf


.dxf

 

6. Add the following at alfresco-global.properties file
 # QCAD Configuration Properties #
transformer.strict.mimetype.check=false
dwg2pdf.root=/root/opt/qcad-3.17.3-trial-linux-x86_64
dwg2pdf.root=C:/Program Files/QCAD

content.transformer.dwg2pdf.priority=50
content.transformer.dwg2pdf.extensions.dwg.pdf.supported=true
content.transformer.dwg2pdf.extensions.dwg.pdf.priority=50
content.transformer.dxf2pdf.priority=50
content.transformer.dxf2pdf.extensions.dxf.pdf.supported=true
content.transformer.dxf2pdf.extensions.dxf.pdf.priority=50 

7. Restart the server
 

8. To test the QCAD
Upload the .dxf or .dwg file, they should be previewed in Alfresco.

qcad-screenshot QCAD integration will support popular file extensions such as DWG, DXF, PDF, PNG, JPEG, TIF, GIF, BMP, WRL, TIF, PSD in 2D and OBJ, 3DS, STL, WRL in 3D.


As an Alfresco ECM & BPM expert, Tridhya Tech  team has been associated with several clients where Alfresco was deployed to store, govern and retrieve the CAD files. It is not essential to do the Alfresco AutoCAD integration, but the previewer would suffice. The rest of the functionality would be leveraged from the Alfresco Enterprise Content Management platform.

A Preparation Guide for Alfresco Certified Engineer Test

Alfresco

A Preparation Guide for Alfresco Certified Engineer Test

This blog serves as a comprehensive preparation guide for individuals planning to take the Alfresco Certified Engineer test, offering valuable insights, resources, and tips to help them succeed in the certification exam.

Alfresco

Running Alfresco AngularJS Application (0.5.1) without Activiti Explorer

This blog may explain how to run an Alfresco AngularJS application version 0.5.1 independently without the need for Activiti Explorer, offering insights for developers on deploying and utilizing the application in a standalone fashion.

Transform Your Business With Digital Enterprise Solutions

Contact us

Our Offices

INDIA AHMEDABAD, INDIA

401, One World West, Nr. Ambli T-Junction 200, S P Ring Road, Bopal, Ahmedabad, Gujarat 380058

UK
UK

Kemp House 160 City Road, London, United Kingdom EC1V 2NX

GERMANY GERMANY

Nürnberger Str. 46 90579 Langenzenn Deutschland

AUSTRALIA AUSTRALIA

Level 36 Riparian Plaza, 71 Eagle Street, Brisbane, QLD 4000

USA USA

4411 Suwanee Dam road, Bld. 300 Ste. 350 Suwanee GA, 30024

SOUTH AFRICA SOUTH AFRICA

Cube Work Space, 24 Hans Strijdom Avenue, Cape Town

UAE DUBAI, UAE

B 503 Sama Tower, Sheikh Zayed Road, United Arab Emirates