Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/09/2025 in all areas

  1. Is the (arxload "acetutil.arx") working in your image ARXLOAD failed, you may need a full path use "\\" between directories. Just find acetutil.arx with explorer. Look Program files\Autodesk. Accoreconsole may not support acet functions. It does have limitations. If you can not get past the load will need to use maybe OBDX or an old fashioned script. Make sure with all testing...
    2 points
  2. Nice! This should speed up your process considerably!
    1 point
  3. @Engineer_Yasser Some of your linework is not drawn as tight as your first example. Look at the start point of this polyline in relation to your block insertion point. To 'fix' my code up the variable 'fz' to something like 2. In the scenario where the block is located on an end does it still pick a route since they are both on the same side? I'm curious, what are these drawings used for? ...
    1 point
  4. Thanks all for your suggestions, and yes i have been testing on a dummy directory . I've decided to abandon the laytrans route, instead will use a script that renames and updates any other parts of the layer instead - as I'm typing this it is running in the background updating 100files as a test, I think i was trying to be too clever before and when i only have very basic knowledge of...
    1 point
  5. You're welcome. I'm glad it helped.
    1 point
  6. The error occured because the "layer name" of the "blll" block was changed into "HH Block" (old "layer name" was "BLK"), that is the reason. ;; OLD (setq ss (ssget "X" '((0 . "INSERT") (8 . "BLK") (2 . "blll"))) ;; NEW (setq ss (ssget "X" '((0 . "INSERT") (8 . "HH Block") (2 . "blll"))) Try this modified code: ; ************************************************************************ ...
    1 point
  7. @Wilkibob Normally you should be able to run command line lisp statements from a script file, but I don't know when it comes to BATCH (.bat) file. See if adding the code into the lisp file and loading it works? If not - then I don't think your going to be able to use a BATCH file anyway. You can always use a SCRIPT (.scr) file with a 2nd instance of AutoCAD open in the background. Add to...
    1 point
  8. You could try my post, October 5th linked below. It might fail completely. This one works by looping through all the files in a directory, open each one and runs the commands in order. Commands might be AutoCAD commands, might be LISP routines - add them in just as you would using the command line (so for example, no need to put (Command "Line" 0,0 10,0), you can just do...
    1 point
  9. @Wilkibob you cannot run "acet-laytrans" like an AutoCAD command. It has to be run directly as a function. Try changing: (command ("acet-laytrans" "c:/users/joe.bloggs/Downloads/Steelwork.dws" 0)) to just: (acet-laytrans "c:/users/joe.bloggs/Downloads/Steelwork.dws" 0) NOTE - you can run this directly from the script with no need to define it in a...
    1 point
  10. @BHenry85 Give this version a try for nested values. ;; https://www.cadtutor.net/forum/topic/75699-remove-duplicates-in-list/page/2/#findComment-660223 ;; Detail Extractor v2.5.lsp ;; Write list of details used in model/lot to csv file in location defined by user ;; Removes duplicates from list and only lists unique values ;; Prompts user to open file once complete or not ...
    1 point
  11. Here is some sample code (no error checking) that will set the plot style in the current layout in the current drawing. (setq *acad-object* (vlax-get-acad-object)) (setq *active-document* (vla-get-activedocument *acad-object*)) (setq *active-layout* (vla-get-activelayout *active-document*)) (vla-put-stylesheet *active-layout* "mycustom.ctb")
    1 point
  12. The main reason i used the hatch command is to get an defined Area. For instance if i have 17 hatched squares of different shapes and sizes and i want a total area. i can either 1. hatch every square on the one hatch command hence giving me one hatch, ie this would give me one snap point to check all 17 squares. 2. Hatch every 17 square individually and have 17 snap points. However...
    1 point
×
×
  • Create New...