This Specification Macro Task will draw a polygon in a new image.
|Title||Changes the Title (not the name) of the Task.|
|Destination||The Full File Path and Name of the image file to create, including its extension.|
|Constant Name||The name of the Constant used to report on the success of the Task. If it is a success this will be used to store the Path of the generated image.|
|Overwrite||TRUE to overwrite an existing image, FALSE to keep the existing image.|
|Line Weight||The thickness of the line(s) in pixels.|
|Width||The new width of the image in pixels.|
|Height||The new height of the image in pixels.|
|Color||The RGB or hex color value for a colored line or blank to be made transparent.|
|The Points Of The Line(s)||A table of X and Y points through which the lines will be drawn.|
|Close Sketch||TRUE to draw a line between the last and first points. FALSE to leave open.|
|Texture File||Texture file used to infill the lines (Sketch must be closed to apply).|
|Line Style||'Dashes' or 'Dots'. Use any other value, including leaving blank for a solid line.|
|Background Texture File||The name of the background texture file. If blank, the background will be transparent.|
|Points Data Has Headers||TRUE to ignore the first data row, FALSE to include.|
The points that are used to make up the polygon need to be given to the task as a Table Array. This should be formatted like the example below.
When this Task is added the properties are static. To be able to build rules on a static properties see How To: Change A Static Property To A Dynamic Property.
|Property Name||Example Rule||Example Result||Meaning|
|Destination||FsGetFullPath("<Specification>\PolygonAddedWorldGraphic.png")||C:\MyDocuments\Projects\Specifications\Spec 9999\PolygonAddedWorldGraphic.png||This is the location where the new file will be created.|
|Constant Name||"DWConstantReport"||DWConstantReport||This is the name of the Constant that the Task will report to.|
|Overwrite||TRUE||TRUE||TRUE will overwrite the file if it exists FALSE will not.|
|Line Weight||3||3||This is the line weight the Task will use.|
|Width||600||600||This is the width of the new image that will be created.|
|Height||450||450||This is the height of the new image that will be created.|
|Color||"#000cf9"||#000cf9||This Hex value or RGB value denotes which color will be used for the lines drawn. Blank would draw transparent lines.|
|The Points Of The Line(s)||DwLookupPointsOnALine||DwLookupPointsOnALine||This is a Simple Table containing the X and Y coordinates measured in pixels for the different points to create the lines. An example of the Table can be seen above.|
|Close Sketch||TRUE||TRUE||This will put a final line from the last point given to the first point to create a complete polygon.|
|Texture File||"C:\MyDocuments\Content\WhiteBlank.PNG"||C:\MyDocuments\Content\WhiteBlank.PNG||This is the file to use as the background if the lines are closed into a polygon. Leaving this blank will make the fill transparent so the background will be shown.|
|Line Style||"Dots"||Dots||This will give a dotted line. For a dashed line type "Dashed". For a Solid line leave blank or type anything except|
|Background Texture File||"C:\MyDocuments\Content\Images\MyPicture.png"||C:\MyDocuments\Content\Images\MyPicture.png||This is the file that will be used to create the background of the new image.|
|Points Data Has Headers||TRUE||TRUE||TRUE will ignore the Headers in your Points Of The Line(s) Table. Use FALSE for Tables with no headers.|
This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.
Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.
This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.
The status output navigation is as follows:
Success with Warnings
See the Image PowerPack page for further Tasks.