« Create an Area | Main | Area Boundary Segments »

April 20, 2009

Comments

Dear Jeremy,

I hope you can give me some advise on this. Based on the information in this blog I was thinking of creating a separate rvt file with all our wall system families. Then remove the wall system families from our company template. Via the API, link the rvt file with all our wall system families to a project and show these walls in a listbox. Then add the selected walls to the Revit project for further use.

Is there a more logic approach for this? If not is there a way to load an rvt file via API?

Regards,

Bas Hendriks

Dear Bas,

To start at the end, yes, for sure you can load a file via the API. Do you mean load a family into a project? That would be an RFA file, not RVT. Do you mean open an existing project? That would be an RVT file. Yes, you can open a project in the API, but it does not become visible to the user, it can only be manipulated via the API.

The rest of your ideas sound fine to me, but I am not a user, so I cannot tell whether the workflow is optimal. It sounds doable from the API point of view, as far as I can tell.

Cheers, Jeremy.

Dear Jeremy,

Correct me if I'm wrong but as far as I know a System Familiy as in my case Walls can't reside into a project RFA file. Therefor I thought of putting the Wall System Families into a RVT file and link it to a project so I can add them if required.

Do you have an example of opening a project RVT file? Together with the code on "linked files" I can realise my idea.

Many thanks,

Bas

Dear Bas,

Oops, yes, of course, right you are, system families are built in and cannot be redefined in RFA files.

You can use the Application OpenDocumentFile method to open an RVT project file. The only example of calling it that I found off-hand is in the FamilyCreation AutoParameter sample, although it is only interested in opening family files. It is pretty straight-forward to use.

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