cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

line geometry

Anonymous
Not applicable
Here is the code I am working with
mul2 A/0.862105, B/0.862105
add2 62'-9.5004", -42'-7.8959"
pen 11
line_property 0
line2 -61'-4.5298", 45'-5.8370", -59'-11.5593", 44'-0.8664"
line2 -59'-11.5593", 44'-0.8664", -61'-4.5298", 42'-7.8959"
line2 -61'-4.5298", 42'-7.8959", -62'-9.5004", 44'-0.8664"
line2 -62'-9.5004", 44'-0.8664", -61'-4.5298", 45'-5.8370"

Are these x,y coordinates? I need to relocate the square in relationship to the other objects and don't know if this is how I make that happen.
1 REPLY 1
Anonymous
Not applicable
Working with this automatically generated code is going to be a pain in the neck. It is MUCH easier to just script a rectangle with something like:

Rect2 x1, y1, x2, y2

The arguments represent any variable or constant values you want to use to define the coordinates two corners of the rectangle. A common form would be:

Rect2 0, 0, A, B

Which starts at the local origin and uses the default size parameters (adjustable in the Info palette).

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!