Jump to content

Dimension Trailer Text


MTRobin

Recommended Posts

Hi Everyone,

 

Please see this Vectorscript I wrote below. I can see that it works in the OIP, but it won't update the dimension trailer. Can anyone advise on how to get this to work properly?

 

Thank you

 

Maxwell

 

PROCEDURE DimTypical;

VAR
Selection : HANDLE;

BEGIN
    Selection:= FSActLayer;
    SetObjectVariableString(Selection, 10, ' Typ.')
END;
Run(DimTypical);

Link to comment

You can do this using the single most powerful procedure in VS: ForEachObject. It also filters out other object so will only affect dimensions in this case.

 

PROCEDURE DimTypical;

PROCEDURE DoIt(h1 : HANDLE);
BEGIN
    SetObjectVariableString(h1, 10, ' Typ.');
    ResetObject(h1);
END;
BEGIN
    ForEachObject(DoIt, (T=DIMENSION) & Sel);
END;
Run(DimTypical);

Link to comment
  • 2 weeks later...

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...