• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Revit API

    Reply
    Member
    xyzjames
    Posts: 5
    Registered: ‎03-03-2011

    How can I make choice of the elements highlight and show choose object ?

    205 Views, 1 Replies
    03-03-2011 11:16 PM

    How can I make choice of the elements highlight and show choose object ?

     

    Such as choose zoom object from Autocad, 
    or it reveal the mistake when operating the Revit it can be select and show the position.
    Requests the fellow masters to be possible to reply that thanks ~
    中文:
    請問我要將選定元素或稱為物體好了.
    該怎樣才能讓他亮顯 與 集中顯示.
    (如:AutoCAD的ZOOM中的"物件顯示",或是當Revit操作錯誤時,可選取並"展示"位置)
    附圖中的按鈕功能.
    煩請各位高手可以回答一下
    謝謝

     

    Please use plain text.
    Active Contributor
    Posts: 48
    Registered: ‎04-29-2005

    Re: How can I make choice of the elements highlight and show choose object ?

    03-09-2011 10:50 AM in reply to: xyzjames

    The parameters passed to your ExtenalCommand allow you to do this.

     

     public Autodesk.Revit.UI.Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)

     

    Set the "ref string message" to the error message you want to display and set the "ElementSet elements" to the elements you want highlighted then exit the commend with the return value "Result.Failed".

    Please use plain text.