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

Re: How to know if Revit API is in Context.

@ricaun RevitTest.InContext.Tests is a private repository for now, could you open it? Benchmarks, remember to use Release mode:public class StartupCommand : ExternalCommand { private const int...

View Article


Re: Is the first Edgeloop still the outer loop?

Done! I have followed your advice: so anyone who is interested in a solution to this can vote for it here:...

View Article


Re: Leader line auto move to center tag

Thank you for your reply.I'm using Revit API IndependentTag.Create to create tag, then I use new XYZ to move this tag and to a location. So, I think it is true topic.Also, do you have any idea about...

View Article

Export Image for Drafting view.

Hi all, i want to export image for drafting view, but i export the image as below code get image with some part is cut-off in image.i try to ExportRange.VisibleRegionOfCurrentView, get the image is...

View Article

Re: C# How to select bar of Rebar

Hi @huynguyen96str     Welcome to Revit API Forum Community, I think you're new to Revit API Programming, So kindly check the below link which help you in understanding the basics of Revit API...

View Article


Re: Get Length units of a Revit file

Hi @george1985      You need to use the format option to get the particular Unit like Length. Kindly check the below code snippet for additional reference. Reference Code Snippet///The Sample will get...

View Article

Re: Get Length units of a Revit file

Hi @Mohamed_Arshad ,Brilliant!Thank you very much for the shared knowledge and solution.

View Article

Image may be NSFW.
Clik here to view.

Can't find usings when upgrading to .NET8

My first post. 🙂 Hope it's the right forum. I'm a bit of a C# noob... So please explain very simply 🙂 I used the upgrader to upgrade the company addin from .NET4.8 to .NET8 for Revit 25. I tested it...

View Article


Re: How to know if Revit API is in Context.

My bad, I change to public. RevitTest.InContext.Tests 

View Article


Re: Can't find usings when upgrading to .NET8

Hi @LPow    In .NET 8 Using keyword syntax is changed. Kindly check the below code snippet for additional reference.Reference Code Snippet   private BitmapImage BitmapToImageSource(Bitmap BMapm) {...

View Article

Re: Can't find usings when upgrading to .NET8

Thanks, but that won't help me find the reference to add for the using?

View Article

Re: Can't find usings when upgrading to .NET8

Can you please explain it in detail so that I will help you out 

View Article

Re: How to know if Revit API is in Context.

I add a test ToolkitTestssimilar like your StartupCommand but the results looks a little strange. IsRevitInApiMode looks slow. Inside contextIsRevitInApiMode: 55981.6 ns.IsAddinActive: 858.6...

View Article


Re: How to know if Revit API is in Context.

RevitLookUp uses a Toolkit version without IsRevitInApiMode, an exception was happening.  System.MissingMethodException: Method not found: 'Boolean...

View Article

Re: How to know if Revit API is in Context.

@ricaun wrote:RevitLookUp uses a Toolkit version without IsRevitInApiMode, an exception was happening.Yes, that's the first thing I thought, Lookup is now using a previous version of Toolkit, you can...

View Article


Re: How to know if Revit API is in Context.

Yes, I just updated manually Nice3point.Revit.Toolkit.dll version in the RevitLookup folder. The only think I don't like about the IsRevitInApiMode is that uses the APIUIAPI.dll, if was RevitAPI.dll or...

View Article

Image may be NSFW.
Clik here to view.

An easy way to insert a fitting in a pipe?

Hi!I have alreadyreadthis topic  by @jeremy_tammik, but i still don't understand how to correctly insert the fitting into the pipe?I wrote a smallmethod,butitsresults are notwhatIexpected:  public...

View Article


Image may be NSFW.
Clik here to view.

Re: Can't find usings when upgrading to .NET8

How do I add this when I've chosen .NET8?Without it I get a red squiggle under this using:using System.Windows.Media.Imaging;For the code you posted, I get a red squiggle under, 'mem'

View Article

Re: How to know if Revit API is in Context.

The same thing could be called in RevitAPIUI, but will require more coding, APIUIAPI calls the method directly, with less latency, so this option is more performant and easier to understand for code...

View Article

Re: An easy way to insert a fitting in a pipe?

I am not a professional MEP programmer, and my experience in that area is limited. My main expl;oration into that area was the research and implementation creating a rolling offset:...

View Article
Browsing all 67020 articles
Browse latest View live


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