SOLVED!
Is it possible to define Pens in GDL?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-08-31 03:14 PM
‎2017-08-31
03:14 PM
1 ACCEPTED SOLUTION
Accepted Solutions
Solution
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-10-04 12:05 PM
‎2018-10-04
12:05 PM
Hello,
Just to revisit this, how can I convert an RGB value into Graphisoft's 0-1 system?
Thanks
Just to revisit this, how can I convert an RGB value into Graphisoft's 0-1 system?
Thanks
ArchiCAD 23
Windows 10
Windows 10
7 REPLIES 7

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-08-31 03:20 PM
‎2017-08-31
03:20 PM
JGoode wrote:No.
Is it possible to define Pens in GDL?
You can only request a similar pen to a RGB color:
REQUEST ("PEN_OF_RGB", colorInRGB, pen)
Lucas Becker | AC 27 on Mac | Graphisoft Insider Panelist | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text | My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-08-31 03:26 PM
‎2017-08-31
03:26 PM
runxel wrote:Do you have any example script of this? ThanksJGoode wrote:No.
Is it possible to define Pens in GDL?
You can only request a similar pen to a RGB color:REQUEST ("PEN_OF_RGB", colorInRGB, pen)
ArchiCAD 23
Windows 10
Windows 10

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-08-31 06:36 PM
‎2017-08-31
06:36 PM
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,0Whoever did the 0 to 1 thing was clearly effing around.

Lucas Becker | AC 27 on Mac | Graphisoft Insider Panelist | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text | My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-08-31 09:39 PM
‎2017-08-31
09:39 PM
It is 0-1 in all MacOS at least in early versions 😉
anyway it is more accurate BTW: 256 points vs _the_accuracy_You_need😉
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
anyway it is more accurate BTW: 256 points vs _the_accuracy_You_need
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-09-01 10:15 AM
‎2017-09-01
10:15 AM
Piotr wrote:I know Piotr, but the accuracy is not the point.
It is 0-1 in all MacOS at least in early versions😉
anyway it is more accurate BTW: 256 points vs _the_accuracy_You_need😉
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

It is about consistence and usability.
The implemented way is just total madness!
Lucas Becker | AC 27 on Mac | Graphisoft Insider Panelist | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text | My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
Solution
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-10-04 12:05 PM
‎2018-10-04
12:05 PM
Hello,
Just to revisit this, how can I convert an RGB value into Graphisoft's 0-1 system?
Thanks
Just to revisit this, how can I convert an RGB value into Graphisoft's 0-1 system?
Thanks
ArchiCAD 23
Windows 10
Windows 10

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-10-04 04:15 PM
‎2018-10-04
04:15 PM
0 * 255 = 0 (black)
1 * 255 = 255 (white)
<< -- >>
0 / 255 = 0
255/255 = 1
1 * 255 = 255 (white)
<< -- >>
0 / 255 = 0
255/255 = 1
Jochen Suehlo . AC12-28 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
GDL object creation: b-prisma.de