Hi,
I use a modified version of CLEAN.LSP for years. It is located at:
C:\Program Files\Autodesk\AutoCAD Map 3D 2013\Sample
I'm trying to create another one to delete duplicated TEXT, MTEXT and BLOCK
So I add these lines to the code.
(tpm_varset var_id "INCLUDE_MTEXT" 1)
(tpm_varset var_id "INCLUDE_TEXT" 1)
(tpm_varset var_id "INCLUDE_BLOCKS" 1)
(tpm_varset var_id "INCLUDE_LINEAROBJS" 0)
It deletes the LINES but not the text.
Undershoot segment Number of errors: 0
Undershoot vertex Number of errors: 0
Cluster Number of errors: 0
Cross Number of errors: 0
Short degenerate Number of errors: 0
Short entities Number of errors: 0
Short segments Number of errors: 0
Duplicates Number of errors: 1
Duplicates are lines, not MTEXT. I Also tried load a profile, same result.
Is there something else I should do??
Thanks
The solution I found is to use a map command.
(command "MAPCLEAN" "C:\\Temp\\duplicates.dpf")
The problem is that this file must exist! So I had to write a routine that adjusts the template.dbf for different cleanup types.
Very awkward, I'd rather to use lisp and (tpm_varset function
Autodesk Map support do you have anything to say about it?