Re: Can calculated value's formula be retrieved from a ScheduleField ?
What did you try so far?
View ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: How to dismiss popups when going into "EditFamily" from a project.
I use: famdoc.FamilyManagerif I only want to read.
View ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRevit 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticlePreview 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