Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extensible storage on ProjectInfo (Revit 2012)

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
FRFR1426
918 Views, 2 Replies

Extensible storage on ProjectInfo (Revit 2012)

I'm using Extensible storage to store project wide data on the ProjectInfo element. All is OK on Revit 2013, but on Revit 2012, when I save the project and try to reopen it, I've got a message saying that element 558 (ProjectInfo) is corrupted and then Revit crash.

 

The code is like this:

 

using (var entity = new Entity(Schema))
using (var tr = new Transaction(document))
{
    if (tr.Start("Save settings") == TransactionStatus.Started)
    {
        entity.Set(...,...);
        Document.ProjectInformation.SetEntity(entity);
        tr.Commit();
    }
}

 Schema is a property where the Schema is build.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
2 REPLIES 2
Message 2 of 3
FRFR1426
in reply to: FRFR1426

When I close, I've sometimes a runtime error: R6025 - pure virtual function call

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
Message 3 of 3
FRFR1426
in reply to: FRFR1426

Just installed SP1 & SP2. Seems to resolve the issue.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community