Jump to content
Developer Wiki and Function Reference Links ×

Paper Scale - Scale Text


WhoCanDo

Recommended Posts

When changing the layer scale there is the option of "Scale Text" under the "Paper Scale" title.

The following macro asks the user what layer scale they would like and changes all layers with a scale the same as the active layer to the new scale.

How can I modify this to keep the text size as per the original point size?

procedure Layer_Scale;

var

hL : handle;

LayerName : string;

NowScale, NewScale : real;

LayerCount, i : integer;

begin

hL := ActLayer;

LayerName := GetLName (hL);

NowScale := GetLScale (hL);

NewScale := RealDialog ('Layer Scale : ', Num2Str (2, NowScale));

LayerCount := NumLayers;

Layer (GetLName (FLayer));

hL := ActLayer;

for i := LayerCount downto 1 do

begin

if (GetLScale (hL) = NowScale) then

SetLScale (hL, NewScale);

if (i <> 1) then

hL := NextLayer (hL);

end;

Layer (LayerName);

end;

run (Layer_Scale);

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