Jump to content

Leaderboard

Popular Content

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

  1. 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.
    2 points
  2. Give this a shot. (sssetfirst nil (Setq SS (ssget "_X" (list(cons 0 "Text,Mtext") (cons -4 "<NOT")(cons 1 (strcat "*" "NOTAS PARTICULARES" "*"))(cons -4 "NOT>") (cons 410 (getvar 'ctab)) );list );ssget );setq );sssetfirst (princ)
    1 point
  3. Thanks! I changed it and it looks like it solved it.
    1 point
  4. Add a dash before the command name like this: "-layer" then this would pass over the dialog.
    1 point
  5. I would use EXPORTLAYOUT on each layout for the floor plans. That will move everything to model space. Then move the items that should be in paperspace with the CHSPACE command. You do this part in paperspace with a viewport created and set to the proper scale, then through the viewport you invoke the CHSPACE command and pick everything you want in PS and hit enter. That should get you close. There are other methods but they would all involve the EXPORTLAYOUT command and alternate methods to merge the files together with the floor plan in MS and everything that started in PS to be inserted or remain in PS.
    1 point
×
×
  • Create New...