Postable Command parameters

Postable Command parameters

nazarenko
Explorer Explorer
3,386 Views
2 Replies
Message 1 of 3

Postable Command parameters

nazarenko
Explorer
Explorer

Hi. Tell me please how can I use "ShowHiddenLinesByElement = 33671, // 0x00008387" command via Revit API? I know ID of the main element, and IDs of elements to be hidden. Can't find any documentation about passing parameters to Postable Command. Thanks.

Accepted solutions (1)
3,387 Views
2 Replies
Replies (2)
Message 2 of 3

zhong_wu
Autodesk Support
Autodesk Support
Accepted solution

Hi Роман,

Unfortunately, I am sorry to say that the PostCommand functionality does not accept passing parameters to the PostCommand() method. The method will just launches the built-in/add-in Revit command as it is, including all its user interaction.

 

It does not include any possibility to supply any additional input arguments or programmatically define the selection, it will prompt the user for the standard manual interaction, just like Revit normally would.

 

I got the information from my colleague Jeremy's answer to Kim at his blog http://thebuildingcoder.typepad.com/blog/2013/10/programmatic-custom-add-in-external-command-launch.....    


John Wu
Developer Technical Services
Autodesk Developer Network


Message 3 of 3

nazarenko
Explorer
Explorer

Thanks for help. May be later Smiley Sad

0 Likes