C# SolidWorks Secondary Development API --- Embed eDrawings Web Viewer in your own web page

This is the Web2 client in the Solidworks PDM system, which can preview many 3D images on the web side. Let’s not consider the advanced problem of PDM. Today I will introduce how to integrate this function into your web page. Realize preview 3D format.
Insert picture description here
Through the request analysis of the web page and the comparison of the back-end server, it is found that the web version of edrawing uses the new scs format to transfer, and does not directly parse the original solidworks files on the web, which ensures the security of the data.
Insert picture description here
It uses an online service to convert files. The following figure is a screenshot of the request on the 3dcontentcentral website:

Insert picture description here
After publishing the web2 client, I found that there will be an eDrawingsWebViewer folder inside: there is a converted folder inside, and I researched again and
Insert picture description here
found a converted Exe file. There is a prompt directly under the cmd command, and the input format is imported. , And the output address can be converted into scs file.
After testing, this conversion tool can directly convert intermediate formats such as x_t step into scs files, which is still very powerful.
Insert picture description here
Insert picture description here

Finally, open main.html directly under the Site folder under the local deployment of iis, and enter the URL to display:

Insert picture description here
At present, it originally has a transit service, which needs to be handled by everyone. The service has not been thoroughly studied yet.

Below is a screenshot of the measurement

Insert picture description here

Guess you like

Origin blog.csdn.net/zengqh0314/article/details/105848025