CAD CAM CNC Australia CAD Forum
CAD CAM Forum for support and discussion regarding AutoCAD, progeCAD IntelliCAD, Alibre, Mathcad, PTC Pro/E 2D 3D design T-FLEX and PartMaster CNC software
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VBA from Excel  ADD TO STUMBLEUPON

 
Post new topic   Reply to topic    CAD Forum Forum Index -> progeCAD and AutoCAD Forum
View previous topic :: View next topic  
Author Message
waldoverkill



Joined: 22 Apr 2008
Posts: 2

PostPosted: Wed Jul 14, 2010 4:23 am    Post subject: VBA from Excel Reply with quote

Hi

I have written an Excel VBA program to create some drawings in progecad 2010. It was working fine (windows 7 32bit). I have a new PC with Windows 7 64 bit and the program is crashing on this line

Set AppProgecad = CreateObject("ICAD.Application")

It is saying it cannot creat the object.

Is there a new application string that I need to use for 64bit?

Any help would be great.

Warren
Back to top
View user's profile Send private message
caddit
Moderator


Joined: 10 Jan 2008
Posts: 442
Location: Australia

PostPosted: Mon Jul 19, 2010 9:31 am    Post subject: VBA CreateObject("ICAD.Application") error "c Reply with quote

Hello waldoverkill,


progeCAD VBA requires registration of ActiveX interface in core system registry. VBA uses this ActiveX interface to access the "intellicad" objects.

Did you ever run progeCAD on this PC as a full systems administrator? progeCAD must be run at least one time with full systems admin rights to complete the installation of the ActiveX registry. You might also try running your script in an admin session just to check.

Otherwise you may need to re-install progeCAD VBA as described HERE.

Please let me know if either of these steps help fix the issue for you.
_________________
CAD Software Support
progeCAD Software Asia Pacific
Alibre Australia, PTC and MathCAD
Back to top
View user's profile Send private message Visit poster's website
waldoverkill



Joined: 22 Apr 2008
Posts: 2

PostPosted: Mon Jul 19, 2010 7:50 pm    Post subject: Reply with quote

Thanks for the reply.

I found that the registry entry for the AppID was missing. I added this manually to match one from another PC and it works now.

VBA worked within Progecad fine already. Progecad was just not registered.

Cheers

Warren
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CAD Forum Forum Index -> progeCAD and AutoCAD Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.21-6 (Debian) © 2001, 2005 phpBB Group