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

Re: add length, width, and height to schedule floors

For rectangular shapes, obtaining width and length is pretty easy, even if the data is not stored directly in separate parameter values; you can query the floor element for its slab geometry and...

View Article


Get Solids from CompoundStructureLayer

Hi, I am trying to get the Solids of Wall class instances. Getting the solids from a wall is straight forward, Im trying to get the Solids of the Wall but only from its structural layer/material. For...

View Article


Image may be NSFW.
Clik here to view.

Re: Multi-version NUnit testing framework for Revit API.

Hey @jeremy_tammikThe Dynamo Revit Test Framework (RTF) looks abandoned in GitHub and I don't think works with Revit 2025 that uses .NET Core. Using ricaun.RevitTest is really convenient to be able to...

View Article

Theme change event

Is there in the API an event for when Revit changes its theme?

View Article

Re: Multi-version NUnit testing framework for Revit API.

Brilliant! Thank you very much for the very helpful and detailed in-depth explanation!  Good luck with your class at DevCon; sounds great!  

View Article


Native Revit Command Inside Custom Command

Is it possible to run/call native Revit commands inside a custom command? For instance, inside my custom command, I'd like to call the native Revit command "Set Workplane" and then continue with my...

View Article

How to obtain view range from a view template?

I'm trying to obtain view range from a view template, but can't find it in revit api? Is it possible at all?using System; using Autodesk.Revit.Attributes; using Autodesk.Revit.DB; using...

View Article

Re: Theme change event

Hi @lrs579 , Please take a look at this below linkThemeChanged Event

View Article


Image may be NSFW.
Clik here to view.

make external API command available in list of commands available to be a...

I've made a few commands that work well from the ribbon which I've been using for years.  Lately, I've added a command that I want to be available as a shortcut.  I was surprised to find that every...

View Article


Re: Is it possible to programmatically map phases in a linked file?

The development team confirm that this mapping probably cannot be set programmatically.    

View Article

Re: How to obtain view range from a view template?

Hi,Use GetViewRange, from ViewPlan (see: https://www.revitapidocs.com/2023/0a8b7c58-406d-b801-5921-8b23568806be.htm ) So Viewtemplate should be a ViewPlan type (not just view)Just like retrieving the...

View Article

Re: Lock families in a project

Hi, Simple answer Nope, and why let lawyers deal with this. What are they actually doing, I guess they convert the families to DirectShapes (fixes masses no parametic functionality) but in R2017 that...

View Article

Re: Lock families in a project

There is no way to do that without crashing something.

View Article


Re: Difference between these FailureDefinitionId's?

Thanks to your questions, the development team have rapidly identified, addressed and resolved this issue:  > What's the difference? Those DB failures are used at the very beginning of the handling...

View Article

Re: Native Revit Command Inside Custom Command

Yes. The "continue" aspect is a bit tricky, though. You can use PostCommand to request execution of a native command X, cf. The Building Coder topic group on that with lots of samples:...

View Article


Re: make external API command available in list of commands available to be a...

You can create a shortcut for a built-in command; here are some articles on that by The Building Coder: Add-In Keyboard ShortcutRevit 2010 Subscription PackWhat's New in the Revit 2011 APIWhat's New in...

View Article

Re: Get Solids from CompoundStructureLayer

You can split the wall into its constituent parts; that will simplify things tremendously for you:  https://thebuildingcoder.typepad.com/blog/2011/10/retrieving-detailed-wall-layer-geometry.html   

View Article


Image may be NSFW.
Clik here to view.

Custom added parameter displaying as '?' in tag.

I have added a parameter to revit '24 using the API with the following code:List<JFGParameter> sharedParameters = new List<JFGParameter>();sharedParameters.Add(new JFGParameter() { Name =...

View Article

Image may be NSFW.
Clik here to view.

Cant get geometry of touching Foundation elements.

Good Morning Everyone, I have an intresting problem.  I am working on a plugin for concrete formwork takeoff, I have it working on all Slabs, beams, underslab, and inside of beams, however when I run...

View Article

Re: Custom added parameter displaying as '?' in tag.

Afaik, there are quite a few situations and issues related with Revit displaying a question mark for a tag value:  https://duckduckgo.com/?q=revit+tag+question+mark  Hard to tell off-hand whether the...

View Article
Browsing all 67020 articles
Browse latest View live


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