vla-get-centroid

Discussion in 'AutoCAD' started by moshe, Nov 14, 2004.

  1. moshe

    moshe Guest

    Hi All

    I'm tring to get the Centroid of a region, How to convert the return value
    [#<variant 8197 ...>]
    from (vla-get-centroid obj) to list of 2 or 3 reals?


    thanks in advance

    Moshe
     
    moshe, Nov 14, 2004
    #1
  2. moshe

    Jürg Menzi Guest

    Hi Moshe

    Visit my homepage -> Free Stuff and search for 'VxGetMassProps'.

    Cheers
     
    Jürg Menzi, Nov 14, 2004
    #2
  3. moshe

    moshe Guest

    Hi Jurg

    Thank you very much for the tip.
    i have check it and works fine with regions but got this error with
    lwpolyline:-
    ; error: bad argument type: listp 9

    moshe
     
    moshe, Nov 14, 2004
    #3
  4. moshe

    Jeff Mishler Guest

    Matbe because only 3DSolids & Regions have a Centroid property........

    --
    Jeff
    check out www.cadvault.com
     
    Jeff Mishler, Nov 14, 2004
    #4
  5. moshe

    Jürg Menzi Guest

    Hi Moshe

    Sorry, there is an error in the 'VxListToArray' funtion.
    Change the both arguments to
    (defun VxListToArray (Lst Typ)
    ....

    Cheers
     
    Jürg Menzi, Nov 14, 2004
    #5
  6. moshe

    moshe Guest

    Jurg

    Now it's working, thank you again

    Moshe
     
    moshe, Nov 14, 2004
    #6
  7. moshe

    Jürg Menzi Guest

    Hi Moshe

    Welcome...¦-)

    Cheers
     
    Jürg Menzi, Nov 15, 2004
    #7
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.