TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on July 10, 2017, 02:46:31 PM
-
Hi all,..
i'm trying to know why this string do not work as field.
(setq AttText (strcat "%<\\AcObjProp Object(%<\\_ObjId 506077156672>%).TextString \\f \"%tc1\">%"))
this string work great if I cut&paste to any text without double backslashes..
it capture de valur of an block attribute.
any idea ?
-
I believe you need to pass the ObjectId differently.
-
ok,...found it...
(vla-regen (vla-get-activedocument (vlax-get-acad-object)) acActiveViewport)
ppfftt :) Thank you.
-
You can also use the UPDATEFIELD command (quicker than REGEN for large drawings) - this is typically required when populating an attribute with a field expression.
-
You can also use the UPDATEFIELD command (quicker than REGEN for large drawings) - this is typically required when populating an attribute with a field expression.
Thanks Lee
:uglystupid2: