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 Neelima, Yes, that is expected. Please read the blog posts above on how to address this. That is what it is all about. There are lots of other resources as well, e.g. http://www.ninjatrader.com/support/forum/showthread.php?t=15671 Simply google, e.g. http://lmgtfy.com/?q=visual+studio+express+debug Cheers, Jeremy.
1 reply
Dear Cui, I am glad that you are ware that this is easy in the user interface. As you know, you can split a wall into parts, and use the levels as part delimiters within each wall. You can do exactly the same programmatically as well. Look at these discussions demonstrating various aspects of dividing walls into parts programmatically: Identifying Wall Compound Layers and Parts Parts, Assemblies, PartUtils and DivideParts DivideParts in F# and Line Styles Export Wall Parts Individually to DXF Cheers, Jeremy.
1 reply
Image
I am back again in the land of the livin... Continue reading
Posted 21 hours ago at The Building Coder
Dear Madhu, Thank you very much for the update and confirmation that the copy and paste API can be used successfully to create a view template. That is great news! Congratulations! Cheers, Jeremy.
1 reply
:-) Thank you, you make me smile. Cheers, Jeremy.
Toggle Commented 2 days ago on The Revit MEP 2012 API at The Building Coder
1 reply
Dear Akash, Yes, this is certainly possible. This data is stored in generic Revit element parameters that can be accessed and modified programmatically. You can research which parameters you need to access using the RevitLookup database exploration tool or other more in-depth API exploration methods: http://thebuildingcoder.typepad.com/blog/2013/11/intimate-revit-database-exploration-with-the-python-shell.html Some examples of accessing and modifying Revit MEP relevant parameters are provided by my AdnRme sample add-in: http://lmgtfy.com/?q=adnrme Cheers, Jeremy.
Toggle Commented 2 days ago on The Revit MEP 2012 API at The Building Coder
1 reply
Dear Madhu, I am sorry to say that this may currently not be possible. All I know is that we have an open wish list item CF-1509 [API wish: create view template -- 09693106] for programmatic creation of a view template. Have you tried using the copy and paste API? How does that behave in this context? Cheers, Jeremy.
1 reply
Dear Siddhartha, No need for a help page to answer that question. The classes, methods and properties provided are the sum of all the Revit API functionality plus everything provided by the standard Ruby and Python environments. Cheers, Jeremy.
1 reply
Here is an interesting case with a simple solution that was rather hard to discover. In summary, you need to ensure that all family symbols are activated before making use of them. Question: I'm having a strange problem when replacing... Continue reading
Posted 7 days ago at The Building Coder
Dear Jared, Thank you for your query and appreciation. I am very glad you like it :-) You need to look at the built-in parameter storage type and use the appropriate data type to set a new value. In this case, the storage type may or may not be an element id. It is almost certainly not a string. Use RevitLookup to see what the original data type is. Something like this: ElementId viewPhaseId = room.get_Parameter(BuiltInParameter.ROOM_PHASE).AsElementId(); Parameter p = view.get_Parameter(BuiltInParameter.VIEW_PHASE); p.SetValueString(viewPhaseId); However, I am not sure at all, and this is completely untested. Are you sure this property is editable? Can you set it up the way you want in the user interface? Here is another little discussion on accessing a room phase: http://thebuildingcoder.typepad.com/blog/2012/08/adsk-file-import-and-phase-of-room.html#2 Cheers, Jeremy.
Toggle Commented Aug 11, 2014 on Create Room on Level in Phase at The Building Coder
1 reply
Dear Kenny, Interesting question. It would depend on whether the BoundarySegment.Element property returns the walls in linked documents. Please try it out and let us know. Thank you! Cheers, Jeremy.
Toggle Commented Aug 11, 2014 on Room and Wall Adjacency at The Building Coder
1 reply
Dear Neelima, I see a number of interesting issues with your code. The first is that you appear to be picking an arbitrary building element using PickObject and assigning its element id to the curlevel variable, which is assumed to be the element id of a level. Since that will never be the case, the call to create the wall will presumably fail. I would suggest working through the getting started material first: http://thebuildingcoder.typepad.com/blog/about-the-author.html#2 While working through that, you will get the hang of using the Visual Studio debugger and the RevitLookup database exploration tool. With these in hand, you will be well equipped to make further progress. Cheers, Jeremy.
Toggle Commented Aug 11, 2014 on Material Quantity Extraction at The Building Coder
1 reply
Dear Mina, Thank you for your query and appreciation. I am very glad you like it :-) There are a large number of different methods and levels at which you can set graphics attributes in Revit: http://thebuildingcoder.typepad.com/blog/2013/08/attributes-relationships-and-other-stuff.html#6 I would suggest exploring your model using RevitLookup or other more in-depth methods to determine where the required attributes are defined: http://thebuildingcoder.typepad.com/blog/2013/11/intimate-revit-database-exploration-with-the-python-shell.html Cheers, Jeremy.
Toggle Commented Aug 11, 2014 on Model and Detail Curve Colour at The Building Coder
1 reply
I am still enjoying my summer break, and back to work temporarily for just a couple of days in between. For today, I present the following summary of a recent discussion on accessing a Revit server central model path including... Continue reading
Posted Aug 11, 2014 at The Building Coder
Image
I am having a nice break. Here is a little news item on an exciting and profitable upcoming event to let you know I am still alive. Let's start with a brief historical flashback: Autodesk Exchange Apps Portathon September 13-14,... Continue reading
Posted Aug 7, 2014 at The Building Coder
Dear Victor, I believe there was an issue with the parameters passed in to the boundary condition constructor. Their values were lost, so you had to set their values (again) using parameters after calling the constructor. Now the values passed in to the constructor are retained, as they should be. I think. Cheers, Jeremy.
Toggle Commented Aug 7, 2014 on Revit 2015 Update Release 3 at The Building Coder
1 reply
I presented the Autodesk View and Data API at the Basel.js meetup yesterday evening. Now I would like to share the material that I showed with you as well: Appetiser demos Introduction Slide deck and notes Curl shell scripts for... Continue reading
Posted Jul 31, 2014 at The Building Coder
Dear Drew, Same answer as always (well, often): can you place the DWG manually, through the user interface? If so, it is probably possible programmatically as well. You can explore the manually generated model using RevitLookup and other tools to determine how and where the DWG was placed, and then reproduce that by coding. If not, then it is probably not possible through the API either. Cheers, Jeremy.
Toggle Commented Jul 31, 2014 on The Revit Family API at The Building Coder
1 reply
Dear Matt, All Revit add-ins are installed the same way: place the add-in manifest in a specific folder that Revit looks at and loads. The add-in manifest with the filename extension *.addin specifies the location of the .NET assembly DLL. For a simple add-in, I specify no path, just the DLL name, and place it in the same folder. If you simply compile the add-in in Visual Studio, it will copy the add-in manifest and DLL to the right location for you automatically, due to special post-build events that are set up to do that. For more info, look at the Revit API getting started material: http://thebuildingcoder.typepad.com/blog/about-the-author.html#2 Cheers, Jeremy.
Toggle Commented Jul 30, 2014 on RvtVa3c Assembly Resolver at The Building Coder
1 reply
Image
A colleague of mine asked for some help implementing a Revit add-in to launch an external stand-alone Windows executable from the Revit user interface. Since this might be useful to others as well, here is a summary of our discussion... Continue reading
Posted Jul 30, 2014 at The Building Coder
Dear John, I have no idea. I would have to try it out. Have you tried simply deleting the pipe insulation element? Cheers, Jeremy.
1 reply
Dear Jon, Congratulations on that very useful discovery! Thank you for letting us know! Cheers, Jeremy.
1 reply
Image
I am busy right now answering Revit API cases as usual, and preparing my Basel.js meetup View and Data API presentation for tomorrow evening. One of the cases caused me to add yet another iteration to last Friday's note on... Continue reading
Posted Jul 29, 2014 at The Building Coder
Dear Michael, I am afraid that the Revit API currently does not support this. All I can suggest right now is to create your own user interface for that using a .NET form, and transfer the user settings from it to the Revit element read-only parameter or extensible storage data. Cheers, Jeremy.
1 reply
Dear Olga, Congratulations on solving it, and thank you for letting us know. Cheers, Jeremy.
Toggle Commented Jul 28, 2014 on Linked Element Geometry Access at The Building Coder
1 reply