<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
<title>ZcadUtility</title>
<link>http://www.zwsoft.com/forum/viewthread.php?tid=2568</link>
<description>[i=s] Post Last Edit by rishir7113 at 2013-1-11 17:02 [/i]

[i=s] Post Last Edit by rishir7113 at 2013-1-11 14:08 

Hi Folks

I try to evaluate [color=#9932cc]ZWCAD+[/color] with [color=#9932cc]com[/color] in [color=#dda0dd]VS2008[/color].I added Type library and try to Run Some sample Application Like[color=#9932cc] AddLine,AddCircle[/color], etc and these works fine.


Follow to that i tried to use [color=#9932cc]GetPoint,SelectbyFence[/color] Which is giving me error that Interface is Not registered ([color=#9932cc]Interop.ZWCAD[/color])

I am Facing below issues,
In programming [color=#9932cc]ZcadDocument.ZcadUtility[/color] Throws Exception For Me.
Even [color=#9932cc]ZcadDocument.SelectionSet [/color]do the same.

I am using [color=#9932cc]ZWCAD+[/color] Trial version on [color=#9932cc]Windows XP[/color] operating System.

Kindly Let me know the reason or solution for it.

Sample Code is As Below


[color=#9932cc]ZcadApplication zcadapp;[/color]
[color=#9932cc]ZcadDocument zcaddoc;[/color]
[color=#9932cc]ZcadUtility zUtility;[/color]
[color=#9932cc]
[/color]
[color=#9932cc]zcadapp = new ZcadApplication();[/color]
[color=#9932cc]zcadapp.Visible = true;[/color]
[color=#9932cc]zcaddoc = zcadapp.ActiveDocument;[/color]
[color=#9932cc]
[/color]
[color=#9932cc]
[/color]
[color=#9932cc]
[/color]
[color=#9932cc]object objPoint = (object)dblStartPoint;[/color]
[color=#9932cc]string strPrompt = &quot;Click a Point&quot;;[/color]
[color=#9932cc]object objPrompt = (object)strPrompt;[/color]
[color=#9932cc]object retObj;[/color]
[color=#9932cc]zUtility = zcaddoc.Utility;[/color]
[color=#9932cc]
[/color]
[color=#9932cc]try[/color]
[color=#9932cc]{[/color]
[color=#9932cc]
retObj = zUtility.GetPoint(objPoint, objPrompt); // Error Here As zUtility is null[/color]
[color=#9932cc]	[/color]
[color=#9932cc]	[/color]
[color=#9932cc]
double[] dblStartPoint = new double[3];[/color]
[color=#9932cc]
dblStartPoint = (double[])retObj;[/color]
[color=#9932cc]}[/color]
[color=#9932cc]catch[/color]
[color=#9932cc]{[/color]
[color=#9932cc]
// Error ......[/color]
[color=#9932cc]}[/color]


Thanks
Rishikesh</description>
<author>rishir7113</author>
<pubDate>2013-01-11 12:59:15</pubDate>
<item><link>http://www.zwsoft.com/forum/viewthread.php?tid=2568&amp;pid=16474</link>
<description>[b]Reply [url=http://www.zwsoft.com/forum/redirect.php?goto=findpost&amp;pid=16473&amp;ptid=2568]2#[/url] [i]Zibster[/i] [/b]


   Hi Zibster
   I added Sample Code with My earlier Post.


  Regards
Rishikesh</description>
<author>rishir7113</author>
<pubDate>2013-01-11 17:04:24</pubDate>
</item><item><link>http://www.zwsoft.com/forum/viewthread.php?tid=2568&amp;pid=16473</link>
<description>[i=s] Post Last Edit by Zibster at 2013-1-11 16:56 [/i]

Hi,

can you add (attach) you code here?

Greetings,
Assgarth</description>
<author>Zibster</author>
<pubDate>2013-01-11 16:47:06</pubDate>
</item>  </channel>
</rss>