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

Re: Moving from UnitType/ParameterType to ForgeTypeId problem

Interesting approach using: enum and Attributes. "Not sure why Autodesk couldnt just keep the old ones but in the background handle them as ForgeTypeIds." Autodesk wants to normalize all the types to...

View Article


Re: REVIT API - Rooms Get Boundaries Segments

Yes I was actually having a hard time with casting the type, but you really cleared the problem for me...I'm a Civil Engineer, but just recently I got in the area of programing, because of that I am...

View Article


Re: Set active work plane

The method for the creation of the Plane has changed, in case anyone needs this i'll leave a code snippet: using(Transaction t = new Transaction(doc, "Creating sketchplane")) { t.Start(); Plane plane =...

View Article

Re: Moving from UnitType/ParameterType to ForgeTypeId problem

Yes you could reduce the risk of typos by reducing the string input required. Now seeing that all SpecTypes are in the Autodesk.Revit.DB.SpecTypeId  class, that part of the path could be omitted. So in...

View Article

Re: Multi-version Revit Template

Very interesting approach, thank you for sharing!

View Article


Image may be NSFW.
Clik here to view.

Re: Is it possible to detect an object on some specific distance from...

You don't need to delete the solid if it was never added to the document. You can create a half sphere (GeometryCreationUtilities.CreateRevolvedGeometry) and use it within a...

View Article

Re: Call forge api throught a revit plugin barrear

I am not aware of any such restriction. On the contrary, I implemented a Forge room editor app that communicates with a Revit add-in: https://github.com/jeremytammik/roomedit3d On second thoughts, that...

View Article

Re: Translating Mesh into Revit Solid

Sure, if the mesh represents a closed non-intersecting volume, why not?  Maybe the direct shape samples will help? https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.50    

View Article


Re: Change Grid Type value or its instance's Extents through API?

Have you tried snooping the grid element and its methods and properties with RevitLookup?  

View Article


IExportContext Performance Issues

We use IExportContext interface to export models from Revit. We don't have any performance issues on standard desktop machines, but as we have moved to work from home with the pandemic, we are seeing...

View Article

Re: Moving from UnitType/ParameterType to ForgeTypeId problem

I'm working on a way to make this ParameterType to ForgeTypeId transaction flexible. using ForgeParameterTypeType = #if (Revit2021 || Revit2020 || Revit2019 || Revit2018 || Revit2017)...

View Article

Trigger Updater When Host Changes

I would like to add a trigger to an updater when the host of a family instance changes (i.e. when an instance attaches to a new host via pick new host)....

View Article

Re: Moving from UnitType/ParameterType to ForgeTypeId problem

So here are my thoughts on that. You need to have a common variable by changing one thing to the other. You are stuck either way because the old version doesn't have SpecTypeIds and the new version...

View Article


Re: Trigger Updater When Host Changes

Is this a parameter you've check is being affected by the change in RevitLookup? Not all categories use the same parameters for these things. What type of FamilyInstance is it?

View Article

Re: Trigger Updater When Host Changes

Hi. I've previously tested by leaving a generic all trigger and giving me a System MessageBox showing the parameter "INSTANCE_FREE_HOST_PARM.ToString()" on Execute and yes it shows the host. This is a...

View Article


Image may be NSFW.
Clik here to view.

Re: Change Grid Type value or its instance's Extents through API?

Hi, Jeremy, thanks for your response. Yes I've tried to lookup the parameters and found the GetExtents.Maximum & Minimum Point. I've used something like: grid.GetExtents().MaximumPoint = new...

View Article

Image may be NSFW.
Clik here to view.

Connect Pipe

Hi,I want to connect automatically from pipe 2 to pipe 1 to use the Tee fitting in the Revit Api. Help me..The image below:Thanks & Regards 

View Article


Re: finding and modifying Repeating Detail type

 Thanks for the help! Sorry, it took me a while to get back to this. Maybe it was because of the output from the VB.NET -> C# translator that I used, but I lost you at "FirstOrDefault", and I didn't...

View Article

Re: finding and modifying Repeating Detail type

Weird that code shows colored in the preview, but not after posting...public static void ShowRepeatingDetailInfo(ElementType elementType) { Parameter parameter = null; string infotext = null; //...

View Article

Re: Translating Mesh into Revit Solid

Thanks, will look into the examples.

View Article
Browsing all 66692 articles
Browse latest View live


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