Jump to content
Developer Wiki and Function Reference Links ×

Script or something like it


Recommended Posts

I'm not quite familiar with writing script, can anyone help write a script which automatically assigns all text to a particular class (like dimensions which are assigned to the dimension class or any other predetermined class by default)...or do I even need a scipt for this?

Link to comment

thanx

I thought a script could be written for it. The problem is that we try to be desciplened with classes in our office(as we use them to control and manage our drawings) but sometimes poeple just forget so to make things simple i thought it could be done.

Link to comment

You can write a script, actually as many as you like, to link all kind of text objects to one or more classes. The point is : you need to convince your coworkers to use these commands instead of the default Text Tool.

Here's a small sample :

FPatByClass;FillColorByClass;PenColorByClass;LWByClass;

TextFont(GetFontID('Helvetica Neue'));

TextSize(10);TextFace([]);TextSpace(2);TextJust(2);TextVerticalAlign(3);

NameClass('Notes');

SetTool(-200);

Link to comment

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.

×
×
  • Create New...