Sk

Block Generator - Label Orientation

14 posts / 0 new
Last post
#1 Block Generator - Label Orientation

Continuing with Block generator.

Labels to be Vertically. Bottoms Left aligned, Tops Right aligned.

I am trying to avoid, open the block and change each label individually. Can this be achieve automatically?

 

Text orientation

This can be done in the normal Open Block function ... I don't see why it would be different in the Block generator ...

if you click on one of the attributes, you will see a red dot showing the alignment of the text. In the Text properties on the menu bar, you can select Left, Centre and Right justification. 
 

when the text is flipped vertically thesthese become bottom, centre and top aligned. 
 

Hopefully...

Barry,

Barry, thanks for your comments:

This can be done in the normal Open Block function ... I don't see why it would be different in the Block generator ...

if you click on one of the attributes, you will see a red dot showing the alignment of the text. In the Text properties on the menu bar, you can select Left, Centre and Right justification. when the text is flipped vertically thesthese become bottom, centre and top aligned. 
Yes, this can be done to each terminal (30), individually, for this component F5G.

We are looking for skycad to do it automatically when we are inserting the component or generating the block. 

Also, to avoid the process again of changing the labels individually when we create a differenct block let say F5M.

There is a way...

Thanks for posting on the forum.

You could set the default orientation directly in the symbol used to represent channels.  But this would not only change the orientation for new blocks, but also for all existing blocks.  (Although the one for which you already rotated the texts would remain unchanged...)

Let us know if that is an acceptable solution, and we'll guid you into how to achieve that.

Please share the guide to

Please share the guide to achieve it.

Thanks

In order to have labels

In order to have labels Vertically, I have to change each terminal label (30 of them) following these steps:

Select Label > Right click > Change rotation 90deg left

Select Label > Right click > Right Justify (Top Lables) / Select Label > Right click > Left Justify (Bottom Lables)

Select Label > Move up to final position.

 

I was looking for this to be set in advance, perhaps when a component is created from Block Generator.

Top Labels > Rotation 90 deg, Right Justified and insertion position

Bottom Labels > Rotation 90 deg, Left Justified and insertion position.

As mentioned, I have manually changed each of the 30 labels. If we create another block from this F5G template (lets say Power), we will have to do this again to each label on the new created block.

First Image shows the origially block with horizontal lables. Final block with vertical lables after changing them as previosly described (image #2).

Image: 
Sorry for the delay

Sorry for the delay in getting back to you.

As mentionened, you can set the text properties in the blocks used by channels.  Here's the list of blocks you want to open one-by-one (by double-clicking the files):

- <your environment path>\Standard Environment\Catalogue\root class\SkyCad specific Classes\Graphical Element\graphical object\graphical block\Connection point block\Bottom Connection point block.SkyCadFile

- <your environment path>\Standard Environment\Catalogue\root class\SkyCad specific Classes\Graphical Element\graphical object\graphical block\Connection point block\Top Connection point block.SkyCadFile

- <your environment path>\Standard Environment\Catalogue\root class\SkyCad specific Classes\Graphical Element\graphical object\graphical block\work block\Graphical I-O\ComPortBottom.SkyCadFile

- <your environment path>\Standard Environment\Catalogue\root class\SkyCad specific Classes\Graphical Element\graphical object\graphical block\work block\Graphical I-O\ComPortTop.SkyCadFile

- <your environment path>\Standard Environment\Catalogue\root class\SkyCad specific Classes\Graphical Element\graphical object\graphical block\work block\Graphical I-O\FeedCommon_IEC.SkyCadFile

- <your environment path>\Standard Environment\Catalogue\root class\SkyCad specific Classes\Graphical Element\graphical object\graphical block\work block\Graphical I-O\ReturnCommon_IEC.SkyCadFile

- <your environment path>\Standard Environment\Catalogue\root class\SkyCad specific Classes\Graphical Element\graphical object\graphical block\work block\Graphical I-O\GenericBottomTerminal.SkyCadFile

- <your environment path>\Standard Environment\Catalogue\root class\SkyCad specific Classes\Graphical Element\graphical object\graphical block\work block\Graphical I-O\GenericTopTerminal.SkyCadFile

 

Once you'll have modified all those blocks, close and reopen SkyCAD and all should fall into place.

Let us now if it works out!

Instructions followed. 

Instructions followed. 

Mission accomplished. We will work on the next topic. LOL

Image: 
Great!

Glad to know it worked out!

Thanks for letting us know!

Hello,I'm trying to achieve

Hello,
I'm trying to achieve the same as Phil.

1.My enviroment show several files with the same followed by underscore an a number (see pictures) . Should I modigy all those files or just the ones you metioned above? I'm also working with IEC standart.

2.Which other files should I modify to achieve the same result in PLC, Drives, SoftStarters, etcetera?
 

Image: 
Please let us know if this helps.

1. Modify the latest files; i.e. the ones with an underscore, followed by the highest number

2. None. The files above should cover every use case.

Please let us know if this helps.

Missed IO terminals

Worked except for the Inputs and Outputs terminals, did I miss something?

Image: 
Sorry

We were wrong, sorry.

There are two more files to modify (without underscores):

"SkyCAD Environments\Standard Environment\Catalogue\root class\SkyCad specific Classes\Graphical Element\graphical object\graphical block\Connection point block\Bottom Connection point block.SkyCadFile"

"SkyCAD Environments\Standard Environment\Catalogue\root class\SkyCad specific Classes\Graphical Element\graphical object\graphical block\Connection point block\Top Connection point block.SkyCadFile"

Please restart SkyCAD after modifying these files.

Thanks!I modified them and

Thanks!
I modified them and worked perfectly!