Quantcast
Channel: All Revit API Forum posts
Browsing all 67020 articles
Browse latest View live

Re: Can calculated value's formula be retrieved from a ScheduleField ?

What did you try so far?

View Article


Re: How to dismiss popups when going into "EditFamily" from a project.

For the warnings you can write them to a WarningSwallower while committing the transaction. The errors cant be avoided. regardsChristian

View Article


Re: Can calculated value's formula be retrieved from a ScheduleField ?

Hi, So far I managed to get all the fields that are calculated values, but I see no method or property to retrieve the formula:             FilteredElementCollector schedules = new...

View Article

Re: How to dismiss popups when going into "EditFamily" from a project.

hi Christian, The problem is that when I set a transaction I got "The document is currently modifiable, try closing the transaction before calling EditFamily" error. And I don't know why. The code I...

View Article

Re: Can calculated value's formula be retrieved from a ScheduleField ?

You need to get the parameter and and then you can read the formula: string formula = param1.Formula;or set it, like: famdoc.FamilyManager.SetFormula(param1, "IF(Width>Depth,Width,Depth)");Hope this...

View Article


Re: How to dismiss popups when going into "EditFamily" from a project.

One question I have, why do you need to edit the family to read values? And the document should be FamilyDocument. First check: if (doc.IsFamilyDocument) { }Christian

View Article

Re: Can calculated value's formula be retrieved from a ScheduleField ?

I don't understand. The calculated value field exists only in schedule, it has nothing to do with a family. Also, correct me if I'm wrong, the ScheduleField has no parameters assigned to it. Right?...

View Article

Re: How to dismiss popups when going into "EditFamily" from a project.

I need to go to edit family mode in order to get the formulas, and various family elements info. I don't think I could read them without going into edit mode. In my case I don't need to check if doc is...

View Article


Re: How to dismiss popups when going into "EditFamily" from a project.

I use: famdoc.FamilyManagerif I only want to read.

View Article


Re: How to dismiss popups when going into "EditFamily" from a project.

But first you need to have: Document famDoc = doc.EditFamily( family ) Or is there another way?

View Article

Re: How to dismiss popups when going into "EditFamily" from a project.

I am confused. If you get the document from the current UIApplication: UIDocument uidoc = uiapp.ActiveUIDocument; Document doc = uidoc.Document;if (doc.IsFamilyDocument){ doc.FamilyManager. .....}and...

View Article

Re: How to dismiss popups when going into "EditFamily" from a project.

Okay, let me explain. I start from the project level. So: --> doc is the project,--> I loop through all the project's families matching my criteria,--> for each family matching my criteria I...

View Article

Re: How to dismiss popups when going into "EditFamily" from a project.

Hope I got it now: using (Transaction t = new Transaction(activeDoc, "Open family")) { t.Start(); FailureHandlingOptions failOpt = t.GetFailureHandlingOptions(); failOpt.SetFailuresPreprocessor( new...

View Article


Re: Command Interface Parameters

Hi Jeremy, Thanks for confirming.  I really like this style of interface, which appears only during the command, allows the input of a few relevant parameters, and maintains the last set value between...

View Article

Revit rendering error

Hi,When I try rendering in the cloud, I receive an error message. Ive tried using different settings and different camera views but I still receive an error message every time. I also tried a different...

View Article


Image may be NSFW.
Clik here to view.

Re: Create Solid from boundingbox

Upon selecting the planar face of a solid, two new solids are created - the two halves of the bounding box of the original, split by the plane of the selected face.   Hi Jeremy, Here's a simplified...

View Article

Re: Create Solid from boundingbox

Can you please provide a sample RVT file for your "brace" family because I guess there is a direct way to do your intersection.

View Article


Re: Access to line-based elements?

Thank you so much for your reply, JeremyHere is the problem I anticipate users having:User imports autocad 2D backgrounds, with everything on one layer (converted from a pdf to dwg)The dwg background...

View Article

Re: Independent View with Preview Control

I found this code on the spiderinet websiteDoes anyone know how I can achieve a preview that changes on clicking rows of views on a winform?• Expose the ElementHost controls of the form to the outside...

View Article

Preview Control

I found this code on the spiderinet website, thanx to the author I found that you can do a preview in the winform.I have two probs unfortunately1. I havent implemented the code coreectly and it crashes...

View Article
Browsing all 67020 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>