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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
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.

×