park wrote:Elements store the index of the layer they are on (not the name), so you need to look up the layer first to retrieve its index. Don't hardcode the index because it can change. Then you will need to iterate through the elements to search for the required layer index. If you're searching for a specific element type, e.g. text, you can use
I have the following questions.
1) How to find a list of elements with a specific layer name (ex: "exp1")?
How do I find a text element with a layer name "t1"?
park wrote:I wrote my own methods for this before the ARCHICAD API existed, so I don't know what it has to offer in this respect.
2) What is the function formula that calculates the points that meet on the extension line in the algorithm that finds the intersection point of two straight lines in 2D plane?
park wrote:You will have to iterate through all the elements to find those with a specific ID – I'm not aware of a shortcut. If you change any attribute, an element can be written back to the database with
3) How can I retrieve a list of elements with a specific ID and change the attribute information?