Editing Formula for a family
I have created a shared parameter X, and I'm just applying a simple logic such asIF(X<0, X=0, X)In order to prevent negative value input.However, it shows up a warning "There is a circular chain of...
View ArticlestartAngle in Arc ctor
I'm programmatically transferring the Alignment Object from Autocad 2016 Civil3D to Revit.The Alignment object has several properties, however, due to the limited number of constrcutors on the Arc...
View ArticleRe: Editing Formula for a family
Are you applying the formula to a different parameter? I believe trying to set a parameter based on its own value would result in this warning. (Also this isn't really an API question :-)
View ArticleRe: Place repeating detail using the API
It seems that there is no easy way to place an element using the api. But we can easily copy the repeating detail using CopyElements from one view to the next.My suggestion: Create a repeating detail...
View ArticleRe: REvit 2017 API Wishlist - PLEASE
For item #2 can't you use the ScheduleDefinition.IsItemized property and set to true?
View ArticleRe: pipe elbows
Dear Sanjay, You mean connected elbow to pipe?. Actaully not get what you want? Thanks
View ArticleSetting Schedule View as Active View
Hi, I need to set schedule view as Active view to uidocument in revit. But i am getting error like setting active view is temporarily disabled. Please find me the solution. Thanks,Jagan.
View ArticleRe: PromptForFamilyInstancePlacement Keyboard Shortcut problem
You can stop the error from popping up at least with a try/catch. // Hack to suppress error when using Shortcut key to call command try { rvtUiDoc.PromptForFamilyInstancePlacement(familySymbol)} catch...
View ArticleRe: MultiSegmentGrid start end problem
What I'm trying to determine is which end the grid head will be drawn on by default. The grid type allows a user to show a grid head on the start or end of a grid line. With a single segment line this...
View Articlevertical NewOpening gives error "Can't change plane of Opening Cut Sketch."
Hi, I'm trying to create a vertical opening with the code below. The opening can be created if the 3rd argument is "true". The resulting opening is perpendicular to the face.But when the 3rd argument...
View ArticleRe: Support for BCF API
The stand-alone BcfApiExampleClient has been updated now and works again: https://github.com/rvestvik/BcfApiExampleClient I adapted the Revit version of it, retested, and it works fine too:...
View ArticleRe: startAngle in Arc ctor
Dear Dirk, I could search for an answer for you. Here is some background info on arcs and other curves, for instance: http://thebuildingcoder.typepad.com/blog/2010/01/curves.html More comfortable and...
View ArticleRe: Something About AllRef
Afaik, the count includes both logical and physical connectors. Check their properties to tell them apart: https://github.com/jeremytammik/AdnRme/blob/master/AdnRme/CmdElectricalConnectors.cs Cheers,...
View ArticleRe: Editing objects inside Group
Dear Anders, Thank you for your query. Off-hand, I do not see anything wrong with your code. I am not aware of any other way to edit elements in a group except temporarily ungrouping them. I cannot...
View ArticleBuilt In Parameter
Hi everybody, I'm working on a small API which allows to get instance parameter. I arlready arrived to get wall area, floor area. I'm blocked on wall foundation length, column volume and slab area. I...
View ArticleRe: Error: setValue on engaged ControlledLocalPointer before existence of TaskBl
Thanks Scott, It's unfortunate that threading isn't supported. Meanwhile i'm happy that i found a workaround to my problem and i got my program to work. From now on this just has to be something to...
View ArticleRe: Light Source with ElementIntersectsFilter
Dear Anatoly and Evgeny, Thank you very much for your updates, business case and new sample. I added them as notes to the issue REVIT-90948 [ElementIntersectsElementFilter and...
View Article