I have been quiet for a whole week now, busy setting up my Mac, learning new functionality, techniques, keyboard shortcuts, editors, you name it.
Under Windows, I was already using quite a number of batch files and command line Unix-style tools, so I am very happy to have a real Unix shell to play with now.
On the other hand, each batch file needs some fixes applied to convert it to a shell script, and every keystroke needs some additional neutrons firing to switch from the Windows habits to new Mac conventions.
Several of my colleagues are also using Macs nowadays, although they seem to be mostly remaining inside a Windows environment and using Parallels to run it on the Mac. I am going native :-)
I installed the Xcode environment to have access to standard development tools like make and gcc, the Komodo text editor, TrueCrypt to manage all my secret stuff, Firefox, Skype, Office, Parallels, and much more.
AU Material Submitted
I managed to keep the deadline yesterday for submission of the Autodesk University material.
For your delectation and the pleasure of online search engines, here is a reproduction of it in its current state.
I may and probably will update it a bit more before the final event, but this should give you a rough idea of everything:
- CP4109 Revit API Round Table: Meet the Champions
- CP4108 Revit MEP Programming: All Systems Go
- CP4107 Let's face it: New Autodesk Revit 2013 UI API Functionality
All done on the Mac :-)
Determine Whether Project Document is Workshared or Not
Question: I'm creating a utility to copy central (workshared) RVT files to a specific folders on the user laptop to make a local copy, then open it in Revit.
How can I determine whether the RVT file is a central file (workshared) or stand-alone before copying it?
If stand-alone, it would not require copying; it could just be opened in Revit.
It could be opened in memory first, but that would increase the time to eventually open and activate it for work.
I looked into the TransmissionData, but I can find no solution. Is there one?
Answer from Joe: I think BasicFileInfo.IsWorkshared property is what you are looking for.
The BasicFileInfo class can retrieve some metadata file information without fully opening the RVT file in Revit.
This was briefly mentioned between the lines when recently discussing how to detach and discard worksets. I hope it helps to highlight this fact for itself as well.
Create Radial Dimension
Saikat published another example on the AEC DevBlog, showing how to access the sketch of a circular extrusion in a family document and make a call to NewRadialDimension to create a radial dimension.
There, my first blog post completed and published on a Mac.
Now to get back to real work again, gradually, at least for a short period before sinking into the gory mess of conference time.