The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Discussions about using GRAPHISOFT's tools (API DevKit) for independent software developers

Moderators: ejrolon, Barry Kelly, Karl Ottenstein, LaszloNagy, gkmethy, Mihály Palenik, Tibor Lorántfy, MOREH Tamas, Akos Somorjai, Ed Brown

park ki hyun wrote:When I checked the error, I noticed a NotEditeable error and turned on the layer. But how do you edit attribute information with editability?

First use ACAPI_Attribute_Get to load the layer attribute data. Set it to visible/unlocked as required and write the change back with ACAPI_Attribute_ModifyExt.
I want to develop a command to create a beam first and then click inside the trapezoidal outline to create a slab.
The big flow is conceived as follows.

0. Summarize the default data of the slab.
1. Click in the middle of the beam in the 2D window.
2. Get the click point and find the entire beam list and search for the nearest four beams close to the click point.
3. Find the point where the inner line of the nearest beam intersects the inner line of the syllable and form the four vertices of the outline of the slaughter.
4. Create a slab.

The question is, is it possible to create a slab by repeatedly clicking on a 2D window? How can I use the While statement to create a series of click point data and then press ESC (escape) to stop it from working anymore?