We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.
SOLVED!

Make Section View only show cutted geometry on the cutting plane

Martin Walter
Enthusiast
I'm using a 3D geometry made up from EXTRUDE commands for the section view.
But the section always shows a lot of lines that are not directy cut by the cutting plane. These lines are from geometry behind the cutting plane.
I already played with the masks of the EXTRUDE command. But I can not see any difference using different masks.

Is there a way to only show the cutted geometry that is on the cutting plane?
(left is the actual section view - right the desired view)
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Lingwisyer
Guru
You could include in your 3D script some situational Cutplanes to create a clean sliver, though I am not sure if you would be able to isolate when the actual object is cut by the section line rather than being just beyond?



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660

View solution in original post

11 REPLIES 11
Anonymous
Not applicable
Are you using CUTPLANE or CUTPOLYA?
If you want to see just the cut profile, then CUTPLANE won't help you. Instead you will need CUTPOLYA.
CUTPOLYA n, status, d,
        x1, y1, mask1, ..., xn, yn, maskn [,
        x, y, z]
[statement1
statement2
...
statementn]
CUTEND
status: controls the treatment of the generated cut polygons.
1: use the attributes of the body for the generated polygons and edges,
2: generated cut polygons will be treated as normal polygons.
d: the distance between the local origin and the end of the half-infinite tube.
0: means a cut with an infinite tube.
maski: similar to the PRISM_ command.
maski = j1 + 2*j2 + 4*j3 + 64*j7, where each j can be 0 or 1.
Instead of d=0, use a very small distance, like 1 mm.
You can find more information here.
Hope this helps.
Anonymous
Not applicable
Martin Walter wrote:
Is there a way to only show the cutted geometry that is on the cutting plane?
Ok. I realize CUTPOLYA wont do the job.
Perhaps if you tell us what do you want to achieve we can better help you.
Solution
Lingwisyer
Guru
You could include in your 3D script some situational Cutplanes to create a clean sliver, though I am not sure if you would be able to isolate when the actual object is cut by the section line rather than being just beyond?



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
Martin Walter
Enthusiast
Sorry, if I did not explain clearly what I want to do.
I'm creating a library part for a window. The 3D is made up of 2D profiles for frame and sash, which are extruded and cut with the commands EXTRUDE and CUTPLANE.


Simplified the 3D script looks like this:

XFORM 0, 0, -1, 1230,
0, 1, 0, 0,
1, 0, 0, 0
CUTPLANE 225
ADDZ 1230
CUTPLANE -45
DEL 1
EXTRUDE 5, 0, 0, 1230, 1+2+4+16+32,
0,0,0,
82,0,0,
82,73,0,
0,73,0,
0,0,0
DEL 1
CUTEND
CUTEND

The 3D looks like this:


Then I create a Building Section (a section view)


But the section view does not look like I want it to be. I only want to see the cutted profile geometry, not all the lines behind the cutting plane of the view.

(left is the actual section view - right the desired view)
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD
Barry Kelly
Moderator
You need to control the depth of the section itself by limiting it so it does not show the vertical part of the frame.
But that may affect other parts of the section - for example you won't see the vertical wall lines either.

Otherwise you would have to use GLOB_VIEW_TYPE to determine when the window is being viewed in a section.
And then script it so it either doesn't show the side frames at all when in section or model much simpler versions of the side frames with less detail.
This may however cause problems if ever you see this window in another section view as I don't think you can determine if the window is actually cut by the section - just that it is in a section window.


Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Martin Walter
Enthusiast
The vertical wall lines are not so important to show.
So how can I control the depth of the section?
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD
Barry Kelly
Moderator
Martin wrote:
The vertical wall lines are not so important to show.
So how can I control the depth of the section?

The section you place on plan has an option to limit the depth or it can be just a cut with no depth at all.
I will limit the depth for everything in the section - not just the window frame.


Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Barry Kelly
Moderator
Barry wrote:
Martin wrote:
The vertical wall lines are not so important to show.
So how can I control the depth of the section?
The section you place on plan has an option to limit the depth or it can be just a cut with no depth at all.
It will limit the depth for everything in the section - not just the window frame.


Barry.

By limiting the section depth I mean the section you place on plan has an option to limit the depth or it can be just a cut with no depth at all.
I will limit the depth for everything in the section - not just the window frame.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Martin Walter
Enthusiast
Barry wrote:
Martin wrote:
The vertical wall lines are not so important to show.
So how can I control the depth of the section?

The section you place on plan has an option to limit the depth or it can be just a cut with no depth at all.
It will limit the depth for everything in the section - not just the window frame.


Barry.

Thanks for this idea! This would help too very well. But I don't want to tell all customers that they have to change their section view options.
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD