Jump to content
Developer Wiki and Function Reference Links ×

Symbol with layer scale


hong

Recommended Posts

iboymatt is right, symbols cannot be scaled. But, they can be placed, then decomposed, and the resulting group can be scaled. Of course, decomposing a symbol will disconnect it from the original symbol definition, but if that is not an issue to you, try using this code fragment in a script or a PIO. It should get you going in the right direction.

HTH,

Raymond

code:

VAR

SignalName :String;

X, Y, Rot, ScaleFactor :Real;

. . .

Symbol(SignalName, X, Y, Rot);

DoMenuTextByName('Convert to Group Chunk', 1);

ScaleFactor := GetLScale(GetLayer(LNewObj));

Scale(ScaleFactor, ScaleFactor);
[/code]

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