Database.ObjectAppended differences between 2010 to 2012

Database.ObjectAppended differences between 2010 to 2012

BrentBurgess1980
Collaborator Collaborator
621 Views
2 Replies
Message 1 of 3

Database.ObjectAppended differences between 2010 to 2012

BrentBurgess1980
Collaborator
Collaborator

I have been playing around with a some samples from DevTV, and have come across something strange.

 

This snippet produces 2 different results between 2010 and 2010 when I draw a single line.

  Private Sub callback_ObjectAppended(ByVal sender As Object, ByVal e As ObjectEventArgs)

    ' add the class name of the object to the tree view
    Dim newNode As System.Windows.Forms.TreeNode = myPalette.TreeView1.Nodes.Add(e.DBObject.GetType().ToString())
    ' we need to record its id for recognition later
    newNode.Tag = e.DBObject.ObjectId.ToString()

  End Sub

 The attached image shows the difference. The palette on the right is from 2010, and on the left 2012.

 

Has there been a change in the Database.ObjectAppended Event between 2010 and 2012? Is there a way to only show the visible entity created in the treeview?

 

Thanks

 

Brent

 

0 Likes
622 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

I have noticed that but it was only when the first objected was added.(The Little bit I tested)

 

Will you do me a favor and add a dimension and see what the difference is? (Does not have to be the first object)

 

Thanks

 

 

http://www.theswamp.org/index.php?topic=38440.msg435534#msg435534

 

0 Likes
Message 3 of 3

BrentBurgess1980
Collaborator
Collaborator
I have just left, but will try it out on Tuesday and let you know
0 Likes