Click here to Skip to main content
Licence 
First Posted 25 Feb 2007
Views 13,110
Downloads 53
Bookmarked 7 times

Tailor Master 1.1 -Asim Abbasi

By | 25 Feb 2007 | Article
Visual Basic Project. The software then generates the coordinates sequentially and send them to the microcontroller.

Screenshot - tailorm.gif

Introduction

This software is created in Visual Basic 5. It is designed to interface it with the microcontroller in order to cut the metallic sheets. User can input the software patterns in which sheets are to cut, in the form of jpg, gif, bmp or wmf file formats. The software then generates the coordinates sequentially and send them to the microcontroller. You can also saved the generated coordinates for later use. The main routine is shown below. The complete code (project) resides inside the zip file.

Private Sub Command3_Click()<br />For ptx = 0 To Picture1.ScaleWidth<br />For pty = 0 To Picture1.ScaleHeight<br />DoEvents<br />If Picture1.Point(ptx, pty) = RGB(0, 0, 0) Then<br />GoTo PointPrinter<br />End If<br />Next<br />Next<br />Exit Sub<br />PointDirector:<br />DoEvents<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />GoTo PointPrinter<br />Else<br />ptx = ptx + 1<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />GoTo PointPrinter<br />Else<br />pty = pty + 1<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />GoTo PointPrinter<br />Else<br />ptx = ptx - 1<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />GoTo PointPrinter<br />Else<br />ptx = ptx - 1<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />GoTo PointPrinter<br />Else<br />pty = pty - 1<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />GoTo PointPrinter<br />Else<br />pty = pty - 1<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />GoTo PointPrinter<br />Else<br />ptx = ptx + 1<br />GoTo PointPrinter<br />End If<br />End If<br />End If<br />End If<br />End If<br />End If<br />End If<br />Exit Sub

PointPrinter:<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />On Error GoTo Outmem<br />Text1.SelText = Str(ptx) + "," + Str(pty) + " "<br />Picture1.PSet (ptx, pty), RGB(242, 243, 52)<br />End If<br />GoTo PointDirector<br />Exit Sub<br />Outmem:<br />MsgBox Err.Description, vbCritical, "Error Number" + Str(Err.Number)<br />Text1.Text = ""<br />Exit Sub

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Asim_Abbasi

Web Developer

United States United States

Member

Mr. Asim Abbasi is President and CEO of Takveen, Inc. NJ (www.takveen.com), which is a firm providing information technology related ‘Optimal Solutions’ to the industry. He is also attached with three top-notch computer schools of NJ teaching Oracle Database Administration in Unix/Windows Server environments. Before coming to NJ, he used to teach Oracle in heart of NC, Raleigh while working as Chief Technologist with a business solutions development firm.
 
Back in Pakistan Mr. Abbasi worked as Chief Programmer with US based multi-national software development company. Prior to that he was Lecturer/Lab Manager at Center for Advanced Studies in Physics (CASP) - Government College University (www.gcu.edu.pk) teaching Telecommunications & Computer Systems and Applications.
 
Mr. Abbasi has been attached intensely with the IT field for past 13 years and has written dozens of softwares and tons of code from programming microcontrollers using Assembly language to writing 3-tier multi-language web applications backed by Oracle. From developing custom wireless TCP/IP communication protocols to converting human driven business processes to machine driven automated self-healing systems. In short, when it comes to optimal computer solutions and designs Mr. Abbasi has the authority.
 
He did B.Sc. Electrical Engineering from University of Engineering & Technology, Lahore, Pakistan (www.uet.edu.pk). He is Oracle Certified Professional Database Administrator (OCP), Microsoft Certified Professional (VB) and lots of other computer certifications. Besides certifications, he has lots of publications and has filed 1 patent with United States Patent & Trade Mark Office regarding system and method for controlling devices wirelessly using protocol based communication through voice.
 
When asked Mr. Abbasi, he said that it all erupted with a saying of my engineering professor, “Think yourself ….”
 

http://www.takveen.com

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionVB5 is still in use by anyone? PinmvpMark Nischalke18:29 25 Feb '07  
AnswerRe: VB5 is still in use by anyone? Pinmembermolebrain10:28 18 Jul '07  
GeneralRe: VB5 is still in use by anyone? PinmvpMark Nischalke11:10 18 Jul '07  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web03 | 2.5.120517.1 | Last Updated 25 Feb 2007
Article Copyright 2007 by Asim_Abbasi
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid