Page 2 of 2 FirstFirst 12
Results 13 to 22 of 22

Thread: vb mass math calculation

  1. #13
    Moderator Switcher's Avatar
    Join Date
    Apr 2005
    Location
    mydxf.blogspot.com
    Posts
    3,665
    Downloads
    0
    Uploads
    0
    The above code converts a string to a double.


    .


  2. #14
    Gold Member dertsap's Avatar
    Join Date
    Oct 2005
    Location
    canada
    Posts
    3,874
    Downloads
    0
    Uploads
    0
    ive tryed it and i see the numbers at the top corner , if i change the number of zero's in (d2, "##0.000") i can change the number of decimal points .i'm not sure how this works into the application


  3. #15
    Gold Member dertsap's Avatar
    Join Date
    Oct 2005
    Location
    canada
    Posts
    3,874
    Downloads
    0
    Uploads
    0
    ive tryed the same code using my textbox , if i try this with more than one number i get error conversion from string to double not valid


  4. #16
    Moderator Switcher's Avatar
    Join Date
    Apr 2005
    Location
    mydxf.blogspot.com
    Posts
    3,665
    Downloads
    0
    Uploads
    0
    yea, thats what I'm working on.


    .


  • #17
    Moderator Switcher's Avatar
    Join Date
    Apr 2005
    Location
    mydxf.blogspot.com
    Posts
    3,665
    Downloads
    0
    Uploads
    0
    Ok, this will parse a sample .txt file, then divide each number on each line by 100, then insert the answer number into a second richtextbox.

    It's far from finished, should get you started.

    Try the sample 123.txt file that I included.



    .
    Attached Files Attached Files


  • #18
    Moderator Switcher's Avatar
    Join Date
    Apr 2005
    Location
    mydxf.blogspot.com
    Posts
    3,665
    Downloads
    0
    Uploads
    0
    i strip down some of the stuff within the converter ,but i still have a few more garbage lines to pull out of the generated gcode ,im not sure how to outright delete them so ive replaced them with a line space , which i will need to figure out how to close them up at a later time , i still need to add a textbox for z moves and stuff ,
    its this mass division of all the numbers that has me stumped

    You can do something like this:
    TextBox1.Text = Replace(TextBox1.Text, ".", "")


    That would delete a decimal point.

    .


  • #19
    Gold Member dertsap's Avatar
    Join Date
    Oct 2005
    Location
    canada
    Posts
    3,874
    Downloads
    0
    Uploads
    0
    thats pretty good , i took a quick peek at it , i'll go at it a bit more this evening
    i really appreciate all the help your giving me ,i see your a man who clearly loves a challenge

    thanks
    Curt


  • #20
    Moderator Switcher's Avatar
    Join Date
    Apr 2005
    Location
    mydxf.blogspot.com
    Posts
    3,665
    Downloads
    0
    Uploads
    0
    yeah, sometimes I just can't let it (challenge) go.

    You realize your going to be doing a lot of parsing on those latex files... That file you posted was over 16,000 lines, I'm not sure how fast the code I posted will work.

    Any chance you can post a screenshot of the code that you've plotted?

    Also, whats up with the latex extension, I've never heard of that before?


    .


  • #21
    Gold Member dertsap's Avatar
    Join Date
    Oct 2005
    Location
    canada
    Posts
    3,874
    Downloads
    0
    Uploads
    0
    i'll try to post a screen shot for you ,
    latex i have no clue about , i was bored one night and looked at how inscape saves every file type ,when i opened the latex file it was clear how everything was point to point so after some simply replaced text in the file i had a solid looking gcode file


  • #22
    Gold Member dertsap's Avatar
    Join Date
    Oct 2005
    Location
    canada
    Posts
    3,874
    Downloads
    0
    Uploads
    0
    from the sample tex file in converter zip
    this is what what the path looks loke minus the rapid moves
    its a bit rough but it gives a good idea of what inkscape can put out into the tex file , i find it similar to the dxf files it puts out
    if you push back some and envision the path being cut with a v-bit i think it would come out pretty good
    Attached Images Attached Images


  • Page 2 of 2 FirstFirst 12

    Similar Threads

    1. Mass-cnc Job Opportunity
      By mkmk123 in forum Employment Opportunity
      Replies: 2
      Last Post: 09-18-2007, 06:58 PM
    2. Mass software?
      By bdrmachine in forum Mechanical Calculations/Engineering Design
      Replies: 9
      Last Post: 01-19-2007, 02:33 PM
    3. Need CNC Machinists in MASS
      By StarCatcher in forum Employment Opportunity
      Replies: 20
      Last Post: 10-27-2006, 02:14 AM
    4. Looking for small shop space - NE Mass or SE NH
      By InspirationTool in forum Mentors & Apprentice Locator
      Replies: 1
      Last Post: 03-20-2006, 07:27 AM
    5. mass produced
      By skeetboy25 in forum I.C. Engines
      Replies: 4
      Last Post: 08-11-2003, 08:47 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.