Existing revit command binding with custom made button

Existing revit command binding with custom made button

Anonymous
Not applicable
394 Views
2 Replies
Message 1 of 3

Existing revit command binding with custom made button

Anonymous
Not applicable

hello ,

I have a custom panel and a series of custom button I want to bind one of the them with "EXISTING Revit Command".

but I don't know how .

please advise.Thanks;

 

0 Likes
395 Views
2 Replies
Replies (2)
Message 2 of 3

franciscopossetto
Advocate
Advocate

Hey,

 

I am not sure if you can do this with all Revit commands, but you can try using the PostCommand method.

On this thread, there is a sample where you can see how to call the Purge Unused command.
https://forums.autodesk.com/t5/revit-api-forum/uiapp-postcommand-then-press-quot-enter-quot-quot-ok-...

 

Kind regards.

Github:
https://github.com/franpossetto
0 Likes
Message 3 of 3

Anonymous
Not applicable

hi ,thanks for your quick respond.I didnt  find the command I want in postcommand.I tried it before. and also i tried to copy some existing revit panel to get the result but unfortunatly I didn't get to what I meant.

forexample some sketchgallery item in modify button for drawing modle lines such as circle ,Line,Rectangle and so on.

but I couldnt because in the regular state of modify tab ,There are  not  that sketchgallery .

that sketch gallery only apper in Modify tab only after the draw line command are activated.

Thanks so much,

 

0 Likes