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

DDGI Library Review Anyone?

$
0
0
Author:SenecaDesignLLC
Posted: Thu Jan 12, 2017 6:33 pm (GMT+1)


hfs55 wrote:
Will have to give this one a try. Thanks Seneca
First I used cadimage which is great but expensive. Have been using this lately, which is good but the UI is tricky. http://cadswift.com.au/products/Swift-Joinery.html


They are nothing fancy, but are pretty customizable. cabinet by cabinet. the more input i get the better i can make them
_________________
AC 20, msi gt72 w/ nvidia gtx 970m, intel i7 5700HQ. 32 gigs Gskill ripjaw 1600, sandisk extreme pro ssd


Cantera Stone Wrap

Part Section Marker Background Fill - GDL

$
0
0
Author:PrendosJoe
Posted: Fri Jan 13, 2017 3:52 am (GMT+1)


Hello all and Happy New year,

We use a section marker with different ends to reference section details etc, a circle plus text and arrow at one end and a rectangle tail at the other as in the attached.

We couldn't find a marker in the version of Archicad we use that could accomplish this so after a lot of searching I found the 'Section Park Marker' which is exactly what we need, however the circle with text in doesn't have a background fill, as shown by the blue line in the attached.

I've been trying to edit the script to give the circle a fill with no luck, would anyone be able to help please, or can anyone point me to a better marker?!! I tried replacing circle2 with Poly2 as a stab in the dark with no luck...!

The script I believe is for the 2D representation of the marker is below. Thanks in advance!

Code:
!!!************************************ Section Part Marker_NCS ************************
IF elev_sect_mark_US_type = 2 THEN


   pen gs_cont_pen


   ! centered, always horizontal marker text
   style centerstyle

   dist=AC_MarkerSize/sqr(2)
   mark_rad=AC_MarkerSize/2      !!!*sqr(2)

   If not(SYMB_MIRRORED) Then
      If gs_flipp Then
         flipp=1
      Else
         flipp=0
      EndIf
   Else
      If gs_flipp Then
         flipp=0
      Else
         flipp=1
      EndIf
   EndIf



   If not(flipp) Then
      unID=1
      hotspot2 0,0,unID : unID=unID+1
      hotspot2 -dist,0,unID : unID=unID+1
      hotspot2 -dist,dist,unID : unID=unID+1
      hotspot2 -2*dist,0,unID : unID=unID+1

      add2 -dist,0

      for i=1 to 2
         poly2_b   5, 7, gs_backfill_pen_fg, gs_backfill_pen_bg,
               -dist, 0, 1,
               -mark_rad, 0, 1,
               0, 0, 901,
               mark_rad, -45, 4001,
               -dist, 0, -1
         mul2 -1,1
      next i
      del 2

      poly2_b   5, 7, gs_backfill_pen_fg, gs_backfill_pen_bg,
            0, dist, 1,
            mark_rad*sqr(2)/2, mark_rad*sqr(2)/2, 1,
            0, 0, 901,
            mark_rad, 90, 4001,
            0, dist, -1

      circle2 0,0,mark_rad


      !!! Text division line !!!!!!!!!!!!!!!

      if gs_marker_text_rotation_int = 1 or gs_marker_text_rotation_int = 2 then   ! Horizontal, Vertical
         mrr = SYMB_MIRRORED - not(SYMB_MIRRORED)   ! 1 / -1
         rot2 SYMB_ROTANGLE * mrr               ! reset x to horizontal
         if gs_marker_text_rotation_int = 2 then
            rot2 90
         endif
      endif


      line2 -mark_rad,0,mark_rad,0

      if gs_marker_text_rotation_int = 1 or gs_marker_text_rotation_int = 2 then
         if gs_marker_text_rotation_int = 2 then del 1
         del 1
      endif


   Else
      thk=0.0015*1000
      len=0.0030*1000
      gs_fill_pen=1 : gs_back_pen=91
      poly2_b   5, 7, gs_backfill_pen_fg, gs_backfill_pen_bg,
            0, 0, 1,
            0, len, 1,
            -thk, len, 1,
            -thk, 0, 1,
            0, 0, -1

   endif

ENDIF


_________________
ArchiCAD 19 3003 NZE FULL
Windows 8.1 Pro 64-bit
Intel Xeon 3.5GHz
16GB RAM

Part Section Marker Background Fill - GDL

$
0
0
Author:David Maudlin
Posted: Fri Jan 13, 2017 2:11 pm (GMT+1)


PrendosJoe:

This is a guess as I just scanned the code, but I am thinking that the line:
circle2 0,0,mark_rad
is the circle. So just after this line your would add a line of code for the fill using the POLY2_ command (or other versions of it if you want more control) after setting the fill you want to use. Since the Poly2_ command has Status values, you can use the Additional Status Codes (see the GDL Reference Guide) to draw the circle.

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

Cantera Stone Wrap

$
0
0
Author:David Maudlin
Posted: Fri Jan 13, 2017 2:25 pm (GMT+1)


Isaac:

Another option is to use the D1 Segmented 20 Door, set the Door Leaf to Empty (no leaf) then use the Casing Settings for the stone surround.

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:David Maudlin
Posted: Fri Jan 13, 2017 2:33 pm (GMT+1)


derek:

The library part you posted has a SubType of Drawing Symbol, not Drawing Title. The Drawing Title is part of a placed Drawing, the Drawing Symbol can be placed independently and will read the scales of all the Drawings placed on the Layout. I tried playing with your library part but did not make any progress, it may not be possible to do what I did with a Drawing Symbol.

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: Fri Jan 13, 2017 3:39 pm (GMT+1)


I've changed the subtype to Drawing Title, and reduced the 2D script to simply
Code:
text2 0, 0, AC_DrawingScale


I've defined an 'AC_DrawingScale' parameter with a default value of 'x', and the object just outputs 'x', rather than looking at the drawing scale.

Looking like it can't be done...
_________________
www.lsiarchitects.co.uk
www.djillustration.com

AC17 / 19 / 20

Windows 7 Intel Xeon 18Gb

Cantera Stone Wrap

$
0
0
Author:Erwin Edel
Posted: Fri Jan 13, 2017 4:19 pm (GMT+1)


Or draw the shape in complex profile and draw a wall or beam with the profile perpendicular to the wall.
_________________
Erwin Edel, Project Lead, Leloup Architecten
www.leloup.nl

ArchiCAD 9-20 NED FULL
BIMx
Windows 7 Professional SP1 64-bit / OS X El Capitan
Adobe Design Premium CS4


Reading Autotext

$
0
0
Author:Erwin Edel
Posted: Fri Jan 13, 2017 4:42 pm (GMT+1)


How about placing the object in floorplan? It should be easy to pick up the scale of the floor plan view, as lots of objects use this to determine how detailed the symbol should be.

Placing a simple textbox with autotext works fine in any view, that's what we use instead of drawing titles to show the drawing name.
_________________
Erwin Edel, Project Lead, Leloup Architecten
www.leloup.nl

ArchiCAD 9-20 NED FULL
BIMx
Windows 7 Professional SP1 64-bit / OS X El Capitan
Adobe Design Premium CS4

Reading Autotext

$
0
0
Author:derekjackson
Posted: Fri Jan 13, 2017 4:46 pm (GMT+1)


Thanks Erwin, but we'll need it to be a layout object (as it'll be a scale bar in the end).

I got the Autotext <DRAWINGSCALE> working fine on the layout, but that's not much help, as GDL can't process the content of it.
_________________
www.lsiarchitects.co.uk
www.djillustration.com

AC17 / 19 / 20

Windows 7 Intel Xeon 18Gb

Part Section Marker Background Fill - GDL

$
0
0
Author:Juha Vesen
Posted: Fri Jan 13, 2017 11:06 pm (GMT+1)


Hello,

This one makes a poly circle with contour line

Code:

poly2_B 6, 1+2+4, gs_fill_pen,gs_back_pen,
   mark_rad,   0,   1,
   0,         0,   901,
   0,         180,   4001,
   0,         0,   901,
   0,         180,   4001,
   mark_rad,           0,   -1

_________________
--
Juha Vesen
ArchiCAD 4.1 --- 20
Mac Intel 2.5 GHz Intel Core i7 16Gb | OSX 10.10

Instantiate a 3rd party object into an own "Layout object"

$
0
0
Author:jacobidiego
Posted: Sun Jan 15, 2017 5:54 pm (GMT+1)


Hi.
This is my first GDL script.

I am trying to instantiate a Toilet, Bidet, and Shower into a "Badroom Layout" Object.

I want to invoque already created Toilets, Shower and stuff into the Layout object.

Do you know what is the function name?

Thanks in advance !!

Part Section Marker Background Fill - GDL

$
0
0
Author:PrendosJoe
Posted: Sun Jan 15, 2017 11:07 pm (GMT+1)


Fantastic, thank you very much both!

The only issue with this is that the background pen of the circle and the arrow are now the same, whereas we would prefer the arrow part to be black and the circle white. Is this relatively straight forward or would it require a new parameter adding etc?

Many thanks
_________________
ArchiCAD 19 3003 NZE FULL
Windows 8.1 Pro 64-bit
Intel Xeon 3.5GHz
16GB RAM

Part Section Marker Background Fill - GDL

$
0
0
Author:Juha Vesen
Posted: Mon Jan 16, 2017 12:15 am (GMT+1)


Hello,

You could use the screen pen (usually white) for the background, it
has the index number -1.


Code:

fill "Empty"
poly2_B 6, 1+2+4, gs_cont_pen, -1,
   mark_rad,   0,   1,
   0,         0,   901,
   0,         180,   4001,
   0,         0,   901,
   0,         180,   4001,
   mark_rad,           0,   -1

_________________
--
Juha Vesen
ArchiCAD 4.1 --- 20
Mac Intel 2.5 GHz Intel Core i7 16Gb | OSX 10.10

Instantiate a 3rd party object into an own "Layout object"

$
0
0
Author:jacobidiego
Posted: Mon Jan 16, 2017 2:43 am (GMT+1)


Weird of GDL to have called "Macro" to an "Object" or "Class"

Code:

macroToilet = "WC 20"
CALL macroToilet PARAMETERS      ! use parameter default values


Code:
CALL "leg" 2, , 5  !!!!! A = 2, B = 0, C = 5


Reading Autotext

$
0
0
Author:Erwin Edel
Posted: Mon Jan 16, 2017 8:39 am (GMT+1)


Instead of object for the 'stamp' at the bottom of the drawing (can't think of the english name, early mondays!) we use a worksheet we just placed on the masterlayout. The autotext in this works just fine with whatever we put on the layout afterwards. Maybe your object will work this way too.
_________________
Erwin Edel, Project Lead, Leloup Architecten
www.leloup.nl

ArchiCAD 9-20 NED FULL
BIMx
Windows 7 Professional SP1 64-bit / OS X El Capitan
Adobe Design Premium CS4

Reading Autotext

$
0
0
Author:ispyridis
Posted: Mon Jan 16, 2017 9:32 pm (GMT+1)


create an object with subtype drawing title

create a text parameter AC_OriginalDrawingScale
in the parameter's value field type 1:50 to initialise
and then hide it.


then in 2d script text2 0,0 AC_OriginalDrawingScale

then save

now on first look you will get a value 1:50
go view setting and change scale value. It will update.

I hope this is what you were looking for.
_________________
Archicad 12-20 win10 64 Intel 3.00 ghz 16gb

Reading Autotext

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


Thanks ispyridis, I've had a go but there's something odd.

As soon as I select the 'Drawing Title' subtype, I seem to no longer be able to place the object as a normal GSM file. It doesn't throw up any errors in the scripting area, but it doesn't appear alongside the others in the object selection area.

I've tested with a blank object (New Object, then Save As) and it works fine for, say, 'Drawing Symbol', but the moment I change it to 'Title', it no longer appears.

If I try to pick it directly through the 'Load Other Object' settings, then I get an error saying 'The selected file is not a General GDL Object file. Please select a valid General GDL Object file.'

Are Drawing Title objects used / placed differently?
_________________
www.lsiarchitects.co.uk
www.djillustration.com

AC17 / 19 / 20

Windows 7 Intel Xeon 18Gb

script for differen linetypes according to each floor/floor

$
0
0
Author:Luiscardoso
Posted: Tue Jan 17, 2017 1:21 pm (GMT+1)


Hey guys

i was looking around but couldn't find it the solution so were goes

is there any script code to have an object (made only w 2d elements) to have different linetype (changeable) from the homestory to the floors below and above?

thanks

Luis
_________________
MAC

Archicad 15 start edition

script for differen linetypes according to each floor/floor

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


Luis:

You can use the global variable: GLOB_CH_STORY_DIST: relative position of the current story to the home story.

So by checking the current story relative to the home story of the object (number of stories above or below), you can script which line type to use.

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>