Graphical Object Hatch Problem

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
ChristianGoehring
Posts:14
Joined: Fri Feb 24, 2017 9:29 am

Graphical Object Hatch Problem

Post by ChristianGoehring »

When I create an graphical object (Rectangle) with a hatch filling I cannot change the grid size.

The documentation states that the following line changes the object to a grid spacing of 8.

Code: Select all

main()
{
    setValue("rectangle1", "fill", "[hatch,[cross,8,right]]");
}
However, regardless of what number I use in this filling string, it does not change the grid spacing.

Did I misunderstand something from the documentation or is there some other problem?

Thanks in advance!

Win7, WinCC OA 3.15 P010

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Graphical Object Hatch Problem

Post by mkoller »

Once upon a time ... there was the possibility to define hatch-spacing.
This feature was removed in 3.5 due to a change in the underlying technology and was since not reimplemented.
What you can do as a workaround (which we would also need to do internally): create a transparent pixmap with some external pixel-based drawing program
and draw lines in a way so the pixmap can be used as fill pattern and tiled along the filling.
e.g. like the following attached example, which is a 16x16 pixmap Image
Attachments
grid_16.png

2 posts • Page 1 of 1