Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
ChingYen  
#1 Posted : Monday, August 23, 2010 3:04:41 PM(UTC)
ChingYen

Rank: Advanced Member

Groups: Member
Joined: 3/3/2008(UTC)
Posts: 185

Thanks: 8 times
Hi,

Is that possible to group VObject? What we trying to do is create our own VObject which can draw "callouts". Where it will be joining polygon drawing and also text.

Please advise..

Thanks.
Dmitry.Obukhov  
#2 Posted : Monday, August 23, 2010 8:39:13 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Ching-Yen,

It is possible. You can found detailed information on how to use it in the CompositeVObject Class article.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
ChingYen  
#3 Posted : Monday, August 30, 2010 12:19:09 PM(UTC)
ChingYen

Rank: Advanced Member

Groups: Member
Joined: 3/3/2008(UTC)
Posts: 185

Thanks: 8 times
Hi,

Thanks for the link. But, is there any sample on this? It's really difficult to understand how to make use of those by just reading the function list. Please advise..
Dmitry.Obukhov  
#4 Posted : Monday, August 30, 2010 9:34:27 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Ching-Yen,

I created simple win application. It allows creating two vector objects and grouping them to one. I attached this sample for your reference. Please download and try it out. If you have any questions or problems, I will be glad to assist you.
File Attachment(s):
CompositeVobjectSample.zip (1,999kb) downloaded 9 time(s).
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
ChingYen  
#5 Posted : Tuesday, August 31, 2010 2:52:37 AM(UTC)
ChingYen

Rank: Advanced Member

Groups: Member
Joined: 3/3/2008(UTC)
Posts: 185

Thanks: 8 times
Hi,

We tried to modify the given sample. But, we are facing problem when user try to click on the created group object, it will give error. Please find attach for the sample code.

p/s: Click on the button 2 and drag to draw it.

Edited by user Tuesday, August 31, 2010 2:57:50 AM(UTC)  | Reason: Not specified

File Attachment(s):
CompositeVobjectSample.zip (2,057kb) downloaded 6 time(s).
Dmitry.Obukhov  
#6 Posted : Tuesday, August 31, 2010 4:39:53 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Ching-Yen,

This error occurs because all vector objects should be added on the multilayer viewer. Please correct your script so that all your objects will be added on viewer like in my first sample:
Code:

multiLayerViewer1.Layers[0].VObjects.Add(rectangle);
multiLayerViewer1.Layers[0].VObjects.Add(text);
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.