cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Selecting a tool for object insertion

gehairing
Participant
Hello

I have an Addon that let's me download objects (.gsm, .dor etc...).
After downloading the object the user want's to insert the downloaded object in the current model.

To do this correctly, the user must select the right tool depending on the object's type. (The Windows tool to insert windows into a wall, the Stairs tool to place a stair...).

Is there an API that allows me to do that for the user so that after the download of the object Archicad is in the right mode for the insertion of that object.

Thanks for the help 😉
2 REPLIES 2

Ralph Wessel
Mentor
gehairing wrote:
I have an Addon that let's me download objects (.gsm, .dor etc...).
After downloading the object the user want's to insert the downloaded object in the current model.

To do this correctly, the user must select the right tool depending on the object's type. (The Windows tool to insert windows into a wall, the Stairs tool to place a stair...).

Is there an API that allows me to do that for the user so that after the download of the object Archicad is in the right mode for the insertion of that object
Take a look at the following API functions:
1) APIEnv_SetToolBoxModeID to set the active tool, and …
2) ACAPI_Element_ChangeDefaults to set the object to be placed
Ralph Wessel BArch

gehairing
Participant
Thanks a lot Ralph

The "APIEnv_SetToolBoxModeID" is what i didn't find.

For placing the object in the model, i have already the code.
It uses "ACAPI_Element_ChangeDefaults" and works perfectly.

Have a nice day.

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!