« Loading The Building Coder Samples | Main | Editing a floor profile »

November 10, 2008

Comments

Is it possible to add shared parameters in a .rfa file using the DotNet Revit API? The example for adding shared parameters to a DWG file does not work for RFA files. Can you please post some sample code for adding shared parameters to an RFA file. Thanks.

Hi Shankar, I might address this question in a separate post some time soon. Cheers, Jeremy.

Dear Shankar,

I finally got around to addressing this question in a separate post:

http://thebuildingcoder.typepad.com/blog/2009/06/adding-a-shared-parameter-to-an-rfa-file.html

Cheers, Jeremy.

Hi Jeremy, Hi followers,

I'm coding a tool to manage Links to dwg-drawings. One 'routine' Links the dwg files to our Revit model using this Revit-API method:
Document.Link(string file, DWGImportOptions options, View pDBView, out ElementId elementId)

Since Revit 2015 there exists a new ImportOption 'AutoCorrectAlmostVHLines'. This Option can be set via a flag using API commands. I thought this should reflect the behavior of the standard dwg-Import dialog, but the Lines are always adapted to the xy-Grid. Even this method auto corrects.

private ElementId importFile(string file_name, DWGImportOptions opt) {
ElementId e_id = null;
opt.AutoCorrectAlmostVHLines = false;
Transaction t = new Transaction(doc, file_name + ";import dwg");
t.Start();
doc.Link(file_name, opt, doc.ActiveView, out e_id);
t.Commit();
//Element dwg_file = doc.get_Element(e_id);
return e_id;
}

In Version 2013 this auto correct did not exist, so the we just got awre of this. Did anyone else face such problems or does anyone have a good idea how to fix this?
I use Built: 20150127_0715(x64)-Update Release 6

Thnx in advance, Matthias

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