| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 11 months |
| seen | May 9 at 15:34 | |
| stats | profile views | 4 |
|
Jan 5 |
awarded | Revival |
|
Jan 5 |
answered | ArcGIS custom addin icon |
|
Jul 23 |
comment |
Alternatives to IPersistVariant in ArcMap add-in's? Yes it is. I have edited the question and added the code I am using now. I also added the extension with implementation of the load and save methods. I appreciate your help very much Kirk and hope you still have some options for me to try. |
|
Jul 23 |
revised |
Alternatives to IPersistVariant in ArcMap add-in's? added 3733 characters in body |
|
Jul 23 |
revised |
Alternatives to IPersistVariant in ArcMap add-in's? added 1656 characters in body |
|
Jul 20 |
comment |
Alternatives to IPersistVariant in ArcMap add-in's? Yes, saving works. But during loading I cannot get the PropertySet back from the stream. COMException: ClassFactory cannot supply requested class... |
|
Jul 20 |
awarded | Editor |
|
Jul 20 |
revised |
Alternatives to IPersistVariant in ArcMap add-in's? added 1717 characters in body |
|
Jul 20 |
comment |
Alternatives to IPersistVariant in ArcMap add-in's? However it does work when I wrap an interface type member directly in a PropertySet. So we are a step further... |
|
Jul 20 |
comment |
Alternatives to IPersistVariant in ArcMap add-in's? That method does not work for persisting my custom classes that have members declared as interface types common in ArcObjects (such as IPolyline). I get an error that states the class is not marked as serializable (see edited question for the class). |
|
Jul 19 |
comment |
Alternatives to IPersistVariant in ArcMap add-in's? Possibly yes. I now followed your advice Kirk and put in the PersistenceHelper and decorated my class with the SerializeAttribute. It works for most types, but not for members declared as interfaces (there they are again). Throughout my solution I of course use members declared as IPolyline, IPoint an so on. In the sample they use PointClass which works. This is a problem since a lot of methods in ArcObjects return objects through their interfaces. Any thoughts on that? |
|
Jul 19 |
comment |
Alternatives to IPersistVariant in ArcMap add-in's? I use 10.0 and implement several interfaces in my add-in with success: ILayer, ILegendinfo, ITool, ICommand, IGeoDataset. |
|
Jul 18 |
comment |
Alternatives to IPersistVariant in ArcMap add-in's? I'll try this, thank you Kirk. |
|
Jul 18 |
awarded | Student |
|
Jul 18 |
comment |
Alternatives to IPersistVariant in ArcMap add-in's? Yes but the BinaryFormatter cannot serialize my custom objects that implement IPersistVariant. Or should that work according to you? |
|
Jul 18 |
asked | Alternatives to IPersistVariant in ArcMap add-in's? |
|
Jun 26 |
awarded | Teacher |
|
Jun 26 |
answered | Why can't the breakpoint be “hit” when debugging an ArcGIS 10 Add-In? |