Author Topic: Problem with Field (####). Where is mistake ?  (Read 2006 times)

0 Members and 1 Guest are viewing this topic.

kruuger

  • Swamp Rat
  • Posts: 637
Problem with Field (####). Where is mistake ?
« on: December 12, 2013, 04:54:21 AM »
hi,


rough tool to update specific attributes with field from another object.
after FIE i got #### instead correct attributes value.
weird thing is that after edit #### and press ok value is fine.


thanks
kruuger

kojacek

  • Mosquito
  • Posts: 14
Re: Problem with Field (####). Where is mistake ?
« Reply #1 on: December 12, 2013, 09:24:43 AM »
hi,


rough tool to update specific attributes with field from another object.
after FIE i got #### instead correct attributes value.
weird thing is that after edit #### and press ok value is fine.


thanks
kruuger

Change line:
Code - Auto/Visual Lisp: [Select]
  1. (setq id (LM:ObjectID (vlax-ename->vla-object en))
to:
Code - Auto/Visual Lisp: [Select]
  1. (setq id (LM:ObjectID (vlax-ename->vla-object %))
because en is an insert object, and % is an attributte
kojacek

kruuger

  • Swamp Rat
  • Posts: 637
Re: Problem with Field (####). Where is mistake ?
« Reply #2 on: December 12, 2013, 10:05:32 AM »
hi,


rough tool to update specific attributes with field from another object.
after FIE i got #### instead correct attributes value.
weird thing is that after edit #### and press ok value is fine.


thanks
kruuger

Change line:
Code - Auto/Visual Lisp: [Select]
  1. (setq id (LM:ObjectID (vlax-ename->vla-object en))
to:
Code - Auto/Visual Lisp: [Select]
  1. (setq id (LM:ObjectID (vlax-ename->vla-object %))
because en is an insert object, and % is an attributte
kojacek
oo sh.......
it works :)
thanks