« Exception on Copied Geometry | Main | Reloading a Family Again »

October 03, 2011

Comments

Hello,
First of all i'm sorry for my poor english (French don't like to learn other languages...). I'm new in making some plugin for revit and I use your web site all days to improve myself. But i have a problem with external file management. I'm able to ready links but when i want to change the path it makes me an exception.

Autodesl.Revit.Exceptions.InvalidOperationException: Failed to transmit TransmissionData.

It happens when revit performs this command : transData.SetDesiredReferenceData(...

Do you have an idee of what i have to do?

Thank you,

V.

Dear Valentin,

Don't worry, your English looks absolutely fine to me!

I am glad to hear that the blog is useful, and thank you for your appreciation.

Sorry, I have no idea what might be going wrong at your end.

The code above should work and make a successful call to the SetDesiredReferenceData method. Are you using it differently somehow?

Cheers, Jeremy.

Dear Jeremy,

I finaly found the problem. The code (or something else i did) only work on a closed file.

Thank you for all you make for beginners.
thebuildingcoder > autodesk.

V.

Dear Valentin,

Thank you for the update and appreciation!

Congratulations on solving your issue!

Cheers, Jeremy.

Hello,
I know it's quite an old post but I'm trying to do a little plugin that basically copy a template project to another location and renames all the files to match the new project and so on.
I was able (thanks to your code) to manage the new paths if I don't rename the files but I cannot find how to change also the name of the external reference.
The result till now is that if I leave the ShouldLoad setted to True Revit cannot load the project (it gives me a Data Error).

Thank you

Stefano

Dear Stefano,

Thank you for your appreciation.

I am glad that the code presented here helped with part of your task.

Are you saying that TransmissionData.SetDesiredReferenceData method does not work in your case?

Can you provide a reproducible case for that, so we can explore it further?

http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

Thank you!

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource