cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Archicad C++ API
About Archicad add-on development using the C++ API.

Call Archicad Wall command from own dialog

Lawoks
Contributor

Hi Experts,

I was searching for similar topic, but did not find the answer.

Is it possible to run a typical command, e.g. draw wall from a custom dialog?
Example:
- list field
- insert key
1. I select a wall from the list of existing walls
2. I press the button insert wall = I invoke the Archicad command.
An example from the SDK: Element_Test -> Create Curve Wall does not simulate a wall during insertion, and the Archicad command even has a drawing method selection panel.
Sorry if the question is naive, this is my first steps with Archicad SDK

all the best

Slawek

1 REPLY 1
Lawoks
Contributor

I found a suitable example in SDK.

It works properly for: window (return DWRC), door (return ROOD) , lamp (return HGIL)

For wall or column WriteReport return empty space (simply nothing)

Here is the link to the Example code from SDK:  APIEnv_​SetToolBoxModeID 

and code - I sign the line which return "nothing"

Zrzut ekranu 2023-02-24 011920.jpg

Do you have any advice pls?

regards

Slawek