Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic What if a Shape ID is already being used? (Read 1893 times)
areddan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Feb 17th, 2009
What if a Shape ID is already being used?
Feb 19th, 2009 at 2:10am
Print Post  
For example, if I tried to instantiate a shape with the id "Rectangle" - how does the system behave? Does it override the original shape?

Also, for shapes where an ID isn't specified, are they not included in the SHapeCollection?

Thanks.
  
Back to top
 
IP Logged
 
areddan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Feb 17th, 2009
Re: What if a Shape ID is already being used?
Reply #1 - Feb 19th, 2009 at 3:57am
Print Post  
Also, does the FromID method care about case in regards to the ID?
  
Back to top
 
IP Logged
 
areddan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Feb 17th, 2009
Re: What if a Shape ID is already being used?
Reply #2 - Feb 19th, 2009 at 4:31am
Print Post  
After testing - Yes it does care about the case, and Yes it does override the existing shape.

Cheers,
Anthony
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: What if a Shape ID is already being used?
Reply #3 - Feb 19th, 2009 at 8:48am
Print Post  
That's right. Shapes with IDs are shared and are stored in the Shapes collection. Shapes without IDs are considered private for the node they are assigned to; I think they are even cloned by the Shape setter, so modifying such shape for a node won't affect other nodes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint