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

Re: ExtrusionRoof depth vector

But how do I determine the extrusion direction when the profile is defined in the middle of the resulting roof? Having only the profile and the both parameters provided above how to I know the absolute...

View Article


Re: Simple Cut Section

Hi Sanjay, Have a crack at it and ask a specific question if you run into trouble. Link: CreateSection The function uses a boundingbox, so getting the bounding box of the room is where I'd start. -Matt

View Article


Re: Crash - Attempted to read or write protected memory.

I have been trying to fix my crashing issue.Didn't mention that my winform has a WPF usercontrol on it. Looking around I reckon that my issue is probably to do with that as there many other documented...

View Article

how to cancel pick objects operation from modeless form in revit, URGENT

I am creating a tool for wall selector in revit UI and change their type with the help of the tool. This tool I want to interactive with UI so I use this form as a modeless form and picking objects in...

View Article

Re: how to cancel pick objects operation from modeless form in revit, URGENT

Well that's going to depend heavily on how you are interacting with the revit api. Are you doing ALL logic in the form class or do you have separate classes for accessing the api? Regardless, you need...

View Article


Determine whether a file is a central file.

Hello, is it possible to determine that a file is a central file before opening Revit? (TransmissionData?) Philippe.

View Article

Re: Determine whether a file is a central file.

Hi Philippe,Yes. Look into BasicFileInfo.Extract Edit: I guess you meant before opening file, not before opening Revit? Cheers, -Matt

View Article

Re: Change the placement option for PromptForFamilyInstancePlacement

Just wondering if you ever solve the problem with having user to select different ribbon in order to place element in model?

View Article


Re: Determine whether a file is a central file.

Thank you Matt.

View Article


Re: Set XYZ point for Model Group

Assigning a new GroupType to the group simply swaps the group, the original geometry is lost and the problem is not solved, in my opinion. But I may be missing something. Can anyone confirm that this...

View Article

Failure in code after a commit, but no changes happen

I have a routine that executes two discreet transactions (not part of a group).  The second transaction block has an error that I just encountered for the first time today, and I notice that the first...

View Article

RevitAPI not working on computers without Visual Studio

I've been making plug-ins with Visual Studio 2015 in C#. I can transfer the .dll and .addin to coworkers who have visual studio installed on their machines and everything works fine. When visual studio...

View Article

Hide elements based on parameter of element host.

GoalI want to hide all window family instances, in a 3d view, that are hosted to exterior walls. ProblemIt seems the API doesn't provide a way to hide elements that reside in linked models.  I have...

View Article


Re: Hide elements based on parameter of element host.

Hi,  Since you already have code that correctly determines if a window residing in a linked model is hosted to an exterior wall, you could put all these windows' elementIds in an elementIdSet, then get...

View Article

Re: RevitAPI not working on computers without Visual Studio

Dear mconway, To run application there is no need to install VS. Only Dot Net framework is fine . Please check framework version. After click there is any error message comes? Error message help a lot...

View Article


Re: 2 Questions: How to change Revit Application Title Caption and OOTB progress

Tight.  I'll give it a shot.  It looks like the exact thing I'm looking for.  

View Article

Re: how to cancel pick objects operation from modeless form in revit, URGENT

Hi i want to know this exact close and release stuff for Pick Objects. Like we are using modeless form in execute of external command as following: In Function...

View Article


Re: RevitAPI not working on computers without Visual Studio

Thanks Manish, The computers it was not working on both have .NET frameworks installed (newer versions than what I was compiling with). There is no error message with the click, this is the problem,...

View Article

Re: RevitAPI not working on computers without Visual Studio

Actually when you run Ribbon panel is created (To provide click). It means there is no issue for framework . You can use try catch to trace error. With VS are you able to use Add-ins while you develop?

View Article

Re: Room Section box

HiiYeah that is weird... When I tested your code it created a Call out and not a section ... ??!!  var m_doc = commandData.Application.ActiveUIDocument.Document; var m_uidoc =...

View Article
Browsing all 66666 articles
Browse latest View live


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