BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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

Wallhole Contour 2D

Arnaut_2604
Booster

Hello everyone,
I'm having some issues trying to get wallcontour lines into my Window Object. It's a build-in wardrobe to set into profiled walls.

I've noticed if I use the standard subtype Window and set AC_WallContours to 2 it works smoothly, even with complex profiled and multilayered walls. Even if there's a gap without a building material it realises it doesn't have to draw a line there.

But as soon as I introduce a wallhole2 command into the 2D script this stops working.
I've tried coping scripts from other windows for wallcontour which don't work for me.


I'm using the gs_reveal_Right/Left and gs_wido_sill commands for the Wallhole and a parameter for the depth.

Are there requests I can use to find out the wall layers and draw  the proper contours of the wallhole?

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Peter Baksa
Graphisoft
Graphisoft

Hi, WALL_SKINS_PARAMS has the information.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

View solution in original post

2 REPLIES 2
runxel
Legend

It's like that with other things in GDL, too.

As soon you don't let the automatics do their thing it will "stop working" in total, and you have to do everything by hand now.

Neither wallhole2 nor wallblock2 do display outlines (the difference to a default "poly2_XX" command). You have to script the wall outlines seperate with wallline2 and wallarc2.

By doing so you can differentiate between parts of the wall and parts of whatever sits in the wall. It's important for GO as well.

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
Solution
Peter Baksa
Graphisoft
Graphisoft

Hi, WALL_SKINS_PARAMS has the information.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest
Learn and get certified!