CAD software discussion forum > CAD > Error in VBA - Object required

Error in VBA - Object required

Rank: 1

OldForumPost

Newbie

posts: 0

Registered: 2012-1-14

Message 1 of 4

04-06-2010 02:06 . pm | View his/her posts only
In the latest build of 2010 ZwCADa 31/05/2010 an error occurs in the VBA in the class Utility.
After this code, you receive an error - Object required.
In any earlier versions and in an earlier ZwCADa ZwCAD 2010 - this error has never been!

Code causing the error:
Dim P as new ZwCADPoint
Set P = ThisDocument.Utility.GetPoint

Very urgent please help!

Rank: 1

OldForumPost

Newbie

posts: 0

Registered: 2012-1-14

Message 2 of 4

 Error in VBA - Object required
07-06-2010 05:47 . pm | View his/her posts only


There is an improvement with VBA in ZWCAD 2010 Update Patch.



Instead of point objects, ZWCAD 2010 Update Patch uses arrays to store coordinates, which makes VBA API more compatible with that in AutoCAD.







Jenny2010-06-07 17:48:40

Rank: 1

OldForumPost

Newbie

posts: 0

Registered: 2012-1-14

Message 3 of 4

08-06-2010 07:02 . pm | View his/her posts only
Is the class:
ZwCADPoint and ZwCADPoints will be retained in future versions of ZwCAD?
Can we declare a variable:
Dim P as
New ZwCADPoint like now?

Rank: 1

ilia_2s

Newbie

posts: 2

Registered: 2011-9-19

Message 4 of 4

28-06-2010 08:30 . pm | View his/her posts only
so We get now the same error. How to declare variables in las ZW cad ver.? '2010.05.31(14725)'
See also