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

Auto-generation add-on for column CAD compatibility

Anonymous
Not applicable
I'm still an API beginner. I've been dealing with C ++ 10 years ago.
Area(or Zone) and text were created by inserting the precast columns and column name layers drawn in CAD drawings using merge to worksheet function.
I want to create an add-on that uses this and calculates the outline size of the area to create a column object and select the column Text nearest to each area as this object and input it as the id of the column object. Would it be easy to develop based on an example
24 REPLIES 24
Ralph Wessel
Mentor
park 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.
Ralph Wessel BArch
Anonymous
Not applicable
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?
Ralph Wessel
Mentor
Take a look at APIIo_GetPointID (called within ACAPI_Interface). This will allow you to prompt for a point and cancel when the user presses escape.
Ralph Wessel BArch
Anonymous
Not applicable
How can I make a command that calculates the height of the Precast column created by GDL by constraining it to -500 mm of work floor +1?
Anonymous
Not applicable
Assuming I have developed a Precast Concrete library called "Column1.gsm", I want to run an add-on command to read AutoCAD data, receive default data values, and automatically place object files on planes.
We think that it is possible to make a PC member similar to automatic generation of a general structure column.
1. Planar dimensions a and b are read as polylines.
2. Read the level of the current working and upper layers and then make a constant value at the upper layer level
    Enter the height of the PC column.
3. Enter the ID of the PC member.
Questions
1. "Column1.gsm" What is the command that gets the default value of the LibraryPart?
2. What is the command to find the EL of the current layer and the EL of the upper layer?
3. How do I access and modify the a, b, and addParms of the Column1 object?
4. Is it the same as the existing command (API_Elem_Create) to create the element?

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!