Results 1 to 2 of 2

Thread: Entity handles

  1. #1
    AUGI Addict MikeJarosz's Avatar
    Join Date
    2015-10
    Location
    New York NY
    Posts
    1,497
    Login to Give a bone
    0

    Default Entity handles

    I'm beginning a new coding project that will invove thousands of points. I have never really worked with handles before. Just for the record, my question is: is the entity handle a hex number? If I convert it to a decimal integer will it ever overflow?

    This code looks like it will work, or should I change it to Long?

    Code:
     
    Dim DecHandle as Integer
    DecHandle = CInt("&H" & WorkPt.Handle)

  2. #2
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Entity handles

    To the API the Handle is a string. To convert the handle to something usable you should use the HandleToObject method on the document.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

Similar Threads

  1. Replies: 0
    Last Post: 2014-12-27, 08:59 PM
  2. Help with Handles!
    By dupuy77362646 in forum AutoLISP
    Replies: 11
    Last Post: 2013-03-03, 10:52 PM
  3. Stationary handles!
    By vgriffiths120838 in forum Dynamic Blocks - Technical
    Replies: 2
    Last Post: 2012-08-02, 09:24 AM
  4. Door handles
    By m_r_meza in forum Revit Architecture - General
    Replies: 3
    Last Post: 2005-08-11, 09:16 AM
  5. Proxy Entity Code 310 to Normal Entity
    By KevinBarnett in forum AutoCAD General
    Replies: 2
    Last Post: 2005-05-26, 07:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •