Betreff: C#-Schnittstelle: Instanzen eigener Klasse in Dictionary speichern
Hallo!
ich benutze die C#-Schnittstelle von Autocad (Wrapperklassen von ObjectARX).
Ich habe folgende Frage:
Wie kann man eine Instanz einer selbstprogrammierten Klasse in dem "Dictionary" speichern?
Bei ObjectARX ging das indem man die eigene Klasse von "AcDbObject" erben lässt.
Wenn ich von der äquvialente Klasse "DBObject" der C#-Schnittstelle erben lasse funktioniert das nicht
(Error: No overload for the DBObject-constructor takes zero arguments)!!
Kann mir da jemand weiterhelfen? Wie bekomme ich meine Instanzen in das Dictionary?
Vielen Dank im Vorraus und Grüße
Oliver
Hi there!
I´m currently working with .net 2005, C# and AutoCAD08.
I´ve created a custom dictionary (that is a Sub-Dictionary of the Named-Objects-Dictionary)
but then a problem occurs:
I just can´t write an instance of one of my own classes to it.
I already tried to subclass DBObject (AcDbObject) with my class, but that isn´t possible!!
(Error: No overload for the DBObject-constructor takes zero arguments)
Can someone please help me out?
Thanks in advance.
Best regards
Oliver
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP