Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/17/2021 in all areas

  1. Hello everyone. In response to a private message request, here is an update to the uvVectorMap routine. NOTE: I'm flying blind here. I don't have access to any version beyond AutoCAD 2018 so these DLLs (exactly the same as uvVectorMap 2016) my cause problems in latter versions. The only difference in this 2021 bundle was a modification in 'PackageContents.xml' to allow for use in 2016+. I expect everything will work fine, but the prospective beta testers will have to confirm that for me. STSC_uvVectMapBeta_1-2021.bundle.zip
    1 point
  2. You can achieve this using the wildcard not operator ("~") : (sssetfirst nil (ssget "_X" (list '(0 . "TEXT,MTEXT") '(1 . "~*NOTAS PARTICULARES*") (cons 410 (getvar 'ctab))))) However, if you wanted to exclude multiple patterns by separating the patterns using a comma (e.g. "PATTERN1,PATTERN2") you should note that the not operator will only apply to the first wildcard pattern in the delimited string (e.g. "~PATTERN1,PATTERN2" will still include "PATTERN2") : _$ (wcmatch "PATTERN1" "~PATTERN1,PATTERN2") nil _$ (wcmatch "PATTERN2" "~PATTERN1,PATTERN2") T And so if you were looking to exclude multiple patterns, you could use either: (sssetfirst nil (ssget "_X" (list '(0 . "TEXT,MTEXT") '(-4 . "<NOT") '(1 . "PATTERN1,PATTERN2") '(-4 . "NOT>") (cons 410 (getvar 'ctab))))) Or: (sssetfirst nil (ssget "_X" (list '(0 . "TEXT,MTEXT") '(1 . "~PATTERN1") '(1 . "~PATTERN2") (cons 410 (getvar 'ctab))))) Since the filter list for an ssget expression implements an implicit AND logic.
    1 point
×
×
  • Create New...