muthu123 Posted May 27, 2010 Share Posted May 27, 2010 How can i set the active text style as "my_name" ? Please help. Quote Link to comment Share on other sites More sharing options...
CADmium Posted May 27, 2010 Share 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 Link to comment Share on other sites More sharing options...
muthu123 Posted May 27, 2010 Author Share 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 Link to comment Share on other sites More sharing options...
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.