Create true associative dimension with autolisp?

Discussion in 'AutoCAD' started by Jason, Mar 3, 2004.

  1. Jason

    Jason Guest

    I have created a routine to run a string of linear dimensions through lines
    selected via a 'fence-like' method. The dimensions are drawn using the
    DIMLINEAR command ala:
    (command "dimlinear" pnt1 pnt2 pnt3)

    The function works fine except that the resulting dimensions are not
    associated to any geometry, even though DIMASSOC is set to 2 and I am
    creating the dimensions through the dimlinear command. I have also tried
    passing the point to dimlinear command via
    (osnap pnt1 "nea") [doesn't help]
    and
    (nentselp pnt1) [returns "invalid point input"]


    Am I doing something wrong? Is it possible to create a true associative
    dimension through lisp?

    Thanks, Jason
     
    Jason, Mar 3, 2004
    #1
  2. Jason

    Rudy Tovar Guest

    You should try our Express Dimensioning 2.01, it is possible to dimension
    through lisp.

    Why not just use ActiveX to place the dimension, instead of using the
    command line, which may cause problems, due to running object snaps, and
    incomplete code.

    (command "dim" "ver,hor,etc." p1 p2 p3 "" "e")
    --

    AUTODESK
    Authorized Developer
    www.Cadentity.com
    MASi
     
    Rudy Tovar, Mar 3, 2004
    #2
  3. Jason

    Jason Guest

    I see now that if I set osmode to 512 (nearest), then dimlinear will
    associate to the geometry. I just can't be for sure which geometry it will
    associate with.

    I might look into the Active X method for a better solution.

    Jason

    You should try our Express Dimensioning 2.01, it is possible to dimension
    through lisp.

    Why not just use ActiveX to place the dimension, instead of using the
    command line, which may cause problems, due to running object snaps, and
    incomplete code.

    (command "dim" "ver,hor,etc." p1 p2 p3 "" "e")
    --

    AUTODESK
    Authorized Developer
    www.Cadentity.com
    MASi
     
    Jason, Mar 3, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.