Results 1 to 8 of 8

Thread: selection set filters

  1. #1
    chuck Guest

    selection set filters

    I would like to create a selection set of Radial only dimensions. How do I
    go about this. The return value for radial dimensions assoc 100 is (100 .
    "AcDbEntity") not the (100 . "AcDbRadialDimension") association I require.
    I've tried to cdr through the entity list by using a conditional loop (while
    (/= (car entlist) (cons 100 "AcDbRadialDimension"))(progn (setq entlist (cdr
    entlist)))) thinking that I could use ssadd here but the assoc (100 .
    "AcDbRadialDimension") appears to not be equal to (cons 100
    "AcDbRadialDimension") for some reason. Even if I use (cdr(car entlist)) it
    does not equal "AcDbRadialDimension" and the condition is never satisfied.
    Is there something I'm missing?

  2. #2
    Jeff Guest
    In your filter list, filter on the logical bitwise AND of code 70 for
    4......the following will get ALL Radial Dimensions in the drawing:

    (setq ss (ssget "x" '((0 . "DIMENSION")(-4 . "&")(70 . 4))))

    --
    Jeff
    check out www.cadvault.com
    "chuck" <chuck@nospam.wo> wrote in message
    news:Lieid.2730$14.733@read1.cgocable.net...
    I would like to create a selection set of Radial only dimensions. How do I
    go about this. The return value for radial dimensions assoc 100 is (100 .
    "AcDbEntity") not the (100 . "AcDbRadialDimension") association I require.
    I've tried to cdr through the entity list by using a conditional loop
    (while
    (/= (car entlist) (cons 100 "AcDbRadialDimension"))(progn (setq entlist
    (cdr
    entlist)))) thinking that I could use ssadd here but the assoc (100 .
    "AcDbRadialDimension") appears to not be equal to (cons 100
    "AcDbRadialDimension") for some reason. Even if I use (cdr(car entlist))
    it
    does not equal "AcDbRadialDimension" and the condition is never satisfied.
    Is there something I'm missing?

  3. #3
    chuck Guest
    are there similar functions for diametric and angular dimensions?

    "Jeff" <miff@sonic451.net> wrote in message
    news:pCeid.3354$_3.36172@typhoon.sonic.net...
    In your filter list, filter on the logical bitwise AND of code 70 for
    4......the following will get ALL Radial Dimensions in the drawing:

    (setq ss (ssget "x" '((0 . "DIMENSION")(-4 . "&")(70 . 4))))

    --
    Jeff
    check out www.cadvault.com
    "chuck" <chuck@nospam.wo> wrote in message
    news:Lieid.2730$14.733@read1.cgocable.net...
    I would like to create a selection set of Radial only dimensions. How do
    I
    go about this. The return value for radial dimensions assoc 100 is (100
    ..
    "AcDbEntity") not the (100 . "AcDbRadialDimension") association I
    require.
    I've tried to cdr through the entity list by using a conditional loop
    (while
    (/= (car entlist) (cons 100 "AcDbRadialDimension"))(progn (setq entlist
    (cdr
    entlist)))) thinking that I could use ssadd here but the assoc (100 .
    "AcDbRadialDimension") appears to not be equal to (cons 100
    "AcDbRadialDimension") for some reason. Even if I use (cdr(car entlist))
    it
    does not equal "AcDbRadialDimension" and the condition is never
    satisfied.
    Is there something I'm missing?



  4. #4
    Jeff Guest
    Yes, look into the DXF Reference Manual for the Dimension Entities. See what
    the values are for the different type dimensions under the 70 group code.
    From memory: 0 is Linear, 1 is Aligned, 2 is 'forget', 4 is Radial, 8 is
    'forget' and 16 is 'forget'......hmmm only remember 50%, not good. Oh well,
    that's why we have manuals ;-) ,but I don't have one available right now and
    the wife wants to watch a movie......

    --
    Jeff
    check out www.cadvault.com
    "chuck" <chuck@nospam.wo> wrote in message
    news:%siid.2582$hp3.388100@read2.cgocable.net...
    are there similar functions for diametric and angular dimensions?

    "Jeff" <miff@sonic451.net> wrote in message
    news:pCeid.3354$_3.36172@typhoon.sonic.net...
    In your filter list, filter on the logical bitwise AND of code 70 for
    4......the following will get ALL Radial Dimensions in the drawing:

    (setq ss (ssget "x" '((0 . "DIMENSION")(-4 . "&")(70 . 4))))

    --
    Jeff
    check out www.cadvault.com
    "chuck" <chuck@nospam.wo> wrote in message
    news:Lieid.2730$14.733@read1.cgocable.net...
    I would like to create a selection set of Radial only dimensions. How do
    I
    go about this. The return value for radial dimensions assoc 100 is (100
    .
    "AcDbEntity") not the (100 . "AcDbRadialDimension") association I
    require.
    I've tried to cdr through the entity list by using a conditional loop
    (while
    (/= (car entlist) (cons 100 "AcDbRadialDimension"))(progn (setq entlist
    (cdr
    entlist)))) thinking that I could use ssadd here but the assoc (100 .
    "AcDbRadialDimension") appears to not be equal to (cons 100
    "AcDbRadialDimension") for some reason. Even if I use (cdr(car
    entlist))
    it
    does not equal "AcDbRadialDimension" and the condition is never
    satisfied.
    Is there something I'm missing?





  5. #5
    Jeff Guest
    OK, so my memory is horrible tonight......here's the description of the 70
    Group code:

    Dimension type.
    Values 0-6 are integer values that represent the dimension type. Values 32,
    64, and 128 are bit values, which are added to the integer values (value 32
    is always set in R13 and later releases).
    0 = Rotated, horizontal, or vertical; 1 = Aligned;
    2 = Angular; 3 = Diameter; 4 = Radius;
    5 = Angular 3 point; 6 = Ordinate;
    32 = Indicates that the block reference (group code 2) is referenced by this
    dimension only.
    64 = Ordinate type. This is a bit value (bit 7) used only with integer value
    6. If set, ordinate is X-type; if not set, ordinate is Y-type.
    128 = This is a bit value (bit 8) added to the other group 70 values if the
    dimension text has been positioned at a user-defined location rather than at
    the default location

    You will have to play around a bit to get the results you need, since I got
    lucky with the radial in that it used an Integer that could have been a
    bitwise number........will toy with this tomorrow if you haven't figured it
    out yet.

    --
    Jeff
    check out www.cadvault.com
    "Jeff" <miff@sonic451.net> wrote in message
    news:8rjid.3454$_3.36729@typhoon.sonic.net...
    Yes, look into the DXF Reference Manual for the Dimension Entities. See
    what the values are for the different type dimensions under the 70 group
    code.
    From memory: 0 is Linear, 1 is Aligned, 2 is 'forget', 4 is Radial, 8 is
    'forget' and 16 is 'forget'......hmmm only remember 50%, not good. Oh
    well, that's why we have manuals ;-) ,but I don't have one available right
    now and the wife wants to watch a movie......

    --
    Jeff
    check out www.cadvault.com
    "chuck" <chuck@nospam.wo> wrote in message
    news:%siid.2582$hp3.388100@read2.cgocable.net...
    are there similar functions for diametric and angular dimensions?

    "Jeff" <miff@sonic451.net> wrote in message
    news:pCeid.3354$_3.36172@typhoon.sonic.net...
    In your filter list, filter on the logical bitwise AND of code 70 for
    4......the following will get ALL Radial Dimensions in the drawing:

    (setq ss (ssget "x" '((0 . "DIMENSION")(-4 . "&")(70 . 4))))

    --
    Jeff
    check out www.cadvault.com
    "chuck" <chuck@nospam.wo> wrote in message
    news:Lieid.2730$14.733@read1.cgocable.net...
    I would like to create a selection set of Radial only dimensions. How
    do
    I
    go about this. The return value for radial dimensions assoc 100 is
    (100
    .
    "AcDbEntity") not the (100 . "AcDbRadialDimension") association I
    require.
    I've tried to cdr through the entity list by using a conditional loop
    (while
    (/= (car entlist) (cons 100 "AcDbRadialDimension"))(progn (setq
    entlist
    (cdr
    entlist)))) thinking that I could use ssadd here but the assoc (100 .
    "AcDbRadialDimension") appears to not be equal to (cons 100
    "AcDbRadialDimension") for some reason. Even if I use (cdr(car
    entlist))
    it
    does not equal "AcDbRadialDimension" and the condition is never
    satisfied.
    Is there something I'm missing?







  6. #6
    chuck Guest
    Many thanks Jeff. you've been a great help. Where do you learn all this
    stuff anyway? I've been studying this for hours without much luck. I've been
    trying to teach myself autolisp, and so far, so good. One thing I have come
    to discover though, is that the more you learn the more you realize you know
    nothing. Thanks again.

    "Jeff" <miff@sonic451.net> wrote in message
    news:Hxjid.3455$_3.36781@typhoon.sonic.net...
    OK, so my memory is horrible tonight......here's the description of the 70
    Group code:

    Dimension type.
    Values 0-6 are integer values that represent the dimension type. Values
    32,
    64, and 128 are bit values, which are added to the integer values (value
    32
    is always set in R13 and later releases).
    0 = Rotated, horizontal, or vertical; 1 = Aligned;
    2 = Angular; 3 = Diameter; 4 = Radius;
    5 = Angular 3 point; 6 = Ordinate;
    32 = Indicates that the block reference (group code 2) is referenced by
    this
    dimension only.
    64 = Ordinate type. This is a bit value (bit 7) used only with integer
    value
    6. If set, ordinate is X-type; if not set, ordinate is Y-type.
    128 = This is a bit value (bit 8) added to the other group 70 values if
    the
    dimension text has been positioned at a user-defined location rather than
    at
    the default location

    You will have to play around a bit to get the results you need, since I
    got
    lucky with the radial in that it used an Integer that could have been a
    bitwise number........will toy with this tomorrow if you haven't figured
    it
    out yet.

    --
    Jeff
    check out www.cadvault.com
    "Jeff" <miff@sonic451.net> wrote in message
    news:8rjid.3454$_3.36729@typhoon.sonic.net...
    Yes, look into the DXF Reference Manual for the Dimension Entities. See
    what the values are for the different type dimensions under the 70 group
    code.
    From memory: 0 is Linear, 1 is Aligned, 2 is 'forget', 4 is Radial, 8 is
    'forget' and 16 is 'forget'......hmmm only remember 50%, not good. Oh
    well, that's why we have manuals ;-) ,but I don't have one available
    right
    now and the wife wants to watch a movie......

    --
    Jeff
    check out www.cadvault.com
    "chuck" <chuck@nospam.wo> wrote in message
    news:%siid.2582$hp3.388100@read2.cgocable.net...
    are there similar functions for diametric and angular dimensions?

    "Jeff" <miff@sonic451.net> wrote in message
    news:pCeid.3354$_3.36172@typhoon.sonic.net...
    In your filter list, filter on the logical bitwise AND of code 70 for
    4......the following will get ALL Radial Dimensions in the drawing:

    (setq ss (ssget "x" '((0 . "DIMENSION")(-4 . "&")(70 . 4))))

    --
    Jeff
    check out www.cadvault.com
    "chuck" <chuck@nospam.wo> wrote in message
    news:Lieid.2730$14.733@read1.cgocable.net...
    I would like to create a selection set of Radial only dimensions. How
    do
    I
    go about this. The return value for radial dimensions assoc 100 is
    (100
    .
    "AcDbEntity") not the (100 . "AcDbRadialDimension") association I
    require.
    I've tried to cdr through the entity list by using a conditional
    loop
    (while
    (/= (car entlist) (cons 100 "AcDbRadialDimension"))(progn (setq
    entlist
    (cdr
    entlist)))) thinking that I could use ssadd here but the assoc (100
    ..
    "AcDbRadialDimension") appears to not be equal to (cons 100
    "AcDbRadialDimension") for some reason. Even if I use (cdr(car
    entlist))
    it
    does not equal "AcDbRadialDimension" and the condition is never
    satisfied.
    Is there something I'm missing?









  7. #7
    Michael Bulatovich Guest
    In life as in LISP....<princ>

    "chuck" <chuck@nospam.wo> wrote in message
    news:MCEid.3042$14.296@read1.cgocable.net...
    the more you learn the more you realize you know
    nothing.

  8. #8
    Jeff Guest
    "chuck" <chuck@nospam.wo> wrote in message
    news:MCEid.3042$14.296@read1.cgocable.net...
    Many thanks Jeff. you've been a great help. Where do you learn all this
    stuff anyway? I've been studying this for hours without much luck. I've
    been
    trying to teach myself autolisp, and so far, so good. One thing I have
    come
    to discover though, is that the more you learn the more you realize you
    know
    nothing. Thanks again.
    You're welcome Chuck!
    As far as learning, I just did what you are now doing.....lots of trial &
    error....reading the help, newsgroups and forums....spending more spare time
    on the computer than I care to admit.

    I couldn't agree more on the "don't know nothin'" part. I am still
    constantly learning from others' work.

    Good Luck,
    Jeff

Similar Threads

  1. Replies: 7
    Last Post: 11-12-2005, 05:10 PM
  2. Selection Filters question
    By NYacad in forum AutoCAD
    Replies: 0
    Last Post: 08-24-2005, 08:58 PM
  3. working with selection set filters
    By Mandy in forum VBA
    Replies: 8
    Last Post: 01-18-2005, 11:03 AM
  4. Wblock and filters...Help!!!
    By Geoff Olner in forum AutoCAD
    Replies: 2
    Last Post: 12-12-2004, 09:43 PM
  5. Layer Filters...
    By Sean Ewald in forum AutoCAD
    Replies: 6
    Last Post: 11-11-2004, 01:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - Exchange Server Forum