AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

INCLUDE_MTEXT new var in tpm_varset cleanig

1 REPLY 1
Reply
Message 1 of 2
MetroVancouverDrafting
343 Views, 1 Reply

INCLUDE_MTEXT new var in tpm_varset cleanig

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

 

 

 

1 REPLY 1
Message 2 of 2

The solution I found is to use a map command. Smiley Sad

(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?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost