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

Re: How to Suppress Model Upgrade Window on Document.LoadFamily

Hi Kailash,This is due to older version of your family being loaded....You have to upgrade your family in current version before loading and then your issue automatically gets solved. Good Luck !!!...

View Article


Re: XYZ question

You're right, the XYZ class can represent a point or a vector, which are in fact quite similar.If you have a XYZ object and run a angle method, you're in fact handling a vector information... but if...

View Article


Image may be NSFW.
Clik here to view.

How to get imported Categories

Hi, In Revit Graphics/Visibility Overrides dialog, I can see the Imported Categories tab.In API Category has a property CategoryType which is Enum with the following...

View Article

Re: Project parameters not updating

Hi, Can you please provide the code snippet which you execute for the second time? And  would be better to provide a screen cast. I cannot believe this may happens :) Actually it looks like after you...

View Article

Image may be NSFW.
Clik here to view.

Re: Retrieving useable line style

Hi, After playing a bit with RevitLookup, I've found that you need to check the ParentCategory of the GraphicStyle. In you case it should be Lines. Try the following code. I didn't check it myself, but...

View Article


Re: Embed xml or json in a Revit model

Sean,and from my side I would sugegest you this utility I created. Use Extensible storage much easier with it especcialy if you are new in programming. Here is the direct link to GitHub repository....

View Article

Re: Door/Window Areas

Solved!. To be able to use IFCUtils from a python node in Dynamo I changed your code like this: # Import DocumentManager and TransactionManager clr.AddReference("RevitServices") import RevitServices...

View Article

Re: HostObjectUtils

just found out that my math was a little rusty;-)adopted my formula so now i receive correct angles.but still i am exploring the object geometry instead of HostObjectUtils  any suggestions?

View Article


Re: How to generate x and y-axes of rooms in the Revit API (in Millimetre)

I followed the option 2, as highlighted to implement the logic. Since I am getting the lowest coordinate, XYZ class is extended to customise the sorting logic. The code snippet below describes the...

View Article


Re: WPF focus after TaskDialog.Show

I believe this can be a reincarnation of Windows focus problems on WPF.In most cases is related to loosing track of ownership between dialogs. If I'm understanding you right, there is the main Revit...

View Article

Re: Set space to Not Placed

I made some testing and could notice that Space.Room is NULL in such a case, but this property is read-only on the API. All other room related parameters are also read-only...

View Article

get conection type and geometry between two elements from the model

Hi Everyone, Does anyone have tried and succeeded in identifiing the connection type between two elements in the model? For instance a point, line, surface conection and the corresponding geometry? For...

View Article

Re: Retrieving useable line style

i was trying to your code. but return 0 result. i changed code. Category => GraphicsStyleCategory  var styles =               new FilteredElementCollector(doc)...

View Article


Re: Retrieving useable line style

sovled. i refered to link (http://adndevblog.typepad.com/aec/2015/03/revitapi-how-to-get-line-style-names-only-for-creating-detail-lines-rather-than-all-the-line-styles.html) and...

View Article

Re: Retrieving useable line style

That's wierd, I just executed your code and it shows me exactly what you need.I tried in Revit 2016.Anyway, i glad you've found the solution.

View Article


Image may be NSFW.
Clik here to view.

my family instance cant cut the wall

My code is (I use python)----------------------------------------------------------------------------------ele = doc.GetElement(ElementId(271920))ele2 = doc.GetElement(ElementId(268220))t =...

View Article

Pick Two Face consecutively problem

When I pick the first face, an error is thrown saying "The user aborted the pick operation." If I put MessageBox in between picking the first and second face, there are  no errors. Why is this so?...

View Article


Re: RegisterDockablePane from Eventhandler

Dear Martin B, I found the relative discussions on the forum. https://forums.autodesk.com/t5/revit-api/how-to-load-a-rvt-file-automatically-when-start-the-revit/td-p/5494260 >>The sender object...

View Article

Selecting in Linked Documents

Hi everybody, As it is possible to select in linked documents (Tab-Tab-Tab...) via the GUI, and since Revit can react to such selection changes, I wonder why this is so non-obvious to do via the API. I...

View Article

Image may be NSFW.
Clik here to view.

Re: RegisterDockablePane from Eventhandler

Dear Ryuji, Thanks for the reply.Your post makes sense however with the changes you suggest it still does not work.uiapp.RegisterDockablePane(dpid, "name of dockable pane", MainDockableWindow as...

View Article
Browsing all 66666 articles
Browse latest View live


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