Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UCS via Acad and via VB6 problem HELP!

Status
Not open for further replies.

CadDesigner

Programmer
Nov 25, 2003
18
FR
Hi folks,

I am trying to make a 3D-program in VB6 for AutoCAD and now I encounter the following problem.
Because VB works parallel with Autocad, I can change any moment to basic AutoCAD, leaving my program in the taskbar.
In fact 2 separate tasks.

When I start with my program, doings things, and decided to go to Basic AutoCAD, change the UCS in Autocad, do things and go back to my program in VB and want to change the UCS there, sometimes, not always, my program stalls.

The program line which gives the error is to save the current UCS setting:
Set CurrentUCS = acaddoc.activeUCS.
Change UCS here..

The error message is as follows:
Runtime error '2145320870(8021005a)
Error adding object to symbol table.

It seems that my program can't save the current UCS because it expects something else?

Same errors found with version 2000 and 2000I

Can anybody tell me what I am doing wrong?/ experienced the same problem / is there a workaround for it?

Need Help!
Paul


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top