WALL_RESOL
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-11-19
09:33 PM
- last edited on
2023-05-24
11:52 AM
by
Rubia Torres
2010-11-19
09:33 PM
I wrote a very simple library part that displays the wall resolution
of curved walls. It is actually a window. The 2D script is as follows.
pen p2d
line2 0,0,0,0
!!!!print wall_resol
define style "style-1" fnt,fntsz,5,0
set style "style-1"
add2 0,2*C_
if flp then mul2 1,-1
text2 0,0,str(wall_resol,1,0)
What is strange is that if I insert this "window" into a straight wall
the lib part reports the resolution as 36. The same thing if inserted
into a three sided polywall. Does anyone know why a straight wall
has a resolution of 36 ?
I would like to point out that a curved wall, regardless of thickness,
having a radius of less than 13 1/2" my lib part reports its resolution as 36.
A curved wall with a radius greater than 13 1/2" my lib part reports its
resolution as greater than 36. For example, a curved wall with a radius of
50'-0" my lib part reports its resolution as 245.
Thank you,
Peter Devlin
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-11-22 03:26 AM
2010-11-22
03:26 AM
Hi Peter,
I can't say for sure but I'd be guessing (as I'm sure you have) that 36 is a built-in minimum resolution.
As the radius gets larger you will need more segments to make it appear curved hence the increase in the resolution.
It would seem logical for a straight wall to have a resolution of 1 but that might not be logical to the program so it defaults back to 36.
Barry.
I can't say for sure but I'd be guessing (as I'm sure you have) that 36 is a built-in minimum resolution.
As the radius gets larger you will need more segments to make it appear curved hence the increase in the resolution.
It would seem logical for a straight wall to have a resolution of 1 but that might not be logical to the program so it defaults back to 36.
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
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
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-11-22 04:51 PM
2010-11-22
04:51 PM
Hello Barry,
Thanks for posting back.
Lazlo writes in his piece on global GDL parameters:
WALL_RESOL
Old name: J~ ;Type: numerical (positive integer value) ;Possible range: 3 and up ; Returns the resolution of the wall body in 3D in which the
Window/Door is placed. Since at least 3 sides are needed for any 3D body the minimum value is 3. ; Note: the variable is effective in 3D only. Any
number created while in the Floor Plan or Section/Elevation Windows is not applicable.
I don't know what this last sentence means. I don't know how to
make a three sided wall that my lib part reports as having a resolution of
less than 36. I've tried a three sided polywall and a three sided trapezoid wall.
This is all a bit mysterious.
Thanks,
Peter Devlin
Thanks for posting back.
Lazlo writes in his piece on global GDL parameters:
WALL_RESOL
Old name: J~ ;Type: numerical (positive integer value) ;Possible range: 3 and up ; Returns the resolution of the wall body in 3D in which the
Window/Door is placed. Since at least 3 sides are needed for any 3D body the minimum value is 3. ; Note: the variable is effective in 3D only. Any
number created while in the Floor Plan or Section/Elevation Windows is not applicable.
I don't know what this last sentence means. I don't know how to
make a three sided wall that my lib part reports as having a resolution of
less than 36. I've tried a three sided polywall and a three sided trapezoid wall.
This is all a bit mysterious.
Thanks,
Peter Devlin