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

Fixed width/height windows and doors

$
0
0
Author:allanp
Posted: Thu Aug 10, 2017 11:30 pm (GMT+1)


If you are using the standard archicad windows in the library they all call gs_general_window_macro that contains all the parameters in all the windows in the library...

if you use that as the base for all the parameters and then call the suitable W2, W1 etc. window then you get a universal library part.

i did this for a building company a few years ago, and they had 1 window library part with sliding, awning, double pane, single pane, basically everything. (they had over 500 windows to choose from, from their supplier)

there were 3 windows that the archicad tools could not produce, they were matrix windows with opening panes, and i just added some special condition code to draw opening sashes for those special conditions when that combination was chosen.

it can be done if you have a month to spare and know every window that you can choose from. once everything was in an excel spreadsheet it took less than a week to code the library part. getting all the correct frame sizes, changes in mullion widths(and slight changes to overall windows) for the chunkier frames, etc was the hard bit.

the tree below shows a map of calls from the standard archicad windows.

P.S.

if you call the window out of the master script, then you still have the standard archicad window user interface available for all the other settings.

you just have to remember to lock the fields that you don't want changed for that window.

remeber to call the window, not the macro i.e.
if a < 1.2 then
call "Window 18" parameters all
endif
if a > 1.2 and a < 2.4 then
call "Double Window 18" parameters all
endif
if a > 2.4 then
call "Triple Window 18" parameters all
endif

from AC 19 a sub library macro (GS Corner Window Functions) has Hideparameter all in the parameters script, so you will want to change that so it doesn't hide your parameters, or you will need to be able to add your drop downs into the GUI.

i.e. add the parameters you still want visable after the all command.

hideparameter all "My_Window_Style", "My_Window_Opeing_Type", "My_Window_Sizes"

both require a library hack.
_________________
____________
Allan P. BArch
Archicad 4.55 to ...20
GDL from Blocks to Nurbs
Apple from Mac Classic to iMac
Windows from 3.11 to Server 2012
Architect? no time while I'm coding Kitchens to Comply with NCC and ResCode, lol.


Why doesn't my 2D poly calculation work?

$
0
0
Author:allanp
Posted: Fri Aug 11, 2017 5:54 am (GMT+1)


Hi,

it appears like you are trying to draw flanges, connections to the wall?

assuming that 0.49266 is a big number, or spacing between....that may be where you are going wrong....as you are canceling out your Rail_width/2 by adding it then minusing it at that point you are using that big number...

this looks like code from a projection with the facets of a curve turned into code...when it should be just the true size...

choosing a simple Poly2_B script(not fill distortions)
4 points, plus closing point (5 in total)(-1 to close a poly at end)


Flange_Depth = 0.012
Flange_Diameter = 0.04225

for the origin it would be
Poly2_b 5, 3, gs_fill_pen, gs_back_pen,
-Flange_Diameter/2, 0, 1,
-Flange_Diameter/2, Flange_Depth, 1,
Flange_Diameter/2, Flange_Depth, 1,
Flange_Diameter/2, 0, 1,
-Flange_Diameter/2, 0, -1



for the middle connection it would be...
Poly2_b 5, 3, gs_fill_pen, gs_back_pen,
Rail_width/2-Flange_Diameter/2, 0, 1,
Rail_width/2-Flange_Diameter/2, Flange_Depth, 1,
Rail_width/2+Flange_Diameter/2, Flange_Depth, 1,
Rail_width/2+Flange_Diameter/2, 0, 1,
Rail_width/2-Flange_Diameter/2, 0, -1

for the far end it would be...
Poly2_b 5, 3, gs_fill_pen, gs_back_pen,
Rail_width-Flange_Diameter/2, 0, 1,
Rail_width-Flange_Diameter/2, Flange_Depth, 1,
Rail_width+Flange_Diameter/2, Flange_Depth, 1,
Rail_width+Flange_Diameter/2, 0, 1,
Rail_width-Flange_Diameter/2, 0, -1


39 points is a lot for a simple shape....especially when the y-value does not change (only 2 values)
_________________
____________
Allan P. BArch
Archicad 4.55 to ...20
GDL from Blocks to Nurbs
Apple from Mac Classic to iMac
Windows from 3.11 to Server 2012
Architect? no time while I'm coding Kitchens to Comply with NCC and ResCode, lol.

Deep Recess in Exterior Wall

$
0
0
Author:ksjhawk
Posted: Wed Aug 09, 2017 9:24 pm (GMT+1)


I have run into this problem a number of times and always tweak and tweak until I finally get the result I want. Is there a preferred way for building deep recesses so that the representation in 2D works and you get the skin returning into the opening properly in 3D.

I usually try to use the empty opening and plug it in to the exterior wall. While I can use a custom closure and return the wall to look right in plan, this method leaves a gap between the exterior wall and the next wall. Using the empty opening in conjunction with walls that return, I get it to work in plan, but still end up with a material problem at the return in 3D

Thoughts?

Deep Recess in Exterior Wall

$
0
0
Author:Barry Kelly
Posted: Thu Aug 10, 2017 2:19 am (GMT+1)


I can't say for sure without setting it all up and trying.
But don't use an empty opening.
Split the front wall either side (at the corners) and raise the height of the base of the wall in the middle to make the opening.

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

Deep Recess in Exterior Wall

$
0
0
Author:squall_tmo
Posted: Sun Aug 13, 2017 11:42 pm (GMT+1)


Hello ksjhawk,

I think that you just need to choose the Rectangular Empty Door/Window (I always prefer to use it instead of the one generated by pressing the "Empty window" button because you have more parameters, but you can find this parameter in this kind of wall hole too) and then, In the first panel of the "Basic Window Settings" of the window/door, you can find the "Wall Opening Surface" parameter: choose "Same as Wall Side" and you should be able to control the surface of that edges by changing the "Reveal to wall" value.

Change tree species without changing size of tree

$
0
0
Author:R Muller
Posted: Wed Aug 16, 2017 12:22 am (GMT+1)


I can't find any way to change tree species while keeping the current spread and height of the tree, other than writing down the current spread and height and then resetting them from the standard values after changing the species. I would like to change the 3d appearance of 350 trees of varying sizes at the same time, but have concluded it can't be done. I have to do them one at a time.

I was hoping the new element transfer settings would allow this, but no luck. I can retain the element ID and layer settings, and the elevation of the bottom of the tree, but the other tree dimensions are changed when I choose a different library part for the tree.

I'm not looking forward to changing 350 trees one tree at a time. Is there a way to do this more efficiently?
_________________
R Muller
AC 20 & 21 USA (20+ years on ArchiCAD)
MBP 16GB OS 10.12 Sierra

Custom Railing

$
0
0
Author:rgarand
Posted: Wed Aug 16, 2017 12:57 am (GMT+1)


I have been playing around with the new Railing Object and have figured out the Top Rail, Bottom Rail and I was able to eliminate the posts, but I am stuck on the balusters. I am trying to replicate the railing in the attached image.

Any thoughts?
_________________
Robert J. Garand
Dale Gardon Design
ArchiCAD USA 21-Build 3005 USA FULL
Windows 7 Prof (64 bit)
Intel i7-5820K CPU 3.30 GHz (32 GB RAM)
NVIDIA Quadro K4200 (4GB RAM)

Change tree species without changing size of tree

$
0
0
Author:allanp
Posted: Wed Aug 16, 2017 1:31 am (GMT+1)


If you are using a library part like Deciduous Trees 21 then no...its a feature of the code.

The coding says when the type of tree is changed, then read the default values from a table...and apply them to A(Width), B(Length), ZZYZX(Height)

If you want to edit the library part to stop this, all you need to do is to override the default table with the current A(Width), B(Length), ZZYZX(Height) values.

The Default values are stored in an array DefSizeValues

As a test I made a parameter
Auto_Change_Tree_Size (Boolean)

In the Master Script I added

if Auto_Change_Tree_Size = 0 then
DefSizeValues[1][1] = A
DefSizeValues[2][1] = A
DefSizeValues[3][1] = A
DefSizeValues[4][1] = A
DefSizeValues[5][1] = A
DefSizeValues[1][2] = B
DefSizeValues[2][2] = B
DefSizeValues[3][2] = B
DefSizeValues[4][2] = B
DefSizeValues[5][2] = B
DefSizeValues[1][3] = ZZYZX
DefSizeValues[2][3] = ZZYZX
DefSizeValues[3][3] = ZZYZX
DefSizeValues[4][3] = ZZYZX
DefSizeValues[5][3] = ZZYZX
DefSizeValues[1][4] = A
DefSizeValues[2][4] = A
DefSizeValues[3][4] = A
DefSizeValues[4][4] = A
DefSizeValues[5][4] = A
endif

Then saved it as a new library part.

This will work for:
Deciduous Trees 21
Evergreens 21
Houseplants 21
Palm Trees 21
Pine Trees 21
Shrubs 21


In Tree model detailed 21:
if Auto_Change_Tree_Size = 0 then
for i_loop = 1 to 10
sizeDefaultA[i_loop] = A
sizeDefaultB[i_loop] =B
sizeDefaultZzyzx[i_loop] = ZZYZX
next i_loop
endif

(using a loop for the values)

The other trees in the Archicad 21 library it is coded in the parameter script directly, no neat arrays to control.

If you want to create your own library parts, or edit the Archicad 21 library, it is a little bit of work, but potentially better for you in the long run if this is a common problem.

There is no work around to fix this...
_________________
____________
Allan P.
Archicad 4.55 to 21
GDL from Blocks to Nurbs
Apple from Mac Classic to iMac
Windows from 3.11 to Windows 10


Custom Railing

$
0
0
Author:Barry Kelly
Posted: Wed Aug 16, 2017 2:03 am (GMT+1)


Model the baluster in 3D with a slab to the desired shape.
Stand it up (morph it to be able to free rotate) and place at the project origin or place the user origin at the base.
You will want the bulge to be along the X-axis I think.

Now save this as a custom railing post object ... File menu > Libraries and Objects > Save Selection as…> Railing Post

It should now be available in your railing object as a custom baluster.

I am not sure if you can do something similar for the post on the corner to get the scroll at 45° .

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 tree species without changing size of tree

$
0
0
Author:R Muller
Posted: Wed Aug 16, 2017 4:54 am (GMT+1)


Allan-

Thank you for this. It actually looks doable, even for someone like me who avoids GDL. I will definitely give it a try. I am using the AC21 trees, so it should work.

I also thought of creating an interactive schedule of all the trees, and modifying them from the schedule. Do you think this could work?
_________________
R Muller
AC 20 & 21 USA (20+ years on ArchiCAD)
MBP 16GB OS 10.12 Sierra

Change tree species without changing size of tree

$
0
0
Author:allanp
Posted: Wed Aug 16, 2017 5:26 am (GMT+1)


If you want to change all the trees so the match, it can be done in a schedule.

If you choose the drop down from "Add Fields" add a "Library Parts Parameter", and browse from
Archicad library 21/Object Library 21.lcf/Object Library 21/ 2.Visualization 21/ 2.2 Site Improvments 21/ Garden 21/ Deciduous Trees 21.gsm
choose
iTreeType
(that is where it is in the AUS Library)
This will give you the different tree types to choose from

You can merge identical in the schedule so you get all the identical trees
(as long as you don't have the "Element ID" or" Hotlink and Element ID" in the schedule)

This would speed up changing of trees without editing the library parts.
_________________
____________
Allan P.
Archicad 4.55 to 21
GDL from Blocks to Nurbs
Apple from Mac Classic to iMac
Windows from 3.11 to Windows 10

Global view dependent 2d scripts.. HOW?

$
0
0
Author:Mise7
Posted: Wed Aug 16, 2017 2:42 pm (GMT+1)


Hi Guys.

Im currently scripting a tree object using AC21, I need to define 2d scripts for plan (default 2d scriptpage) section, and elevation.
It´ s no proplem doing the script for the plan view, as this is the default. But defining section and elevation views have become a challenge. I have tried:

IF GLOB_VIEW_TYPE = 4 THEN (Section)
2dscript..........
ENDIF

IF GLOB_VIEW_TYPE = 5 THEN (Elevation)
2dscript....
ENDIF

However viewing the model in Section and elevations Ac still sows a projection of the 3d model/script.

What am I missing here?

Any simple tips & tricks would be highly appreciated
_________________
ASUS NB. X550J i7-4720 HQ 2,6 GHz-. 8GB GEFORCE 950m GTX - Archicad 18-19-20-21

GDL Scripting the Following

$
0
0
Author:toman311
Posted: Wed Aug 16, 2017 4:36 pm (GMT+1)


I am trying to make a parametric door leaf that can be used in multiple projects. It's a custom cabinet door, but it will be saved as a custom door leaf. I attached a picture of the profile that I don't know how to GDL script. I am hoping someone on this website can explain to me how this would be possible. The goal is to model that profile and have it be parametric.

I have been drawing through GDL script to make my custom cabinet doors, but I don't know how to script this.
_________________
ArchiCAD 20, 4012 USA FULL
-Macintosh HD OS X Sierra, 3.2 GHz Intel Core i5, 8 GB Memory, NVIDIA GeForce GTX Graphics

Custom Railing

$
0
0
Author:rgarand
Posted: Wed Aug 16, 2017 8:01 pm (GMT+1)


See below...
_________________
Robert J. Garand
Dale Gardon Design
ArchiCAD USA 21-Build 3005 USA FULL
Windows 7 Prof (64 bit)
Intel i7-5820K CPU 3.30 GHz (32 GB RAM)
NVIDIA Quadro K4200 (4GB RAM)

Custom Railing

$
0
0
Author:rgarand
Posted: Wed Aug 16, 2017 8:04 pm (GMT+1)


Thanks for the input Barry. I was talking with Link Ellis this morning and he suggested the same and walked me through the process.

I was able to create a custom "post" and get it to work with the railing object. However, you can see in the screenshot, the corner post would need to be a custom post as well, which I did try, but was not able to rotate the corner post in the plan by 45 degrees.

I think this will work for my model since this is only showing something already built.

Thanks for your input!
_________________
Robert J. Garand
Dale Gardon Design
ArchiCAD USA 21-Build 3005 USA FULL
Windows 7 Prof (64 bit)
Intel i7-5820K CPU 3.30 GHz (32 GB RAM)
NVIDIA Quadro K4200 (4GB RAM)


New User - Window and Door Markers Won't Load!

$
0
0
Author:TKuvshinikov
Posted: Wed Aug 16, 2017 8:49 pm (GMT+1)


Good afternoon, everyone!
I recently added a new team member to our CAD department. We are currently using ArchiCAD16. We have loaded all previous migration libraries, but he is still having an issue with door and window markers not loading. Some of the windows just have text that says "custom" and the window size, even with all libraries loaded. I have tried every thing that I can think of, including copying and pasting from other projects.

How can I locate the missing door/window markers so that they show up?
_________________
Tonya Kuvshinikov

iMAC OS X 10.5.1 Leopard
2.8 GHz Intel Core 2 Duo
ArchiCAD 10

Global view dependent 2d scripts.. HOW?

$
0
0
Author:Barry Kelly
Posted: Thu Aug 17, 2017 2:23 am (GMT+1)


If you are placing the object in plan then there is no point scripting in the 2D script for sections and elevations.
These use the 3D script.
So you need to either place the object again in the elevation view (I think this might work but have not tested) or better do your 'if section/elevation' bit in the 3D script.

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

Custom Railing

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


Excellent. Very Happy
I assume the same can be done for the corner post but I haven't tried it myself.
Worst case scenario you will have a modelled corner post that you can place manually rather than through the railing tool.

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

New User - Window and Door Markers Won't Load!

$
0
0
Author:Barry Kelly
Posted: Thu Aug 17, 2017 2:37 am (GMT+1)


I don't think it is a problem of missing markers not loading in your libraries.
If that was the case they would report as "missing" in the library loading report and would appear as dots in the plan.
Sounds to me like the settings of the marker themselves are wrong.

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

New User - Window and Door Markers Won't Load!

$
0
0
Author:allanp
Posted: Thu Aug 17, 2017 7:07 am (GMT+1)


Hi,
If it was missing fills I would ask about "Renovation Filters", "Model View Options" and "Trace Reference",

Missing markers, I would ask about "Model View Options" and "Renovation Filters".

These have over rides in Archicad 16 that will Hide Window/Door Markers.

In Model View Options
look in
Document/Set Model View/ Model View Options

Options For Construction Elements
this has overrides for the markers for windows and doors
Chose a Model view option "Construction", that normally has the window/door markers showing.


In renovation Filters
look in
Document/Renovation/ Renovation Filter Options

There are options to "Hide Opening Dimension Markers"

if you just choose "06 Show All Elements" then the hide opening dimension markers is not turned on



I think this is more a "Working with Archicad" question if you don't have the the dots and/or missing library parts listed in the library manager .
_________________
____________
Allan P.
Archicad 4.55 to 21
GDL from Blocks to Nurbs
Apple from Mac Classic to iMac
Windows from 3.11 to Windows 10

Viewing all 3838 articles
Browse latest View live


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