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.

Placing a window on a wall bug.

Anonymous
Not applicable
Hi,

I add two walls and an window using the DevToolkit (12.2156).
The window is placed outside the wall.

I cannot attach the PLN file to to this post (over 256 KB)
but I can send it for testing.

Notes:
1. if I change some of the input slightly the bug disappears.
2. it happens in more scenarios, I just isolate one of them for testing.

Here is a short description of what I do:
Add Wall 1:
begC = 25.730653762817, -1.115708112717;
endC = 23.361846923828, 1.253100752831;
height = 2.8;
thickness = 0.35;
thickness1 = 0.35;
top = -0.87;

Add Wall 2:
begC = 23.361846923828, 1.253100633621;
endC = 18.963642120361, 5.651303291321;
height = 2.8;
thickness = 0.47;
thickness1 = 0.47;
top = -0.87;

Add Window to Wall 2:
libName = W1 Casement 12
width = 0.999999940395;
height = 1.039999961853;
objLoc = 1.065259099007;
lower = 1.060000181198;
oSide = true;
refSide = true;
reflected = false;
7 REPLIES 7
Ralph Wessel
Mentor
graffiti wrote:
I add two walls and an window using the DevToolkit (12.2156).
The window is placed outside the wall.
Can you post a screen-grab to illustrate what you mean when you say the window is "outside the wall"?
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
Hi,

Since the window in placed so far from the wall, all you will see is just two small dots.

I have a small PLN file which show the problem, but I don't know how to post it (too big, in zip it is 488KB)
Laszlo Nagy
Community Admin
Community Admin
graffiti wrote:
Hi,

Since the window in placed so far from the wall, all you will see is just two small dots.

I have a small PLN file which show the problem, but I don't know how to post it (too big, in zip it is 488KB)
Go to the Attribute Manager and purge ALL unused attributes.
Also, delete all Stories, Section/Elevations, Worksheets etc., Views, Layouts, Master Layouts, Publisher Sets that are not needed.
That should bring the file size down some more.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Anonymous
Not applicable
Thanks Laszlo.

Here is the zipped purged model.
Laszlo Nagy
Community Admin
Community Admin
I am no developer so I cannot help in this, but I am sure someone will help you out.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Ralph Wessel
Mentor
graffiti wrote:
Here is the zipped purged model.
There doesn't seem to be a window in the model at all. At what coordinates does the window appear?
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
Hi,

the window is not shown in 2D view, only in 3D view.
goto 3D - Generic Perspective,
do View - Zoom - Fit in window
you will see a small dot in the middle of the view.
zoom in until you see the one dot becomes two dots.
the upper left dot is the wall, the one in the center is the wall.
attached a screen capture.

Window coords (roughly)
X - 126,302,972
Y - 126,327,525
Z - 190

Wall coords (roughly)
X - 23,363
Y - 1,253
Z - -870

Thanks.