Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hi!
Can somebody help me how to publish .dwg drawing in windchill?., because when I'm upload .dwg drawing in windchill the visualization of the drawing is not working.
Thanks!
Solved! Go to Solution.
There is not a Creo View adapter that is capable of publishing DWG (or DXF) files. Fortunately, one isn't needed since Creo View can open these files directly. The trick is to tell Windchill that the data has already been published and to just create the thumbnail. Full instructions can be found here:
Automatically generate representation for pre-converted files (CS36856)
Here are the commands I ran on my system to do this very thing: (10.2 M020)
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..DWG=DUMMY,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..DXF=DUMMY,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..PDF=DUMMY,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..BMP=DUMMY,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..JPG=DUMMY,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..TIF=DUMMY,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..GIF=DUMMY,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..PVZ=DUMMY,type=zip,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..EDZ=DUMMY,type=zip,preconverted=true
xconfmanager -p
After making the changes you will need to stop Windchill, clear the Tomcat caches, and restart.
There is not a Creo View adapter that is capable of publishing DWG (or DXF) files. Fortunately, one isn't needed since Creo View can open these files directly. The trick is to tell Windchill that the data has already been published and to just create the thumbnail. Full instructions can be found here:
Automatically generate representation for pre-converted files (CS36856)
Here are the commands I ran on my system to do this very thing: (10.2 M020)
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..DWG=DUMMY,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..DXF=DUMMY,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..PDF=DUMMY,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..BMP=DUMMY,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..JPG=DUMMY,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..TIF=DUMMY,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..GIF=DUMMY,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..PVZ=DUMMY,type=zip,preconverted=true
xconfmanager -t codebase/WEB-INF/conf/wvs.properties -s worker..EDZ=DUMMY,type=zip,preconverted=true
xconfmanager -p
After making the changes you will need to stop Windchill, clear the Tomcat caches, and restart.
Hi Tom.
Thanks for the help. Where is the path to clear the tomcat cache?
<Windchill_Home>\tasks\codebase\com\infoengine\compiledTasks
I will delete the folder inside complied tasks?
Thanks!
There are two folders to delete. I have these lines in a .bat file:
echo off
RMDIR E:\ptc\Windchill_10.2\Windchill\tomcat\instances /Q /S
RMDIR E:\ptc\Windchill_10.2\Windchill\tasks\codebase\com\infoengine\compiledTasks /Q /S
Hi Tom!
I'm done doing all your reply and its a success!!
Thank you so much!
Hi, follow up question., is there a thumbnail image in pdf?