Jump to content
Sign in to follow this  
carpenter1234

vector script: replace font type?

Recommended Posts

is there a possibility to replace any font type in one drawing with a specified new one in a batch mode without selecting each one?

font size should not be touched.problem is there are lots of text in groups , symbols and layout areas in my drawing, so i can't selct them all at once(and i don't want to cycle through these myriads of objects).

Edited by carpenter1234

Share this post


Link to post

Did you assign a unique Class to the text ?

{

DSelectAll; SelectObj(INSYMBOL & INOBJECT & INVIEWPORT & (C='FontClassTest'));;

}

If ,yes, then use the selection by Class to make a global change. If not then you will need to select by the FontID:

{

DSelectAll; SelectObj(INSYMBOL & INOBJECT & INVIEWPORT & (FOT='Arial'));

}

Share this post


Link to post

ok, i treid the global text attributes, it works, but it won't change in symbols and in layout areas, neither in groups.

would a vectorscript be capable of that spcific task anyway?

Share this post


Link to post

The script to use includes "INSYMBOL & INOBJECT & INVIEWPORT" ... just replace the 'Arial' with your FontName.

DSelectAll; SelectObj(INSYMBOL & INOBJECT & INVIEWPORT & (FOT='Arial'));

Share this post


Link to post

sorry to say so, but it won't select text in groups, symbols and viewports. only "real" textobjects.

Edited by carpenter1234

Share this post


Link to post

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...