My plan is to edit an Associative array entity Programmatically and I don't know where to start.
Why can't I cast a DBobject to AssocArray ?
something like this?
Dim myarray As AssocArray = TryCast(mydbobj, AssocArray)
Why TypeOf dbobject is BlockReference ?
Can I get some right direction Here Please? I stuck right at begining.
Thanks Janet.
Solved! Go to Solution.
Solved by chiefbraincloud. Go to Solution.
I haven't played with them yet, but if memory serves, I think Stephen Preston did a DevCast on the subject.
A quick search gave me this Through the Interface Post:
Which also points to this TTIF post:
http://through-the-interface.typepad.com/through_the_interface/2011/03/new-apis-in-autocad-2012.html
The second post has links to download the DevTV session.
Hello chief,
Thanks for reply and helping me again .
I saw that and I was able to create them using that link. Now question is how could I edit them after they added to database. Because after I get DBobject I can't even cast them to get the proper class.
Hello Chief . I knew you never make mistake. That is why I double check the second Link which was TTIF post. and I found what I want. Thanks again. Sorry I rushed to answer at first place.
Regards,
Janet.
Oh, believe me, I make mistakes. Glad this wasn't one of those times. 😉
Here is one approach but might be a better way of doing it
http://www.theswamp.org/index.php?topic=37921.msg464320#msg464320
but
AssocArray.GetParameters
modify parameters
Commit