« Perpetual GUID Algorithm and Revit 2014 Product GUIDs | Main | Room Editor Project Overview and CouchDB Configuration »

April 18, 2013

Comments

Hi Jeremy,
In your buiding coder samples, there is a command for create a new project document. In my case, I would like to create a new project document from my own revit template.I managed to create new project document if revit template file is a separate file from dll. My problem is I want to embedded revit template file into Resource in IDE.

Dear Abby,

That sounds pretty cool.

However, the only method available to you is the Application NewProjectDocument method taking a filename argument.

So the only option is see for you is to extract your embedded resource to a temporary location and pass it a valid temporary filename.

Cheers, Jeremy.

Hi Jeremy,

Thank you for your help.It's solve my problem.

Abby

Dear Abby,

Thank you for your update and appreciation.

Glad it helped!

Cheers, Jeremy.

Hi Jeremy!

I'm having some troubles installing your samples.
First of all i am a nob in this Revit API, but trying to learn.

I have already installed the revit Samples that come with the SDK, and followed your instructions regarding the include statement in the end of the RVTSamples.txt, and also changed the path within the BcSamples.txt to address my BuildingCoder.dll location. I build successfully in visual studio, but when i open Revit your samples don't show up.
Can you tell me what i am doing wrong?

I also noted that the Revit Samples buttons aren't all available, do you have any idea why?

Rui Gavina

Dear Rui,

I am glad hear you are learning the Revit API.

Sorry to hear about your troubles, though.

Before you try to install The Building Coder samples, you should be well acquainted with the standard Revit add-in installation process using the add-in manifest.

Please work through the getting started materials to understand that:

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

Next, install the RvtSamples SDK sample and get that up and running.

After that, enabling The Building Coder samples is a piece of cake:

http://thebuildingcoder.typepad.com/blog/2008/11/loading-the-building-coder-samples.html

It makes use of include files, which are defined using #include.

All other occurrences of the hash character # are interpreted as comments, though.

So ##include is just a comment, and therefore ignored.

Good luck!

Cheers, Jeremy.

Is there a way to automate the process of adding (re-linking) References? Opening SDKSamples2014 all RevitAPI and RevitAPIUI references need to be re-linked to C:Program Files\Autodesk.... There are over 7300 errors... There has to be an easier way then going one by one and re-adding the references.

Matt

Nevermind.

Found RevitAPIDllsPathUpdater.exe under the Samples folder.

Nevermind, found RevitAPIDllsPathUpdater under the Samples folder.

Dear Matt,

Please look here for more details:

http://thebuildingcoder.typepad.com/blog/2013/04/compiling-the-revit-2014-sdk.html#3

Cheers, Jeremy.

Dear Matt,

Please look here for more details:

http://thebuildingcoder.typepad.com/blog/2013/04/compiling-the-revit-2014-sdk.html#3

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