Message 1 of 3
Post Last Edit by rishir7113 at 2013-1-11 14:08
I try to evaluate ZWCAD+ with com in VS2008.I added Type library and try to Run Some sample Application Like AddLine,AddCircle, etc and these works fine.
Follow to that i tried to use GetPoint,SelectbyFence Which is giving me error that Interface is Not registered (Interop.ZWCAD)
I am Facing below issues,
In programming ZcadDocument.ZcadUtility Throws Exception For Me.
Even ZcadDocument.SelectionSet do the same.
I am using ZWCAD+ Trial version on Windows XP operating System.
Kindly Let me know the reason or solution for it.
Sample Code is As Below
zcadapp = new ZcadApplication();
zcadapp.Visible = true;
zcaddoc = zcadapp.ActiveDocument;
object objPoint = (object)dblStartPoint;
string strPrompt = "Click a Point";
object objPrompt = (object)strPrompt;
zUtility = zcaddoc.Utility;
retObj = zUtility.GetPoint(objPoint, objPrompt); // Error Here As zUtility is null
double dblStartPoint = new double;
dblStartPoint = (double)retObj;
// Error ......
Message 2 of 3
Message 3 of 3