vla-settext problem

Hello,

I'm have some problem with a simple task of layer name's assignment to a cell as a Field object.

[code](vla-settext (vlax-ename->vla-object (car (entsel "\nSelect Table:")))
                     0
                     0
                     (strcat "\%<\\AcObjProp Object(\%<\\_ObjId " (itoa (vla-get-ObjectId (vlax-ename->vla-object (car (entsel "\nSelect Object:"))))) ">\%).Layer >\%")
                     )[/code]

Any idea is appreciated.
Regards, Vaidas

Comments

  • Forgot about comparison... this code adds a linked field in AutoCAD as expected but converts it into a text in Bricscad.
    And sorry for my Engrish, I can't edit posts herein :)
    Thanks, Vaidas
  • Dear Vaidas,

    as far as I recall, ODA / TD core does not yet support assigning a field value to attributes, by setting the text content (no parsing is done here).
    You might send us a SupportRequest about this ?

    Many greetings !
  • Thank you, Torsten, I was doubt on format I'm used.

    Regards, Vaidas
This discussion has been closed.