Jump to content

All Activity

This stream auto-updates

  1. Past hour
  2. @Nikon What are your reasons for not loading programs using the acaddoc.lsp (which can be easily manipulated programmatically), versus using the Startup Suite (which is difficult to manipulate programmatically)?
  3. AFAIK you need other than LISP to do exactly what you want. I doubt if anyone would do a lot of work for a one off program, as most use the already mentioned methods. Here are the recommended methods for doing this, most already mentioned. AutoCAD 2026 Help | About Auto-Loading and Running AutoLISP Routines | Autodesk You could use the Windows registry, maybe. Load lisp in Startup suite via lisp - AutoLISP, Visual LISP & DCL - AutoCAD Forums Lee Mac has a ACADDOC creator. ACADDOC.lsp Creator | Lee Mac Programming And an Autoloader LISP. Autoloader | Lee Mac Programming I agree with this.
  4. Today
  5. I don't know of any way to load anything from a text file (or any other) other than calling some Lisp code from acad.lsp, acadDoc.lsp, acad####.lsp, acad####Doc.lsp, or from 'Start Suite'. An alternative to all this is a script. But it's not much different.
  6. Hi, My goal is to isolate the duplicated elements for edition and further scrutiny. I keep the programm you propose though. I will try to see how it behave on my list as soon as I have the time. Thanks and best regards, Jacques
  7. I thank everyone once again and ask once again if it is possible not to use acad.lsp, MNL, CUI. You can simply add several lisp files from notepad to the startup or insert a list of files into the code so as not to specify the path.
  8. Yesterday
  9. I'm still not understanding why this won't do the trick. I've been successfully loading files for 20+ years using a version of that code and a custom MNL tied to a partial CUI. Adding a bunch of lisp routines to the startup suite is not standard practice ( well at least in my little world : ) )
  10. I am still sticking with a menu option you can use Lisp to write menu code, it wont be 100% accurate but saves an enormous amount of typing and reduces creation time.
  11. Something important: AutoCAD may have been running without administrator privileges. Make sure of this.
  12. I’m leaving here another option that directly deletes all duplicates. I’ve tested it with lists of 40,000 elements, but many of the sublists were repeated. I’m curious to see how it behaves with a list like the one you’re working with. (defun xxx (lst / elm as p n) (while (setq elm (nth (if n n 0) lst)) (while (setq as (assoc (car elm) (cdr (member elm lst)))) (setq lst (vl-remove (setq p as) lst)) ) (if p (setq lst (vl-remove elm lst) p nil) (setq n (if n (1+ n) 1)) ) ) lst )
  13. Yes, the ListaLisps.lsp file has been created.
  14. The solution may simply be to release write permissions for the 'Support' directory. If you search in Documents, you'll find the file 'ListaLisps.lsp'. It encodes the loading of all the files in the folder you selected when running the command. Therefore, you only need to load 'ListaLisps.lsp' to load all the other files.
  15. So I need to create an acad.lsp file? Would it be easier to add a list of Lisp programs directly to lisp for automatic loading? To avoid using the path to the .txt list.
  16. They are different
  17. CyberAngel

    Parcel number and name problem

    Open the parcel label style definition. You can do that by creating the parcel, by finding the style in the Prospector under Parcel|Label Style|Area, or by right clicking on the label and selecting Edit Area Selection Label Style. On the Layout tab in the style definition, find the Contents. Click on that and then on the button with three dots. That should open the Text Component Editor. You can pull down a list of properties that you can add to the label. Select Parcel Number and then click on the arrow. That will transfer the property into the pane on the right. Do the same with the Name. In the pane, add a slash between the two properties. Add spaces or anything else if you like. Click OK and keep clicking OK until you're back in your drawing.
  18. acad2021.lsp file exists are acad.lsp file and acad2021.lsp file the same thing?
  19. This may be a directory permissions issue. Have you checked if the acad.lsp file exists?
  20. CyberAngel

    field text

    If I understand the question, you want to use the stationing as part of a text label and as part of a title block. One way to do that is to define a custom property as one of your drawing properties. Set it to that text. Include the field in your text and in your title block. When you change the property, the field automatically updates with the new value.
  21. Something's wrong. A window appears
  22. At the end of the command execution, the acad.lsp file opens. Make sure the full directory where "ListaLisps.lsp" is located appears. It's possible that when loading the previous code, only the file name was written. If this is the case, delete that line, save and close acad.lsp, and run the command again.
  23. I have checked the code, the files are uploaded to the drawing, but they are not uploaded to the startup. In the new file, I need to use the code again.
  24. Hi Is the goal of fetching the duplicate lists to remove them from the main list? This is what your code appears to read
  25. @Nikon You should copy the code again. I didn't paste the code correctly. Also, I've also modified something.
  26. Thanks for participating, I'll try this code.
  27. Why not use the acaddoc.lsp instead?
  28. And what does it do? The same as the previous command BUT ALSO: – it writes into 'acad.lsp' Lisp code to load, from the next startup onward, the file 'ListaLisps.lsp', which in turn calls the loading of all the Lisp files in the selected folder. – adds the location of the files to AutoCAD’s 'SupportPath'.
  1. Load more activity
×
×
  • Create New...