Jump to content

Recommended Posts

Posted (edited)

I have a filter in a lisp file that is made by RLX. I want to understand it better so i can modify the filter for more use.  

I use this filter for blocknames. 

This exaMple works very well. The problem is when i want to filter the begin of a blockname with the end of the same blockname.

  

The result at the second filter is DIN934-A0M04IN - >This has to be DIN934-A0M04SD or ED.

What can i do to get the result i want? If someone can explane the filter where i start this topic with, thank you.

DIN934MODIFYDO.LSP

Edited by patjeacad
Added Code Tags!
Posted

Please use code tags for code! (<> in the editor toolbar)

Posted
2 minutes ago, SLW210 said:

Please use code tags for code! (<> in the editor toolbar)

sorry, i did now.

Posted

A ssget with correct block filter should work.

 

(setq ss (ssget (list (cons 0 "INSERT")(cons 2 "DIN934-A#M##*"))))

or a full filter

(setq ss (ssget (list (cons 0 "INSERT")(cons 2 "DIN934-A#M##ED,DIN934-A#M##SD"))))

 

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...