Jump to content

All Activity

This stream auto-updates

  1. Past hour
  2. @SLW210 how to select all the code at code tags , like a short key ctrl+a or whatever
  3. Today
  4. Maybe use (setvar 'hpname "User") in code, sets the pattern name.
  5. @karfung see the new dwg new block.dwg
  6. @karfung it seem to be you need to make a new.dwg , if so, you can use WRITEBLOCK acad command .
  7. maybe first do an audit on this drawing
  8. Does the LISP file load the Visual LISP ActiveX functions with (vl-load-com)? I don't see it in the code.
  9. Your video did not work for me. Your LISP ran just fine on my computer.
  10. In the future, please place your code in code tags. (<> in the editor toolbar)
  11. Hi, everybody. It is necessary to perform hatch, regardless of the previous type of hatching. The first code issues superfluous requests. The second code performs the hatch using the previous type, not the one specified in the code. (defun c:HatchUser ( / ss) (setq ss (ssget)) (if ss (progn (command "_-BHATCH" "_Properties" "_User" "0" "_Double" "_Yes" "200" "_S" ss "") ) ) (princ) ) ; *********** (defun c:HatchUser1 ( / ss) (setq ss (ssget)) (if ss (progn (command "_.-BHATCH" "_User" "_Double" "_Yes" "0" "200" "_S" ss "" "") ) ) (princ) ) HatchUserdwg.dwg
  12. @oliver Try to reload the code at this answer
  13. (defun c:new_desktop_file_copy (/ acad_dbx object_list zero_point) (defun make_color_21 (/ layers) (setq layers (vla-get-layers acad_dbx)) (vlax-map-collection (vla-get-blocks acad_dbx) '(lambda (block) (vlax-map-collection block '(lambda (object) (vla-put-color object 256) (if (/= 21 (vla-get-color (setq layer (vla-item layers (vla-get-layer object))))) (vla-put-color layer 21) ) ) ) ) ) ) (setq acad_dbx (vla-getinterfaceobject (vlax-get-acad-object) (strcat "ObjectDBX.AxDbDocument." (substr (getvar 'acadver) 1 2)))) (prompt "\nPick objects to copy to a new file on the desktop...") (setq object_list (mapcar 'vlax-ename->vla-object (vl-remove-if 'listp (mapcar 'cadr (ssnamex (ssget)))))) (setq zero_point (getpoint "\nPick zero point for the copied entities: ")) (foreach copied_object (setq odbx_objects_list (vlax-invoke (vla-get-database (vla-get-activedocument (vlax-get-acad-object))) 'copyobjects object_list (vla-get-modelspace acad_dbx) ) ) (vla-move copied_object (vlax-3d-point zero_point) (vlax-3d-point 0 0 0)) ) (make_color_21) (vla-saveas acad_dbx (princ (strcat (getenv "userprofile") "\\Desktop\\" (getstring "\nEnter file name: ") ".dwg"))) (vlax-release-object acad_dbx) (princ) ) Hi Bro, The LISP code above is awesome, and it is working. But, I encountered an error below and as per the attached drawing 1 with mp4 video (in link) and added it as follows, 1). Please set the unit to be "mm" in the created file. 2). Please zoom extend for the created file. fyi, I did changed the LISP code to "CP" Kindly advise and revert with the completed Lisp code. Thanks. https://drive.google.com/file/d/15VNesdJ3uHtPbUlrNbCsaP0yMzY3e2Po/view?usp=sharing Drawing1.dwg
  14. @Tsuky Thanks for label_bearing-vertex, I need to label from points , not from polilines . Just to loop around the label_bearing.lsp from point to point Best regards label_bearing.lsp
  15. @devitg For labelling the segments of polylines (cords for the polyline arcs), I can offer you this. label_Bearing-vertex.lsp
  16. The height of the text you can change with the "style" command. There you can change the default value of the text-style that is applied.
  17. Hello, Can you help me because im using millimeter drawing when i use this lisp the value and text is small, how can i change the value height in millimeter. thank you. Polylin Length FA-L.LSP
  18. Hello how can i change the height value if i use millimeter drawing
  19. Yesterday
  20. I looked at this and started to do move end point of a pline, then realised you state "Extend line" rather than move end point to a new point. So you can move the "end" point of a line or Pline to a point with one code That is different to say make a new length. If you think about it don't need code just pick line/pline then grips are exposed pick an end or vertice and move it to the new point. So can you explain more what it is your trying to do ? A dwg before after etc.
  21. @Tsuky Please route me how to make it work on a lot of vertices or points as need to bearing or angle from points.dwg
  22. @oliver, please upload your sample.dwg so we can work at it
  23. Thanks, I've found that alternative an am using it for now. Functionally, I do prefer how the first addon works, but the resulting text issue is too painful to put up with because of that! I will submit a bug report to the developers.
  24. Steven P

    Move Block Wipeouts to bottom

    Yes, do it!!
  25. i tried this code, the bearing is fine recon from north..but azimuth have a problem. 14.01.2026_20.26.59_REC.mp4
  26. SLW210

    Move Block Wipeouts to bottom

    I have a dump LISP called TakeADump, maybe I need this to go along with it!
  27. You might try QRcode dynamic | AutoCAD | Autodesk App Store. Did you report the issue?
  28. It was a QR Code generator, here: https://apps.autodesk.com/ACD/en/Detail/Index?id=7854648785059363913&appLang=en&os=Win32_64 Published by Autodesk. Pretty certain this was the culprit. My text problems began at the same time that I installed this. As soon as I unloaded it, the problem disappeared.
  1. Load more activity
×
×
  • Create New...