Hello,Sometimes pasting formatted data directly into this site doesn't render as you'd expect, and can become difficult to read.I'm not sure I got all the information correctly and completely.Could you please upload any files related to this project to wikisend.com (or a file sharing site of your choice) so I may have a look? If there are multiple files, it's easiest to put them in a compressed (zipped) folder and upload just that one item.
PS If you're not familiar with wikisend, it's easy and free:Go to www.wikisend.com and upload the file there (no need to sign up). You will then get a page that has the File ID and Download Link. Copy either the File ID or the Download Link and come back here and paste it in your reply.
I'm sorry,After reviewing the question, I regret that I won't be able to assist you at this time.
I am opting out and opening the question up to other professionals here who may be able to help.
Have you tried to loop this?
For each line in lineArray()
<to do code here>
where your to do code is roughly:
dim lineIncrement as Integer = 50
dim linenumber as String = Line.LineNumber?
calc.AddLine(CreateLine(lineIncrement, lineNumber, "1", "EA"))
lineIncrement = lineIncrement + 50