SergeyBaranov Posted January 26, 2020 Posted January 26, 2020 Hi all ! Sorry for my English... How to open a page in AutoLISP ? You need to get the text content of the URL-page in the list Quote
Tharwat Posted January 27, 2020 Posted January 27, 2020 (startapp "explorer" "https://autolispprograms.wordpress.com") Quote
Sambuddy Posted January 27, 2020 Posted January 27, 2020 On 26/01/2020 at 03:45, SergeyBaranov said: Hi all ! Sorry for my English... How to open a page in AutoLISP ? You need to get the text content of the URL-page in the list You mean something like this? (defun c:test (/ tst) ;(setq tst (findfile "C:\\data\\test.jpeg")) ;;; --> You can use this for opening a file you already have on your computer (setq tst (strcat "www.youtube.com")) ;;; --> Or to open a website (startapp "C:\\Program files\\Internet Explorer\\iexplore.exe" tst) ) ;end defun But I personally like Tharwat's method - short and sweat 1 Quote
tombu Posted January 27, 2020 Posted January 27, 2020 (command-s "_browser" "https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2020/ENU/AutoCAD-Core/files/GUID-261973D6-B582-4584-9175-37500A336A20-htm.html") Opens with the default web browser defined in your system's registry. Macro would be _browser https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2020/ENU/AutoCAD-Core/files/GUID-261973D6-B582-4584-9175-37500A336A20-htm.html Quote
Lee Mac Posted January 27, 2020 Posted January 27, 2020 You might find this thread of interest. Quote
SergeyBaranov Posted February 19, 2020 Author Posted February 19, 2020 Maybe you do not understand me ... I want to open a URL-page and get the text content of the URL-page as a list Quote
Sambuddy Posted February 19, 2020 Posted February 19, 2020 2 hours ago, SergeyBaranov said: Maybe you do not understand me ... I want to open a URL-page and get the text content of the URL-page as a list maybe while searching on a content, you should take a course in mannerism. Typing with larger font and making it bold does not win you any fans! Quote
Steven P Posted February 19, 2020 Posted February 19, 2020 I don't know if any of this would work. A web page is basically a text file and AutoCAD can open and read a text file, this would give you too muchinformation I guess. I guess it would aso read all the web pge coding too. A bit more involved, I know excel can copy a web page text into it (ignoring all the code), I guess word can too? This is the part I am not sure if it is possible, open excel you can do and then - whay I don't know - get it to read the web page. I think I saw somewhere that you can copy from excel to a drawing? Might need to save the excel file. Can you do the excel part with a script? However what I was gong to ask, is your url-page a standard page with standard text that yuo just reference, if so why not just manualy copy it once to a text file and use a LISP to open and read it? If it is a page you have no control over won't that require more checking to ensure it's copied everything as it should... might be quicker just to open the age and copu and paste manualy and exactly wht yuo want? Quote
SergeyBaranov Posted February 20, 2020 Author Posted February 20, 2020 (edited) I plan for my program to access some URL resources, copy their contents, and then process it. Such a mini-parcer Edited February 20, 2020 by SergeyBaranov 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.