Author: Autodesk Alumni

  • Vault VB Extension not loading due to Namespace setting in properties

    By Wayne Brill This post has a list of things to check when a Vault Extension is not loading. Here is another thing to check if your extension is not loading. In the properties for the project see the setting for Root namespace (screenshot below) and compare this to the type setting in the vcet.config…

  • Pi Day, Meeting, Ski Tour, Revit Server Bar Separator

    You may be surprised to hear that today is Pi Day :-) – as well as the birthday of my S.O.S. or significant other’s son. I had an exciting week with the ADN team meeting in London followed by a ski tour during the weekend. To round this off, I’ll also tuck in one little…

  • View and Data API の利用例 - IoT モニター

    ご注意:View and Data API は2016年6月に Viewer と  Model Derivative API に分離、及び、名称変更されました。 サンフランシスコのフェリーターミナル近くには、埠頭が幾つか存在しています。オートデスクは、第9埠頭にあたる場所にワークショップを持っています。  通称、Pier 9 と呼ばれているこのワークショップは、3D プリンタや CNC 工作機械、レーザーカッターやウォータージェット カッターなど、オートデスク製品でデザインされたモノを製作する場として利用されています。いわば、The Future Of Making Things を実証するための工房です。 折りしも、Industry 4.0/インダストリー 4.0 に注目が集まる中、Pier 9 に設置された工作機械に IoT (Internet Of Things)デバイスを設置して、監視するアイデアが実現されています。使用されているセンサーは Texas Instruments  社の CC2650STK というセンサータグで、光、デジタル・マイク、磁気センサ、湿度、圧力、加速度計、ジャイロスコープ、磁力計、物体の温度、周囲温度の検出が可能な 10 個のセンサーが搭載されていて、たったの$ 29(米ドル)です。 Revit デモでリングされた Pier 9 建屋の 3D モデルは、当然、社内で入手できるので、View and Data API でストリーミング配信してWeb ブラウザで表示させることが可能です。また、CC2650STK というセンサーから入手したリアルタイムデータを、Google Visualization API で定義したゲージを使って表示する実装が施されています。    さて、実際のサイトは Pier…

  • RevitAPI: Document.ExportImage exports some .jpg files when setting ImageFileType set to PNG

    中文链接 By Aaron Lu Image export feature is available in RevitAPI, that is: Document.ExportImage method, a real example is: FilteredElementCollector FEC_Views = new FilteredElementCollector(OpenDoc).OfClass(typeof(View)); FEC_Views.OfCategory(BuiltInCategory.OST_Views); StringBuilder sb = new StringBuilder(); foreach (View View in FEC_Views) { if (View.IsTemplate) continue; IList<ElementId> ImageExportList = new List<ElementId>(); ImageExportList.Clear(); ImageExportList.Add(View.Id); var NewViewName = View.Name.ToString().Replace(“.”, “-“); var BilledeExportOptions_3D_PNG = new…

  • Profile Geometry Points on Alignment Label Styles

    By Augusto Goncalves (@augustomaia) The Civil 3D Styles collection is big, really big. Under CivilDocument.Styles we can read most of the information, but it can be tricky to dig it. This post show how to read Profile Geometry Points, as shown at the image below, for Alignment Label Set style. The basic idea for this…

  • Fusion Add-In with .NET (C++ & CLR)

    I've written about using MFC from a C++ Fusion add-in. You could also use .NET from your add-in, and it's even simpler to set up. 1) Create a C++ add-in inside the "Scripts and Add-Ins" Fusion dialog: I'm leaving "Run on Startup" option above unchecked, because it would not be a good idea to pop up a modal dialog while Fusion is…

  • RevitAPI: How to use DMU (Dynamic Model Update) api?

    中文链接 By Aaron Lu We know Revit’s parametric modeling feature allows us to change an element and all related elements will be changed automatically to keep the model consistent, e.g. move a wall, the window or door on the wall will move accordingly. But sometimes we want to add more association relations between elements, so that…

  • RevitAPI: how to change Radius of ConnectorElement? – how to get associated family parameter from element parameter?

    中文链接 By Aaron Lu Connector Element of some fitting family has a parameter named “Radius”, to change its value, we may write code like this: connectorElement.Radius = 0.041; But Radius property is read-only, so it can not be compiled or even it can be, exception will be thrown when running it. Another way is using…

  • Need to use a Proxy for commands when editing a part in an assembly

    By Wayne Brill In the VBA example below a work plane in a part document is accessed and then the AppLookAtCmd is run. (changes the view to look directly at that WorkPlane) To get AppLookAtCmd to use that WorkPlane it needs to be selected using the SelectSet of the assembly. (not the part) To get…

  • RevitAPI: how to get Graphic Display Options

    中文链接 By Aaron Lu Several customers is asking how to get Graphic Display Options from Revit API, after my investigation, I found API did not expose all available information in UI, what are available is shown in below picture, makred with 1,2,3: Related methods are: ViewDisplayModel displayModel = view.GetViewDisplayModel(); //1 ViewDisplaySketchyLines sketchyLines = view.GetSketchyLines(); //2…