Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66664

Pick new Command

$
0
0

I am trying to write an API that requires to trigger the pick new command. 

 

RevitCommandId RCID = RevitCommandId.LookupCommandId("Dialog_Family_FamInstGridDbar:Control_Family_PickHost");
uiapp.PostCommand(RCID);

 

However, when I try the code below. I get an error saying:

 

Revit encountered a Autodesk. Revit Exceptions.ArgumentException: The commandld must be in Autodesk.Revit.UI.PostabIeCommand or an external
command.Parameter name: commandld at Autodesk. Revit U U Application.PostCommand(RevitCommandId commandld)

 

Is there any reason why I can't do this?


Viewing all articles
Browse latest Browse all 66664

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>