Irish Posted October 2, 2008 Posted October 2, 2008 Thanks to ReMark, Biscuits, CmdrDuh, CAB and ASMI, I was able to figure out how to the the first 1/4 of what I am trying to do. Another important step is trying to create a lisp or script that will automate and emulate the PUBLISHTOWEB command. I am not trying to just call the PUBLISHTOWEB wizard, I want to imitate its actions in a lisp file. I have no idea of what is happening behind the wizard shown in ACAD. Which commands are running behind the scenes? How can I take a list of drawings and have a web page automatically created without any input from the user? Alternatively, how can I create or modify a .ptw log file similar to the one created by the PUBLISHTOWEB wizard. This file stores the settings of a previously created Web page. (If I can create my own ptw files, I can run PUBLISHTOWEB and the web page will be crated in a couple of seconds.) The person that helps me the most will earn a small gift as a sign of gratification (It is small but hey! no other newbie does that!). I know this maybe something you may never use again in your professional. But I will really appreciate any help that will help me to emulate what I am trying to do. At the end of my project I will share and post the code here on this thread. PM Me for details. Quote
ASMI Posted October 2, 2008 Posted October 2, 2008 I think that this problem should be solved not by means of Visual LISP and with the help Visual Studio .NET. As to this platform it is accessible both work with AutoCAD classes and creation dynamic WEB sites. However it is possible to manage and Visual LISP but not to copy action PUBLISHTOWEB and to find the own approach. I not the expert on JavaScript or to another WEB to programming, however can prompt as to create *.dwf files without any dailog windows. For example: (defun CreateDWF(DwfName pc3Path) (vl-load-com) (setq plObj (vla-get-Plot (vla-get-ActiveDocument (vlax-get-acad-object)))) (vla-PlotToFile DwfName pc3Path) ); end of CreateDWF First argument is output *.dwf name, second is fullpath to "DWF6 ePlot.pc3" plotter configuration file. For example: (vla-PlotToFile plObj "Testing.dwf" "C:\\Documents and Settings\\Administrator\\Application Data\\Autodesk\\AutoCAD 2008\\R17.1\\enu\\Plotters\\DWF6 ePlot.pc3") You also can to set plot settings (paper size, layouts to plot and other parameters) for current PlotConfiguration (look PlotConfigurations collection). Quote
Irish Posted October 3, 2008 Author Posted October 3, 2008 Thank you ASMI but that is not exactly what I am trying to do. I am going to use AutoIt and get it done. So the 50 USD reward has been claimed. Thank you for reading! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.