Author Topic: (100 . "AcDbAlignedDimension") in ssget fliter  (Read 8671 times)

0 Members and 1 Guest are viewing this topic.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: (100 . "AcDbAlignedDimension") in ssget fliter
« Reply #15 on: April 14, 2014, 10:31:21 AM »
Or:
Code: [Select]
(ssget "_A" ((0 . "DIMENSION") (-4 . "&") (70 . 1)))

Unfortunately, DXF group 70 for dimensions is not truly bit-coded - I believe your code would also select Diameter & Angular 3-Point dimensions, in addition to Aligned dimensions.
Right, I should checked the documentation. It is a group code with a 'history'.
Strange that AutoCAD doesn't support filtering for group code 100.

Alternative filtering for gc 70:
Code: [Select]
(ssget "_A" '((0 . "DIMENSION") (-4 . "<NOT") (-4 . "&") (70 . 7) (-4 . "NOT>")))                     ; 0
(ssget "_A" '((0 . "DIMENSION") (-4 . "&") (70 . 1) (-4 . "<NOT") (-4 . "&") (70 . 6) (-4 . "NOT>"))) ; 1
(ssget "_A" '((0 . "DIMENSION") (-4 . "&") (70 . 2) (-4 . "<NOT") (-4 . "&") (70 . 5) (-4 . "NOT>"))) ; 2
(ssget "_A" '((0 . "DIMENSION") (-4 . "&") (70 . 1) (-4 . "&") (70 . 2)))                             ; 3
(ssget "_A" '((0 . "DIMENSION") (-4 . "&") (70 . 4) (-4 . "<NOT") (-4 . "&") (70 . 3) (-4 . "NOT>"))) ; 4
(ssget "_A" '((0 . "DIMENSION") (-4 . "&") (70 . 1) (-4 . "&") (70 . 4)))                             ; 5
(ssget "_A" '((0 . "DIMENSION") (-4 . "&") (70 . 2) (-4 . "&") (70 . 4)))                             ; 6


Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: (100 . "AcDbAlignedDimension") in ssget fliter
« Reply #16 on: April 14, 2014, 05:09:46 PM »
Alternative filtering for gc 70:
Code: [Select]
...

Interesting approach roy  :-)

beverage

  • Guest
Re: (100 . "AcDbAlignedDimension") in ssget fliter
« Reply #17 on: April 14, 2014, 11:12:08 PM »
thank you for all replies

my program will handle aligneddimension and rotateddimension in two diff. ways ,and don't accept other dimension types, so I think using ssget's fliter is not a good way for my goal.

I just feel strange about AutoCAD don't support filtering for group code 100.

I'm using "member" to get the dimension types.

BTW, Lee, you'r very very famous in Chinese lisp writers

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: (100 . "AcDbAlignedDimension") in ssget fliter
« Reply #18 on: April 15, 2014, 04:38:33 PM »
BTW, Lee, you'r very very famous in Chinese lisp writers

I'm flattered to hear that!  :-)