I've created a task to directly export the flat pattern to DXF without having to make a drawing. The task script is based on a SolidWorks macro which starts a loop running through all configurations of the file, analyses whether there is "SM-FLAT_PATTERN" in the configuration name and - if so - exports this configuration to DXF.
In the SolidWorks macro this runs fine, but unfortunately the task does not.
It looks like the task does run the loop
For i = 0 To UBound(vConfNameArr) ... next i
For i = 0 To UBound(vConfNameArr)
only once and exits directly after instead of repeating the loop.
Can anybody tell me what's wrong?