This is Jeremy Tammik's Typepad Profile.
Join Typepad and start following Jeremy Tammik's activity
Join Now!
Already a member? Sign In
Jeremy Tammik
Switzerland
Interests: rock climbing
Recent Activity
Dear Preetesh, I cannot really answer this from the Revit side of things, since it is more of a product and user interface question than an API issue. If the user interface supports this, which I doubt, then the API does as well. From a programming point of view, I can think of numerous way to achieve an effect similar to what you are asking for. For example, if Revit forces you to add separate parameters on each el;element, you can use the DMU framework to keep them all synchronised. Depending on what you want them for, you may be better off using other techniques instead, e.g. extensible storage, possibly in one single separate container for all members, an external database, etc. Sounds like some creative thinking outside the box might come in useful here... Cheers, Jeremy.
Toggle Commented yesterday on Family Parameter Value at The Building Coder
1 reply
Lots of stuff is going on and we have an exciting heavy duty weekend ahead of us: ADN API evangelist job opportunities Autodesk Exchange Apps hackathon this weekend October events and travel in Europe Comparing a plane and a face... Continue reading
Posted 2 days ago at The Building Coder
Dear Samin, The CentroidVolume class is defined in the code above: http://thebuildingcoder.typepad.com/blog/2012/12/solid-centroid-and-volume-calculation.html#4 Simply add that definition to your macro module. Cheers, Jeremy.
1 reply
Image
I have been quiet here for several days now, very busy working on Revit API cases, but nothing very generic to share here. Instead, let me mention a couple of quick answers by Scott Conover of the Revit API development... Continue reading
Posted 3 days ago at The Building Coder
Mille grazie.
1 reply
Dear Scott, Wow, thank you for that useful hint! Do you have a snippet of sample code to demonstrate? Preferably a minimal reproducible case? I could put together a proper blog post to highlight it and ensure it is easily found. Thank you! Cheers, Jeremy.
1 reply
Image
I had several cases recently discussing advanced Revit API exploration issues with experienced application developers new to the Revit API. Therefore, once again, the topic of available tools and their various uses came up. One important tool for me is... Continue reading
Posted Sep 11, 2014 at The Building Coder
Dear Paul, No, I am not very familiar with the macro environment, so I don't know offhand. Did you solve this? How, please? Thank you! Cheers, Jeremy.
1 reply
Dear Torbjørn, Wow, I am very glad it helped and sorry to hear that you were facing such a serious issue. Congratulations, and hope you can relax now :-) Cheers, Jeremy.
1 reply
Dear Nik, Best of luck to you with all your approaches, both in programming, business and mountains! Cheers, Jeremy.
1 reply
Dear Habib, Try searching in Revit Architecture instead of Revit Structure. Rooms are specific to architecture. Cheers, Jeremy.
Toggle Commented Sep 10, 2014 on Add-In Wizards for Revit 2014 at The Building Coder
1 reply
Dear Paul, Thank you for the appreciation. The pleasure is all mine. It is indeed. Yay, way to go! Cheers, Jeremy.
Toggle Commented Sep 10, 2014 on Add-In Wizards for Revit 2014 at The Building Coder
1 reply
Dear Michael, Please RTFM on the View.Scale property: The scale is the ratio of true model size to paper size. This property is meaningless for perspective views. When setting the scale if the scale corresponds to a predefined scale, the predefined item will be applied. Otherwise, a custom scale will be applied. 1'-0" : 1/8" = 12 : 0.125 = 96 Cheers, Jeremy.
Toggle Commented Sep 10, 2014 on Localised Unit Abbreviations at The Building Coder
1 reply
Dear Paul, First you talk about an exception. That is a runtime error. Then you say the compiler is complaining. That is a compile time error, and not an exception. Anyway, I would suggest that you search for some examples of using the .NET generic templated collection extension method FirstOrDefault in conjunction with a FilteredElementCollector. http://lmgtfy.com/?q=FirstOrDefault+FilteredElementCollector I use that myself on a regular basis, and I think that does exactly what you need. LINQ will not be any better than anything else. The only thing that makes a difference performance-wise is whether you use the Revit filtered element collector functionality, which is very fast, or something based on .NET that post processes the results of the former. That is significantly slower. Cheers, Jeremy.
Toggle Commented Sep 10, 2014 on Export Data to XML at The Building Coder
1 reply
Image
The Revit API is still full of surprises. Here is another one that leads us to look at a utility class that you may not have noticed: Question: I am encountering a strange problem with the name checking functionality when... Continue reading
Posted Sep 10, 2014 at The Building Coder
Image
The default Visual Studio settings will generate a processor architecture mismatch warning when compiling a Revit 2014 or 2015 add-in. Last year, I implemented a utility named DisableMismatchWarning.exe to recursively disable this warning in all projects in all subfolders of... Continue reading
Posted Sep 9, 2014 at The Building Coder
Dear Kon, Your approach of inserting elements with known coordinates sounds very promising to me. I am not familiar with the transformations applied to export the model to Navisworks specifically. However, in general, the Revit project location defines a transformation from the local Revit document model space to world coordinates. http://thebuildingcoder.typepad.com/blog/2010/01/project-location.html These are absolute and real earth coordinates. I would assume that Navisworks would respect these. Therefore, I would suggest that you do a couple of things: 1. Set up a Revit model with a trivial project location, if that is possible at all. That might enable you to export the Revit coordinates to Navisworks directly with no transformation. That should help understand the rest. 2. Determine the transformation to apply to go from Revit model to real world earth coordinates and vice versa. I believe the setout point add-in implements all you need for that: http://thebuildingcoder.typepad.com/blog/2012/08/structural-concrete-setout-point-add-in.html Cheers, Jeremy.
1 reply
Dear Valdemar, I cannot really say at all off-hand. All I could possibly do would be to research it using RevitLookup and the other database exploration tools, just like you. For more interactive API access to explore convoluted and nested properties like geometry and groups, you might also want to try out the Revit Ruby and Python shells: http://thebuildingcoder.typepad.com/blog/2013/11/intimate-revit-database-exploration-with-the-python-shell.html Cheers, Jeremy.
1 reply
Image
I listed a whole bunch of upcoming events last week. Now I have yet another one to announce, a webinar introducing the Autodesk View and Data API, immediately preceding the exchange apps hackathon. Autodesk Exchange Apps Hackathon – September 20-21,... Continue reading
Posted Sep 8, 2014 at The Building Coder
Image
Lots of add-in developers have struggled with various aspects of setting up cameras and views. I summarised a number of them in two new topic groups: 5.37. Creating and Setting Up a 3D View 5.38. Creating and Setting Up a... Continue reading
Posted Sep 5, 2014 at The Building Coder
Dear Dan, You can attach extensible storage data to any element in the Revit database? Is the document an element in the Revit database? I would say no. In the past, I would have said 'use the singleton Project Information element'. You can use it as a representative element for the document itself. I have since learnt better. There are good reasons not to fiddle with the Project Information element in a worksharing environment. It would affect everybody else's files and all elements, in a way. You want to limit your modifications (and therefore extensible storage) to an element that affects as few files and other elements as possible. A simple choice for that is the DataStorage element. It was designed specifically as a container for extensible storage data and nothing else, and affects no other files and elements. I hope this helps. Cheers, Jeremy.
1 reply
The Revit database contains a number of undocumented relationships, and it can be challenging and useful to discover them. Christian Tonn of kubit presents a powerful method to determine and maintain such a relationship using an officially supported approach instead:... Continue reading
Posted Sep 4, 2014 at The Building Coder
The ADN Revit MEP HVAC and electrical sample AdnRme version 2015.0.0.2 produces three compilation warnings, all three saying: 'Autodesk.Revit.DB.Family.Symbols' is obsolete: 'This property is obsolete in Revit 2015. Use Family.GetFamilySymbolIds() instead.' So let's do what the man says. The code... Continue reading
Posted Sep 3, 2014 at The Building Coder
Dear Mohan, I received a helpful answer from Arnošt Löbel for you and published it for all to enjoy right away: http://thebuildingcoder.typepad.com/blog/2014/09/custom-exporter-getcamerainfo.html Cheers, Jeremy.
Toggle Commented Sep 2, 2014 on DWF View Definition at The Building Coder
1 reply
Here is a simple yet longstanding question with a surprisingly simple answer that should prove extremely helpful for all those who really need it, presumably including Mohan Sawant, who raised this issue in a comment on the DWF view definition... Continue reading
Posted Sep 2, 2014 at The Building Coder