muthu123 Posted May 27, 2010 Posted May 27, 2010 How can i set the active text style as "my_name" ? Please help. Quote
CADmium Posted May 27, 2010 Posted May 27, 2010 (setvar "TEXTSTYLE" "STANDARD") or (vla-put-activetextstyle (vla-get-activedocument(vlax-get-acad-object)) (vla-item (vla-get-textstyles(vla-get-activedocument(vlax-get-acad-object))) "STANDARD" ) ) or (vla-SetVariable (vla-get-activedocument(vlax-get-acad-object)) "TEXTSTYLE" "STANDARD" ) 1 Quote
muthu123 Posted May 27, 2010 Author Posted May 27, 2010 (setvar "TEXTSTYLE" "STANDARD") or (vla-put-activetextstyle (vla-get-activedocument(vlax-get-acad-object)) (vla-item (vla-get-textstyles(vla-get-activedocument(vlax-get-acad-object))) "STANDARD" ) ) or (vla-SetVariable (vla-get-activedocument(vlax-get-acad-object)) "TEXTSTYLE" "STANDARD" ) Thank you so much.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.