Field Bug problem found: Explanation Requested...Ok Gurus, a Challenge!

Discussion in 'AutoCAD' started by Dan, Feb 1, 2005.

  1. Dan

    Dan Guest

    (This cross post could effect both laguages, so I posted it in Lisp and VBA,
    please excuse...)

    I was having a bug in my code (VB or Lisp), and finally found the anomaly!!

    Field expression #1:

    %<\AcObjProp Object(2130272168).TextString \f %bl2>%

    compared to Field expression #2

    %<\AcObjProp Object(%<\_ObjId 2130272168>%).TextString \f %bl2>%


    Notice the text added (shown in brackets to distiguish AutoCAD added text to
    the expression) in by AutoCAD somewhere, sometimes? I do not know why?

    %<\AcObjProp Object([%<\_ObjId ]2130272168[>%]).TextString \f %bl2>%


    Any ideas?
    I have created a fix for my code to simply rewrite the field expression by
    removing the extra text AutoCAD adds to the code if it exists, but I do not
    like doing this without knowing why?

    The extra code is not required as far as I can tell from my testing.

    Thanks,
    Dan
     
    Dan, Feb 1, 2005
    #1
  2. Dan

    Dan Guest

    Thanks, I believe I understand now...
     
    Dan, Feb 10, 2005
    #2
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.