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

Door custom knob missing

$
0
0
Author:drexdis
Posted: Fri Jan 06, 2017 10:10 pm (GMT+1)


Hello,

I have created a new custom knob.
It showed the other day when i worked, but now it's not there anymore.
Why is it missing?
_________________
Archicad 20 INT
Windows 7 64 bit


Request assocel_properities

$
0
0
Author:ispyridis
Posted: Fri Jan 06, 2017 10:40 pm (GMT+1)


ispyridis wrote:
I'm trying to refine the associated property object label I posted earlier in this thread. I'm trying to use the values retrieved as drop down lists to filter information. I use command : values "___dbsetname" _dbsetname
_dbsetname is an array that holds the names of the databases that provide info to the property object. Is this a problem of the request ASSOCEL_PROPERTIES? can the values retrieved in array be used for parameter values.

P.S. in the array there are common records is this a problem? should I make a new array that holds descrete values?


Thanks Ioannis


it seems my problem is that the array has duplicate values. is there a way to make an array with unique values out of the initial one?

Thanks
_________________
Archicad 12-20 win10 64 Intel 3.00 ghz 16gb

Request assocel_properities

$
0
0
Author:ispyridis
Posted: Sat Jan 07, 2017 7:20 am (GMT+1)


I managed to limt the _dbsetname values to a new array __dbsetname my problem now is that a zero "0" value comes from nowhere. below is the code with some text2 commands to test contents of both arrays. in the attached image you can see the zero phantom value. Can anybody help?



Code:

n=0


nnn = REQUEST ("ASSOCEL_PROPERTIES", "iscomp,dbsetname,keycode,keyname,code,name,fullname,quantity,totquantity,unitname,unitformatstr,propobjname", n, DATA)
if n = 0 THEN
    TEXT2 0, 0, "No properties"
ELSE
   j = 0
   k=1

   FOR i=1 TO n

         IF   i/1 = 1 or (i-1)/12 = int((i-1)/12) THEN
         _iscomp[k]= data[i]
         k=k+1
         ENDIF
NEXT i
   k=1
FOR i=1 TO n
         IF   i/2 = 1 or (i-2)/12 = int((i-2)/12) THEN
         _dbsetname[k]= data[i]
         text2 15,k,_dbsetname[k]
         k=k+1
         ENDIF
NEXT i

k=2
__dbsetname[1] = _dbsetname[1]
text2 0,0, __dbsetname[1]

FOR i=2 to VARDIM1 (_dbsetname)

IF _dbsetname[i] = _dbsetname[i-1] then
k=k
else
k=k+1
__dbsetname[k] = _dbsetname[i]

ENDIF
NEXT i

for i=1 to vardim1 (__dbsetname)
text2 5,i, __dbsetname[i]
next i
text2 10,5,vardim1 (__dbsetname)
text2 10,2,vardim1 (_dbsetname)

!
!
!
VALUES "___DBSETNAME" __dbsetname, CUSTOM
!

_________________
Archicad 12-20 win10 64 Intel 3.00 ghz 16gb

Request assocel_properities

$
0
0
Author:ispyridis
Posted: Sat Jan 07, 2017 7:57 am (GMT+1)


ok I found my mistake in the code

k=k+1

had to be after

__dbsetname[k] = _dbsetname[i]

the problem now is that even though I have an array with unique values, I cannot use it in a value list. What is the problem?
_________________
Archicad 12-20 win10 64 Intel 3.00 ghz 16gb

Reading Autotext

$
0
0
Author:David Maudlin
Posted: Sat Jan 07, 2017 3:56 pm (GMT+1)


Derek:

This is what I did to add a graphic scale to my Drawing Title. It is not elegant but gets the job done:

ds = AC_DrawingScale
ds1 = `1' = 1'-0"`
ds2 = `6" = 1'-0"`
ds4 = `3" = 1'-0"`
ds8 = `1 1/2"= 1'-0"`
ds12 = `1" = 1'-0"`
ds18 = `3/4" = 1'-0"`
ds24 = `1/2" = 1'-0"`
ds36 = `3/8" = 1'-0"`
ds48 = `1/4" = 1'-0"`
ds72 = `3/16" = 1'-0"`
ds96 = `1/8" = 1'-0"`
ds144 = `3/32" = 1'-0"`
ds192 = `1/16" = 1'-0"`
ds120 = `1" = 10'`
ds240 = `1" = 20'`
ds360 = `1" = 30'`
ds480 = `1" = 40'`
ds600 = `1" = 50'`
ds1200 = `1" =100'`
If AC_DrawingScale = ds1 Then
noma = `1/4"`
nomz = `1/2"`
noend = `1"`
EndIf
If AC_DrawingScale = ds2 Then
noma = `1/2"`
nomz = `1"`
noend = `2"`
EndIf
If AC_DrawingScale = ds4 Then

...

The graphic scale is always an inch long, with the correct units displayed for the scale. Note the number of spaces in each text string, they vary from scale to scale. More complicated scales should be possible. I think I poached this approach from one of the Graphisoft graphic scales, but I don't see a Graphisoft Drawing Title with the graphic scale option anymore.

HTH,

David
_________________
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC20 USA+MEP • iMac 27" 4.0GHz Quad-core i7 | 24 gb ram • MacBook Pro 2.5GHz | 16 gb ram • OSX10.10.5

Door custom knob missing

$
0
0
Author:Barry Kelly
Posted: Mon Jan 09, 2017 3:00 am (GMT+1)


I am guessing that the custom door knob object is no longer in your Embedded Library or any other loaded library.

It should be available so long as it is in a loaded library.

Barry.
_________________
Versions 6.5 to 20
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

Change Parameter by Property

$
0
0
Author:laszlonagy
Posted: Mon Jan 09, 2017 12:15 pm (GMT+1)


I don't think that is possible to do. Properties can be assigned to elements, including GDL-based element types so it is a higher level data than e.g. the parameters of a GDL object.
Also, I do not see any new command in GDL that would give access to these Properties.
_________________

Laszlo Nagy, Moderator, Site Admin
https://twitter.com/laszlonagy

i7-2630QM 16 GB RAM
17.3" (1920x1080), NVidia GTX 460M
SSD+HDD, Win7-64 ENG
AC13-AC20 (64-bit, latest build)
Loving ARCHICAD since 1995

Reading Autotext

$
0
0
Author:derekjackson
Posted: Mon Jan 09, 2017 1:20 pm (GMT+1)


Thanks David,
that looks encouraging, but I'm still getting errors as I try to use AC_DrawingScale. Do I need to declare it as a parameter first? I'm assuming not.

I'm getting an 'Uninitialized variable' issue with it.

Any ideas what I'm missing?
_________________
www.lsiarchitects.co.uk
www.djillustration.com

AC17 / 19

Windows 7 Intel Xeon 18Gb


Reading Autotext

$
0
0
Author:David Maudlin
Posted: Mon Jan 09, 2017 2:42 pm (GMT+1)


Derek:

I am not sure what is the cause of your issue. My title library part is of the Sub-Type Drawing Title, and has the parameter AC_DrawingScale as a Text Type parameter (see screen shot below). All the references to AC_DrawingScale are shown in my previous post, there is nothing else done to this parameter. You could also look at a Graphisoft title to see if there is something there (or not there) compared to your code.

David
_________________
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC20 USA+MEP • iMac 27" 4.0GHz Quad-core i7 | 24 gb ram • MacBook Pro 2.5GHz | 16 gb ram • OSX10.10.5

Reading Autotext

$
0
0
Author:derekjackson
Posted: Mon Jan 09, 2017 2:54 pm (GMT+1)


How odd - loading up the Drawing Title subtype doesn't offer me that parameter, and I can't seem to find it in other Graphisoft objects or other nearby subtypes.

This page suggests it should be there:
gdl.graphisoft.com/gdl-docs/gdl-guide/chapter-12-miscellaneous/fix-named-optional-parameters/parameters-set-by-archicad/drawing-title-attributes/

but the attached is what I see when I start a new object with that subtype - not sure what is going on here!!
_________________
www.lsiarchitects.co.uk
www.djillustration.com

AC17 / 19

Windows 7 Intel Xeon 18Gb

Define Pen Colour?

$
0
0
Author:derekjackson
Posted: Mon Jan 09, 2017 5:11 pm (GMT+1)


Hi,
does anyone know if there's a way of defining a pen colour in RGB with GDL?

We need to make a 2d object with predefined background colours (red, yellow and green) so we don't want to give the user choice over which pen to use.

Can it be defined in script? It seems odd that we can define Materials but not Pen colours (which are much simpler).

It's not listed here, but there may be a workaround or something I'm missing?
gdl.graphisoft.com/gdl-docs/gdl-guide/chapter-8-attributes/inline-attribute-definition/

Thanks
_________________
www.lsiarchitects.co.uk
www.djillustration.com

AC17 / 19 / 20

Windows 7 Intel Xeon 18Gb

Array with numeric value

$
0
0
Author:sjoelte
Posted: Mon Jan 09, 2017 5:25 pm (GMT+1)


Hi,

i'm trying to make my first gdl script for a rainwater tank in Archicad. I'm able to change the text in the object after people select a predefined value but I also want to change the size of the object according with the tank size.

I defined an array but when i try to adjust the size I get the following error: Numeric type expression required at line 77 in the 2D script of file ....

I tried deleting the quotes but then there's an error in the array. I tried the ABS() function, but that didn't work either. I also searched the GDL reference guide but couldn't find anything.

Can you guys please take a look at my code?
Thanks in advance!

Code:

!
!   Name     : 17.71 regenwaterput.gsm
!   Date     : dinsdag 3 januari 2017
!   Version  : 1.00
!   Written by GJS
!

mul2   A/2.150000, B/2.150000

DIM typePut[][]

   typePut[1500][1] = "1500"   !inhoud
   typePut[1500][2] = "-.75"   !straal

   typePut[2000][1] = "2000"   !inhoud
   typePut[2000][2] = "-.75"   !straal

   typePut[3000][1] = "3000"   !inhoud
   typePut[3000][2] = "-.875"   !straal

   typePut[5000][1] = "5000"   !inhoud
   typePut[5000][2] = "-1.075"   !straal

   typePut[7000][1] = "7000"   !inhoud
   typePut[7000][2] = "-1.225"   !straal

   typePut[10000][1] = "10 000"   !inhoud
   typePut[10000][2] = "-1.500"      !straal

   typePut[15000][1] = "15 000"   !inhoud
   typePut[15000][2] = "-1.500"      !straal

   typePut[20000][1] = "20 000"   !inhoud
   typePut[15000][2] = "-1.725"      !straal

DEFINE STYLE "tekstVetMiddel" "Arial Narrow Bold", 2.5,1,0
DEFINE STYLE "tekstKlein" "Arial Narrow", 1.5,1,0

Volume = typePut[putVolume][1]

PARAGRAPH "putTekstPara" 2,
   0,
   0,
   0,
   1.15,
   0
   PEN 2
   STYLE "tekstVetMiddel"
    "Regenwaterput ("+ Volume +" liter)\n"
   STYLE "tekstKlein"
    "volgens verordening hemelwater"
ENDPARAGRAPH

TEXTBLOCK "putTekst" 0,
   5,    !anchor
   0,   !angle
   1,   !width_factor
   1,   !charspace_factor
   1,   !fixed_height 1=mm, 0=m
  "putTekstPara"

RICHTEXT2 0,0, "putTekst"

straal = typePut[putVolume][2]

fill putFill   
poly2_b{5}       9,      3,      1,      3, putSolid, putEmpty,
                   0,            0,            1,            0,            0,            1,            0,
              straal, -4.440892098501E-16,     33,
        1.110223024625E-16, -5.551115123126E-16,    900,
                   0,          -90,   4033,
        1.110223024625E-16, -3.330669073875E-16,    900,
                   0,          -90,   4033,
        -2.22044604925E-16,            0,    900,
                   0,          -90,   4033,
        -1.110223024625E-16, -2.22044604925E-16,    900,
                   0,          -90,   4033

_________________
MacOSX 10.9.3
3,1 GHz Intel Core i5
16 GB 1333 MHz RAM
ArchiCAD 17

Reading Autotext

$
0
0
Author:Barry Kelly
Posted: Tue Jan 10, 2017 2:06 am (GMT+1)


That parameter is not part of the 'Drawing Title' subtype (or any other that I know of) - but you should be able to just add it in.

Barry.
_________________
Versions 6.5 to 20
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

Define Pen Colour?

$
0
0
Author:Barry Kelly
Posted: Tue Jan 10, 2017 2:14 am (GMT+1)


I don't think you can define a pen colour because there is a finite number of pens and these are defined in your pen sets (I may be wrong).
Unlike materials and fills where you can have as many as you want.

If you already have the red, green and yellow pens in your pen set then you can use them in your script by hard coding them and not allowing them as a parameter that the user can change.
However changing pen sets may change those colours.

Barry.
_________________
Versions 6.5 to 20
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

Define Pen Colour?

$
0
0
Author:derekjackson
Posted: Tue Jan 10, 2017 11:19 am (GMT+1)


Thanks, hard-coding the pen number is the solution I went with - we just have to hope the user doesn't change the pen set when using the object.

It's surprising that the RGB of a poly2_b fill can't be defined in script though - I understand about a limited number of pen numbers, but the purpose bypasses the need to refer to a specific pen. I just want to lock the colour of a fill!
_________________
www.lsiarchitects.co.uk
www.djillustration.com

AC17 / 19 / 20

Windows 7 Intel Xeon 18Gb


Define Pen Colour?

$
0
0
Author:derekjackson
Posted: Tue Jan 10, 2017 11:19 am (GMT+1)


Thanks, hard-coding the pen number is the solution I went with - we just have to hope the user doesn't change the pen set when using the object.

It's surprising that the RGB of a poly2_b fill can't be defined in script though - I understand about a limited number of pen numbers, but the purpose bypasses the need to refer to a specific pen. I just want to lock the colour of a fill!
_________________
www.lsiarchitects.co.uk
www.djillustration.com

AC17 / 19 / 20

Windows 7 Intel Xeon 18Gb

Reading Autotext

$
0
0
Author:derekjackson
Posted: Tue Jan 10, 2017 11:21 am (GMT+1)


Hmm - thanks Barry, but surely just adding it in manually will make the object think it's a user-defined parameter, rather than looking at anything within the current project?
_________________
www.lsiarchitects.co.uk
www.djillustration.com

AC17 / 19 / 20

Windows 7 Intel Xeon 18Gb

Text wrapping for UI_INFIELD

$
0
0
Author:derekjackson
Posted: Tue Jan 10, 2017 11:24 am (GMT+1)


Hi, just bumping this post - does anyone know a solution to this in AC19 onwards?

We need users to type a paragraph of text in an object, which is really annoying to edit in a single line...
_________________
www.lsiarchitects.co.uk
www.djillustration.com

AC17 / 19 / 20

Windows 7 Intel Xeon 18Gb

custom skylight

$
0
0
Author:ritadiniz
Posted: Tue Jan 10, 2017 12:17 pm (GMT+1)


laszlonagy wrote:
If you open for editing any of the Skylight objects in the default ARCHICAD Library, you will see how they are scripted.
Unfortunately, if you are not familiar with GDL Scripting, it will be quite difficult for you to do it, and would take lots of time to explain how to it.
In that case your best bet would be to hire a GDL expert to script it for you.


Thank you. I will try to find someone. But is really frustating, am I the only one doing a skylight without a rectangle ou square form? Is really stupid that graphisoft didn't think about that...

Reading Autotext

$
0
0
Author:David Maudlin
Posted: Tue Jan 10, 2017 2:02 pm (GMT+1)


Derek:

Just add the parameter as shown in my screen shot. The blue ones that are part of the Sub-Type are not editable, the black ones are. From Parameters set by ARCHICAD:
The new method of ARCHICAD for providing information is the method of fixed named optional parameters. If a given library part has a parameter matching a fix named optional parameter in name and in type, sets its value according to its function.

David
_________________
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC20 USA+MEP • iMac 27" 4.0GHz Quad-core i7 | 24 gb ram • MacBook Pro 2.5GHz | 16 gb ram • OSX10.10.5

Viewing all 3838 articles
Browse latest View live


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