Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 27, 2012, 06:31:52 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
Mach SDK plugin questions and answers.
Automating Mach from VB6
Pages:
1
Go Down
« previous
next »
Author
Topic: Automating Mach from VB6 (Read 686 times)
0 Members and 2 Guests are viewing this topic.
DiyAddict
Active Member
Offline
Posts: 4
Automating Mach from VB6
«
on:
October 23, 2010, 12:47:50 PM »
Hi everyone,
I'm trying to automate Mach from a VB6 program. Can anyone point me in the right direction?
Thanks in advance
Logged
DiyAddict
Active Member
Offline
Posts: 4
Re: Automating Mach from VB6
«
Reply #1 on:
October 23, 2010, 03:12:52 PM »
Ok, after searching around, I've seen a couple of examples of code similar to the following:
Create a reference to mach3.exe, then:
Public objMach As mach4.IMach4 'Access the embedded type library
Private Sub test() 'Simple test sub
Set objMach = GetObject(, "Mach4.Document") 'Create the object
objMach.LoadGCodeFile "c:\mach3\gcode\roadrunner.tap" 'Load Gcode
Set objMach = Nothing 'dereference Mach3 object
End Sub
My problem is that each time this program gets to the GetObject line, I get an error message
"Runtime error 429: ActiveX component can't create object"
I know that Mach3.exe is properly referenced, because it's interface's methods and events show up.
No one else has reported this problem, so here's my question: Am I getting this error because I'm using the trial version of Mach 3?
VB6 says something about this error occuring when a license key is not found.
Any light you can shed on this matter would be greatly appreciated
Logged
DiyAddict
Active Member
Offline
Posts: 4
Re: Automating Mach from VB6
«
Reply #2 on:
October 25, 2010, 06:09:17 AM »
I think I've found the problem - it seems that the latest version of Mach3 (3.042.040) never creates the registry entry Mach4.Document, which is needed for the automation object to work.
The solution is to install version 2.63 first, then run it once, then install the latest version.
I'd be interested in comments - has anyone else had similar problems?
Logged
Pages:
1
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...