Yes/No Parameters
I am trying to build yes/no parameters that control one another. Ex: Recessed only comes on if Width > 4' or if LED,Globe Lights, Fluroescent are checked how do I write this code
View ArticleRe: How can I use the checbox "Blank row before data" from Revit API ?
There is no access to the properties in Appearance tab of Schedule Properties through API. The workaround I have been using is to create a View template from a view that has the same properties I want...
View ArticleRe: my family instance cant cut the wall
in SolidSolidCutUtils.AddCutBetweenSolids(doc, ele, ele2) ele is supposed to be the element to be cut which is the wall. So simply replace ele and ele2: SolidSolidCutUtils.AddCutBetweenSolids(doc,...
View ArticleRe: how i can format table in process transferring from schedule to sheet?
You can access the contents in the schedule using schedule.Definition and this class has many methods and properties to modify the schedule. You can AddFilter or AddSortGroupField. Also you can get the...
View ArticleRe: Is there any way to change wall's profile through Revit API ?
The old deleting trick is the best available workaround, I believe: http://thebuildingcoder.typepad.com/blog/2010/11/access-to-sketch-and-sketch-plane.html
View ArticleRe: Yes/No Parameters
I think this is what you are looking for: = if (or(or(or(LED, Globe Lights) , Fluorescent), Width > 4') , True, False ) This makes the parameter true if any of those four parameters are true. If...
View ArticleRe: Change pipe diamter before create using api
Hi, the diameter is a parameter of the pipe. Sample : double dblnewValue = 0.328084; //Value for 100mm using (Transaction trans = new Transaction(doc)) { trans.Start("modify Diameter");...
View ArticleRe: Create Direct Shape from Room
Dear Platform5rd, Thank you for your interesting query. It is not completely clear to me what exactly you are after. If you want the room with holes, then there will be nothing left. The room is a...
View ArticleRe: Create Direct Shape from Room
Thanks Jeremy ! "Do you mean that you have a room whose plan view includes holes?" Yes, I would like to create the volume of the room. If the room has holes (Because walls), I would also like to...
View ArticleRe: How can I use the checbox "Blank row before data" from Revit API ?
In Revit 2014 that was probably the way to handle it, but in 2015+ you can use the ShowBlankLine property on the...
View ArticleRe: Boolean Family variables
The simplest way to achieve what you're doing, given your example, would be to have both generic annotations in the family, and change the visibility through the 'valve shut' parameter. Have an...
View ArticleRe: Yes/No Parameters
dear jason.wells I think the follow is what you are looking for: =or(and(LED,Globe Lights,Fluorescent),Width>4)
View ArticleRe: How can I use the checbox "Blank row before data" from Revit API ?
how it works?I try but I can not:like this on Python transaction.. ScheduleSheetInstance.Create(doc, sheet.Id, schedule.Id, xyz) # crate schedule unit = schedule.Definition.GetField(0) # or may...
View ArticleRe: How can I use the checbox "Blank row before data" from Revit API ?
A quick google turns up this example:https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2016/ENU/Revit-API/files/GUID-F66DF1E1-7EF2-4CD5-AA3F-9DEA7D92DC49-htm.html
View ArticleRe: How can I use the checbox "Blank row before data" from Revit API ?
So do we have access to all the appearance properties through API or Show Blank Line is the only one?
View ArticleRe: How can I use the checbox "Blank row before data" from Revit API ?
I think most things are accessible now (as of Revit 2017).The link above points to most of the usual formatting requirements.
View ArticleRe: family instance on reference plane with API
Have you tried refDir = (0, 0, 0) ? Could you share the family you are trying to place?
View ArticleRe: family instance on reference plane with API
Thanks for reply. Yes I have used (0,0,0). I am using the Revit "out of the box" US Imperial - Electrical - MEP - Electrical Power - Terminals - DuplexAs you can see from the Attached screen shot the...
View ArticleRe: Event to run a IExternalCommand
Dear Mike, Matt, Erik and Gonçalo, Thank you very much for raising this issue and helping to solve it. I think this discussion is fruitful, illuminating, and well worth preserving, so I published an...
View ArticleRe: Revit 2017 Categories
MattThank you for your response and apologies for not responding sooner.Yes, the aim of the code was to get elements that have a shared parameter applied to that element category.Having had a few days...
View Article