Re: Surface and volum of an element
Dear Javi, I should think so. Using just the Revit API, I think you can retrieve the solids and create a union of them all via ExecuteBooleanOperation:...
View ArticleRe: How to filter RebarBarType + rebarStyle.Stirrup
Dear Sudhan, Examine the detailed properties of the element you are trying to retrieve through the filter, e.g., using RevitLookup. Make sure you know what class of element you are looking for. From...
View ArticleRe: Revit API with WPF
I went the Window route in WPF with Revit AddIns for awhile. You have to use WindowName.Show() for modeless, not WindowName.ShowDialog() which is modal, if I understand your question correctly.
View ArticleRe: Units system in document
As indicated you need to convert the coordinates from millimeters to feet first in order to get the length correctly in mm units. Please find the modified code: public Result...
View ArticleRe: Edit Detail Element Family
Ok in this case replace the foreach loop with this new one: For Each c As Curve In ListCurve If TypeOf c Is Line Then Dim l As Line = TryCast(c, Line) Dim ts As Transform = Nothing Dim ptOrigin As XYZ...
View ArticleSorting Parameters in the Family Editor
I'm trying to sort some parameters in the family editor. I have a Macro that adds all the parameters in the shared parameter file to the family. But the order they appear seems to be alphabetical....
View ArticleRe: Add Revit Links to Project with C#
Hi , thank you for your reply! Yeah it was looking odd to me as well, but I fount it in the example code in the Revit API Docs website and I took it as it was...I guess they were probably showing...
View ArticleRe: Add Revit Links to Project with C#
Hi all, I just figured out that the script was not working because the file was getting corrupted for some reason while being upgraded. Sorry my bad, I guess I still need to learn a lot here both about...
View ArticleRe: DWFXExportOptions()
It was my bad, after posting I found the options in the API:ExportObjectData
View ArticleRe: Add Revit Links to Project with C#
As the name suggests, it Commits the transaction. .Rollback does just that. A transaction is like an AutoCAD Undo group. Note there is also a TransactionGroup, which groups transactions into one undo....
View ArticleRe: ElementIntersectsFilter.IsElementSupported() incorrectly returns true for Ro
Hi Thomas Mahon, I am sorry to say that I can reproduce this issue as well. I submitted the wish list item REVIT-125215 [ElementIntersectsFilter.IsElementSupported() incorrectly returns true for Rooms...
View ArticleRe: Category Material Issue
Hi Peter Ciganek, Please accept our sincerer apology for the delay! We had a backlog in the queue these days. I am sorry to say that I can reproduce this issue as well. I submitted the wish list item...
View ArticleRe: How to retrieve startAngle and endAngle of Arc object
Yes, GetEndParameter return the angle on plane with Arc.Normal and origin equal to arc.Center between arc.XDirection and endpoint. not angle to sketch = extrusion.Sketch.SketchPlane.GetPlane();double...
View ArticleRe: How to retrieve startAngle and endAngle of Arc object
XYZ P45 = new XYZ(Math.Sqrt(2) / 2, Math.Sqrt(2) / 2, 0);XYZ P60 = new XYZ(0.5, Math.Sqrt(3) / 2, 0); XYZ P30 = new XYZ(Math.Sqrt(3) / 2, 0.5, 0); double Angle60To45= P60.AngleTo(P45); // return Pi/12...
View ArticleRe: Add Revit Links to Project with C#
The sample code you show in your snapshot is from an old version of the Revit API docs. This is what it lists today; one single call to Create: Examples CopyC#public ElementId CreateRevitLink(Document...
View ArticleRe: How to retrieve startAngle and endAngle of Arc object
Dear Nam, AngleTo returns the shortest possible non-negative angle, measuring in whatever 3D plane gives the smallest angle. This angle will always be positive (or zero). If you want to obtain a...
View ArticleRe: Sorting Parameters in the Family Editor
Just as you noticed, the SortParameters method takes a ParametersOrder enumeration argument: http://www.revitapidocs.com/2018.1/329ceb60-b9b5-d603-a23c-e9fcfc9d2f62.htm The ParametersOrder enumeration...
View ArticleRe: LevelOffset not working for Arc extrusion Roof
Work it out manually in the user interface first. Observe the results using RevitLookup.
View Article