Quantcast
Channel: ArchiCAD-Talk - Libraries / Library Parts / GDL
Viewing all 3838 articles
Browse latest View live

Model View Options help needed.

$
0
0
Author:JGoode
Posted: Thu Aug 31, 2017 9:28 am (GMT+1)


Barry Kelly wrote:
Sorry I wasn't able to get back to you last night.
These fill settings are global for all elements and control the display of the fills.
I don't think it is possible to control or ignore these settings in GDL.

Anything in the 'Options for GDL Objects' can be controlled which is where you will find the options for doors and windows.

So your best option is to make sure these fill settings are set correctly for each of the MVO combinations you use.

Barry.
Thanks for the help. So as far as you're aware, there would be no way to work around having all options overridden in the MVO's.

Model View Options help needed.

$
0
0
Author:Barry Kelly
Posted: Thu Aug 31, 2017 9:45 am (GMT+1)


Some of the MVO settings can be detected in GDL but as far as I know not for the fill display.

As mentioned anything in the 'Options for GDL Objects' section is fair game and the display of door and window markers.
You can also detect if the RCP (reverse ceiling plan) is set or not.

You can look through the REQUEST section of the GDL manual but I don't think you will find anything (although it has been a while since I have gone through it in detail).

Barry.
_________________
Versions 6.5 to 21
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 7 64bit

Model View Options help needed.

$
0
0
Author:JGoode
Posted: Thu Aug 31, 2017 10:02 am (GMT+1)


Barry Kelly wrote:
Some of the MVO settings can be detected in GDL but as far as I know not for the fill display.

As mentioned anything in the 'Options for GDL Objects' section is fair game and the display of door and window markers.
You can also detect if the RCP (reverse ceiling plan) is set or not.

You can look through the REQUEST section of the GDL manual but I don't think you will find anything (although it has been a while since I have gone through it in detail).

Barry.
Thanks Barry. Nothing found in the GDL manual Sad Sadly the 'Options for GDL Objects' is of no use to me with this issue. Seems strange not to be able to detect the MVO settings. Thanks again.

Image Fill Help Required Please!

$
0
0
Author:JGoode
Posted: Thu Aug 31, 2017 1:10 pm (GMT+1)


Hello,

I am having some issues with my image fill poly2_b{5}'s. In the image, the picture on the left shows an example of how every preview of the object looks. The image on the right shows how the object is intended to look including the image fill.

Here is the definition of the image fill:
Code:
define image_fill 'red'"Red_Image_Fill",
        255, 255, 255, 255, 255, 255, 255, 255,
        0.001, 0.001, 0, 0


Here is the code with it being used:
Code:
      FILL "red"
      poly2_b{5}      12,      3,      0,      3,     20,    20,
                     0,            0,            1,            0,            0,            1,            0,
            0.003011396909279, -0.012,      0,
            0.008011396909279, -0.012,    900,
                     0,          180,   4000,
            0.008011396909279, -0.012,    900,
                     0,          180,   4000,
            0.003011396909279, -0.012,     -1,
            0.01201139690928, -0.012,      0,
            0.008011396909279, -0.012,    900,
                     0,         -180,   4000,
            0.008011396909279, -0.012,    900,
                     0,         -180,   4000,
            0.01201139690928, -0.012,     0
   
      FILL "red"
      poly2_b{5}       7,      3,      0,      3,     20,    20,
                     0,            0,            1,            0,            0,            1,            0,
            0.004365269360967, -0.01497020610398,      0,
            0.007369079672544, -0.0126431290699,    900,
                     0, 14.79244119691,   4000,
            0.01167139690928, -0.009047580068978,      0,
            0.00858285669353, -0.01142894928346,    900,
                     0, 14.41018743141,   4000,
            0.004365269360967, -0.01497020610398,      0


It has both the foreground showing in the preview as well as dashed lines running horizontal.

Any help would be appreciated. If you are able to point out any errors in my scrip I'd be grateful.

Image Fill Help Required Please!

$
0
0
Author:JGoode
Posted: Thu Aug 31, 2017 1:21 pm (GMT+1)


Here is the Element Attributes Fill Types settings for the image fill

Is it possible to define Pens in GDL?

$
0
0
Author:JGoode
Posted: Thu Aug 31, 2017 2:14 pm (GMT+1)


Is it possible to define Pens in GDL?

Is it possible to define Pens in GDL?

$
0
0
Author:runxel
Posted: Thu Aug 31, 2017 2:20 pm (GMT+1)


JGoode wrote:
Is it possible to define Pens in GDL?


No.
You can only request a similar pen to a RGB color:
Code:
REQUEST ("PEN_OF_RGB", colorInRGB, pen)

_________________
AC 20 | Mac 10.12 | Author of the GDL plugin for Sublime Text

Is it possible to define Pens in GDL?

$
0
0
Author:JGoode
Posted: Thu Aug 31, 2017 2:26 pm (GMT+1)


runxel wrote:
JGoode wrote:
Is it possible to define Pens in GDL?


No.
You can only request a similar pen to a RGB color:
Code:
REQUEST ("PEN_OF_RGB", colorInRGB, pen)


Do you have any example script of this? Thanks


Image Fill Help Required Please!

$
0
0
Author:JGoode
Posted: Thu Aug 31, 2017 3:19 pm (GMT+1)


Found out the cause of the horizontal lines! The issue now is just getting the image fill to show up in preview and when scheduling.

Image Fill Help Required Please!

$
0
0
Author:runxel
Posted: Thu Aug 31, 2017 5:08 pm (GMT+1)


JGoode wrote:
Found out the cause of the horizontal lines!


Then please share so everybody can profit Wink
_________________
AC 20 | Mac 10.12 | Author of the GDL plugin for Sublime Text

Is it possible to define Pens in GDL?

$
0
0
Author:runxel
Posted: Thu Aug 31, 2017 5:36 pm (GMT+1)


Code:
rr = REQUEST("PEN_OF_RGB", "0 1 0.2", _greenishpen)
!!! color range 0 to 1  //  WTF GS?

pen _greenishpen

set line_type   1
line2           0,0,5,0


Whoever did the 0 to 1 thing was clearly effing around. Rolling Eyes
_________________
AC 20 | Mac 10.12 | Author of the GDL plugin for Sublime Text

Is it possible to define Pens in GDL?

$
0
0
Author:Piotr Dobrowolski
Posted: Thu Aug 31, 2017 8:39 pm (GMT+1)


It is 0-1 in all MacOS at least in early versions Wink
anyway it is more accurate BTW: 256 points vs _the_accuracy_You_need Wink
Not that I like it...and in any script I use X/255 to get the GDL needed value while any soft would rather give 0..255.

Best Regards,
Piotr

Image Fill Help Required Please!

$
0
0
Author:JGoode
Posted: Fri Sep 01, 2017 9:10 am (GMT+1)


runxel wrote:
JGoode wrote:
Found out the cause of the horizontal lines!


Then please share so everybody can profit Wink
It was actually just in the Model View Options, it happens when you override the Fill Background Colour in the fill display settings. Very simple, but I just didn't work it out.

Is it possible to define Pens in GDL?

$
0
0
Author:runxel
Posted: Fri Sep 01, 2017 9:15 am (GMT+1)


Piotr Dobrowolski wrote:
It is 0-1 in all MacOS at least in early versions Wink
anyway it is more accurate BTW: 256 points vs _the_accuracy_You_need Wink
Not that I like it...and in any script I use X/255 to get the GDL needed value while any soft would rather give 0..255.

Best Regards,
Piotr

I know Piotr, but the accuracy is not the point. Smile
It is about consistence and usability.
The implemented way is just total madness! Wink It's like cooking by receipt with imperial units but living in Europe.
_________________
AC 20 | Mac 10.12 | Author of the GDL plugin for Sublime Text

Object facing elevation camera

$
0
0
Author:JGoode
Posted: Fri Sep 01, 2017 3:20 pm (GMT+1)


Hi,
I have a 2D symbol that I need to be able to show in elevation. The issue is I always need it to face towards the camera. Is this possible for elevation? I have an object which does it with normal 3D views but not with elevations.
Any help would be appreciated.


Object facing elevation camera

$
0
0
Author:Erwin Edel
Posted: Fri Sep 01, 2017 3:32 pm (GMT+1)


I think the way you are 'supposed' to do this, is by placing 2D objects in section elevation.

In our template we have layers for 2D and 3D vis elements for this reason.

The 2D billboard type objects that you have in 3D will not 'face' the elevation, as far as I know.
_________________
Erwin Edel, Project Lead, Leloup Architecten
www.leloup.nl

ArchiCAD 9-20 NED FULL
BIMx
Windows 10 Pro 1607 / OS X Sierra
Adobe Design Premium CS4

Object facing elevation camera

$
0
0
Author:JGoode
Posted: Sun Sep 03, 2017 8:56 pm (GMT+1)


Erwin Edel wrote:
I think the way you are 'supposed' to do this, is by placing 2D objects in section elevation.

In our template we have layers for 2D and 3D vis elements for this reason.

The 2D billboard type objects that you have in 3D will not 'face' the elevation, as far as I know.
The issue is that the specific 2D symbol contains information (an ID) that is set and that needs to translate onto the 3D elevation. The placing of the 2D in the 3d isn't what we're after unless it is the only way. Do you know how to make the object always face elevation or if it is even possible?
_________________
ArchiCAD 17, 19 and 21
Windows 8

Object facing elevation camera

$
0
0
Author:runxel
Posted: Mon Sep 04, 2017 8:17 am (GMT+1)


Well, technically it is possible.
But it would require some additional GDL scripting, using GLOB_VIEW_TYPE.
_________________
AC 20 | Mac 10.12 | Author of the GDL plugin for Sublime Text

Object facing elevation camera

$
0
0
Author:JGoode
Posted: Mon Sep 04, 2017 9:11 am (GMT+1)


runxel wrote:
Well, technically it is possible.
But it would require some additional GDL scripting, using GLOB_VIEW_TYPE.
I don't suppose you know where I would start do you?

Thanks
_________________
ArchiCAD 17, 19 and 21
Windows 8

Object facing elevation camera

$
0
0
Author:Erwin Edel
Posted: Mon Sep 04, 2017 9:32 am (GMT+1)


Well, I have used that parameter on some objects for different floorplan symbols. It grabs the type of view.

GLOB_VIEW_TYPE=4 is a section, GLOB_VIEW_TYPE=5 is an elevation. This still doesn't tell you much of how to rotate the object though, as elevations / sections rotation on the XY grid of floorplan is not something you can query AFAIK. I mean, typically steps of 90 degree rotation will get you there for most projects, but not every design is a nice 4 sided equal box of elevations.

Are these actual building elements or just things like shrubs and people? If it is a building element, I would guess it is easier and quicker to model it in 3D if you have floor plan and elevations of it.
_________________
Erwin Edel, Project Lead, Leloup Architecten
www.leloup.nl

ArchiCAD 9-20 NED FULL
BIMx
Windows 10 Pro 1607 / OS X Sierra
Adobe Design Premium CS4

Viewing all 3838 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>