Zwcad + vba problem

Rank: 1

mtgund3879

Newbie

posts: 6

Registered: 2013-2-25

Message 1 of 3

  Zwcad + vba problem
15-03-2013 03:28 . pm | View his/her posts only

Code that works on zwcad vba is notworking from excel vba.

Sample Code is,

Dim acadapp As ZcadApplication

Set acadapp = GetObject(,"ZWCAD+.Application.2012")

Dim acaddoc As ZcadDocument

Set acaddoc =acadapp.ActiveDocument

Dim lineObj As ZcadLine

Dim startPoint(0 To 2) As Double

Dim endPoint(0 To 2) As Double

' Define the start and end points forthe line

startPoint(0) = 2#: startPoint(1) = 9#:startPoint(2) = 0#

endPoint(0) = 50#: endPoint(1) = 60#:endPoint(2) = 0#

' Create the line in model space

Set lineObj =acaddoc.ModelSpace.AddLine(startPoint, endPoint)

acaddoc.Application.ZoomAll



But this situation is just forwindows 7 64. there is no problem for windows xp 32. We have too many programswritten for zwcad automation in excel. As we observed, on windows 7installation "zwauto.dll" activex registration is wrong or missing.Path of file/files are for "Documents" folder not "zwcad +"folder (From vba "referances" section) .

0 Kudos

Rank: 1

Arphone

Newbie

posts: 24

Registered: 2012-6-25

Message 2 of 3

Zwcad + vba problem
01-04-2013 11:01 . am | View his/her posts only
Hi,

Thanks for your feedback. We have realized this problem and are working on it.
TOP 0 Kudos

Rank: 1

mtgund3879

Newbie

posts: 6

Registered: 2013-2-25

Message 3 of 3

Zwcad + vba problem
08-04-2013 08:32 . pm | View his/her posts only
Sp2...still same problem
TOP 0 Kudos
© 2012 ZWCAD Software Co., Ltd. All rights reserved. | About ZWSOFT | Privacy Policy | Terms and Conditions | Contact us | Site Map
All trademarks,trade names or company names referenced herein are used for identification only and are the property of their respective owners.