Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/23/2024 in all areas

  1. This may be a little clunky, so one of our resident wizards can come along and improve it. To remove your pattern pline, 1) store the last entity before you draw it 2) store the last entity after you draw it 3) create your hatch 4) compare those two entities 5) if they're different, erase the entity from step 2.
    1 point
  2. In the future please use Code Tags for code. (<> in the editor toolbar)
    1 point
  3. Hi Steve, and welcome to CADTutor Regarding the use of my LM:DeleteBlocks function in conjunction with my ObjectDBXWrapper function, please consider the following example: (defun c:dbtest nil (LM:odbx '(lambda ( doc ) (LM:deleteblocks doc '("Block1" "Block2" "Block3"))) nil t) (princ) ) The above code will prompt the user to select a directory of drawings to be processed, and, following a valid selection, the function will attempt to delete Block1, Block2 & Block3 (these can of course be changed to suit your requirements) from every drawing file in the selected directory. You will of course need to ensure that both my ObjectDBX Wrapper function & Delete Blocks program are loaded before running the above code.
    1 point
×
×
  • Create New...