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

Reading Autotext

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


derekjackson wrote:
Are Drawing Title objects used / placed differently?


They can only be placed as a Title to a Drawing on a Layout sheet.

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: Tue Jan 17, 2017 3:27 pm (GMT+1)


Thanks David - I wasn't even aware that the title of a drawing could be an object.

The code works great.

Unfortunately we're after something we can place on our Master Layouts before any drawings have been created, so this won't help.

Thanks for the input anyway people - I guess we need to write this off as unachievable at the minute!

A useful bit of R&D though Smile
_________________
www.lsiarchitects.co.uk
www.djillustration.com

AC17 / 19 / 20

Windows 7 Intel Xeon 18Gb

Reading Autotext

$
0
0
Author:Erwin Edel
Posted: Tue Jan 17, 2017 3:29 pm (GMT+1)


Have you tried putting the object on a worksheet, saving a view of that and putting that view on the (master) layout. As I wrote before, this works fine for us with autotext picking up information about scale and such.
_________________
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

2D GDL-object with top/front/side view option

$
0
0
Author:Joeyjojo
Posted: Tue Jan 17, 2017 5:57 pm (GMT+1)


Hello ArchiCAD friends!

I need your help with some GDL-scripting. My task is to prepare a library with all objects that we use in the office- we work exclusively in 2D and the idea is to create loads of 2D objects with three views (top, front and side), exactly like the 2D car drawings in the ArchiCAD Library.

I found some threads (more or less) explaining the process- I need to have all three views in 2D Symbol window, on different object-layers, then use FRAGMENT2 command. I looked into existing 2D objects that have top/front/side view option and tried copying the script, but nothing worked so far. I've never learned coding before and I thought I could just figure out the part that I need without diving in too deep... noooooope. Is there an easy way to fix it or some universal script I could use?

I'll attach a screenshot of the parameters of my object. The script is untouched, because when I change it, it just messes up the whole thing. I added the front view to 2D Symbol.


I work in ArchiCAD 19, full German version.
iOS X El Capitan 10.11.3
iMac (Retina 5K, 27 Zoll, Ende 2015)
4 GHz Intel Core i7
16 GB 1867 MHz DDR3
AMD Radeon R9 M395X 4096 MB

This is the first time I post on the forum, because for years you guys were helping me fix any problem I had. Thank you!

Door custom knob missing

$
0
0
Author:drexdis
Posted: Tue Jan 17, 2017 9:50 pm (GMT+1)


Upgraded to archicad 20 and now it's ok. No more headache. Thanks
_________________
Archicad 20 INT
Windows 7 64 bit

Including subobjects settings as separate settings

$
0
0
Author:jacobidiego
Posted: Wed Jan 18, 2017 1:53 am (GMT+1)


Hi there,
I would like to include a separated settings dialog for the objects instantiated by the Layout class.

as a Reference the Grid Assistant has a checkbox and a settings button for each object that it instantiates.

Is it possible to define an object as an object's Parameter ?

For example, in the case of a Table layout, the Table, and the Chairs, should be defined as parameters in the Layout object. The Layout object settings, should only define, layouting parameters, while the Chair object settings should define its size and material definitions.

2D GDL-object with top/front/side view option

$
0
0
Author:Piotr Dobrowolski
Posted: Wed Jan 18, 2017 6:04 am (GMT+1)


Set a parameter:

"view_select" and make it integer

You will have 3 options o f it


than:

in the parameter script use the command:

Code:
 values{2} "view_select"    1, "View 1", 2, "View 2", 2, "View 3"


(You can customize the "" sections with the friendly names of Your views)

than in the 2D script

You have to put 3 conditional jumps:

Quote:
if view_select=1 then fragment2 1,0
if view_select=2 then fragment2 2,0
if view_select=3 then fragment2 3,0


You have to have the content of the view 1 on the "1" layer in the 2d symbol and so on.
the the second "0" in the commands makes the showing content as drawn in the 2d symbol - you can also have there "1" but in this case You would have to define the attributes in the script (pen/line type/ fill type)

But when saving the object from the 2d You have the script generated in the object so You would need to deal with the scripts and would be more complex to, so for the starters just paste the 2d You need to the 2d symbol rather than save the object from plan.

Best Regards,
Piotr

2D GDL-object with top/front/side view option

$
0
0
Author:Joeyjojo
Posted: Wed Jan 18, 2017 11:43 am (GMT+1)


Dziekuje za odpowiedz, Piotr! Smile

I'll stick to english, so someone else can find an answer to this question one day.

Thank you for the answer and for all the instructions, but I'm going to need some extra tips, as I'm new to this area of ArchiCAD.

1. I create a new parameter in the Parameter window and name it view_select in the 'Variable' cell, right? Then I put a number in the 'Wert' cell, for example 1? Or 3?

2. When using the commands in the script windows, do I just copy what you posted, or do I need to add some magic words like 'end' or '!'? Should I paste the commands somewhere specific (at the beginning/end of the text in the script window)?

A step-by-step instruction would be very very helpful, thanks again!


2D GDL-object with top/front/side view option

$
0
0
Author:David Maudlin
Posted: Wed Jan 18, 2017 1:50 pm (GMT+1)


Joeyjojo wrote:
1. I create a new parameter in the Parameter window and name it view_select in the 'Variable' cell, right? Then I put a number in the 'Wert' cell, for example 1? Or 3?

For this parameter as Piotr described it, the "Typ" (Type) should be changed from Length to Integer so it accepts only integer numbers.

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

2D GDL-object with top/front/side view option

$
0
0
Author:Piotr Dobrowolski
Posted: Wed Jan 18, 2017 6:10 pm (GMT+1)


i made a mistake (last 2 has to be 3) the below is good:

Code:
 values{2} "view_select"    1, "View 1", 2, "View 2", 3, "View 3"


here is the example object for You the 1,2,3 digits in the 2d symbol chenge to your real content Smile

Best Regards,
Piotr

Cantera Stone Wrap

$
0
0
Author:Isaac G Strong
Posted: Wed Jan 18, 2017 11:43 pm (GMT+1)


I tired a few of these out, they all work! Thank you! ArchiCAD has an awesome community that's for sure!
_________________
AC 20 - Windows 10
Intel i7-5820k CPU @ 3.30GHz
NVIDIA GeForce GTX 960
DDR4 Ram 32

UI_BUTTON problem

$
0
0
Author:LGreen
Posted: Thu Jan 19, 2017 12:16 am (GMT+1)


Hi Jrantala,

This happens because the parameter script can be run multiple times, thus resulting in the calculation occurring twice or more. I had this exact problem last year and it's a simple solution. Here is the topic I started. It has a working object in my last reply. Essentially you need to insert the code below from Michael Rensing (Found in this topic) which only runs part of the script if it is the first time the script is being run.

Michael Rensing wrote:

This should do it.
Quote:
Code:

n = APPLICATION_QUERY ("PARAMETER_SCRIPT", "FIRSTOCCASION_IN_PROGRESS", isFirstRun)
IF isFirstRun THEN
A=A+1
ELSE
A=A
ENDIF


_________________
Lachlan Green | Architect
Fulton Trotter Architects
AC18-20 | Windows 7 Dual 27" | 3.07GHz | 32GB RAM

Surface Label 20 - Split label with identifier

$
0
0
Author:hfs55
Posted: Thu Jan 19, 2017 3:10 am (GMT+1)


does anyone know how to edit the Surface Label 20 to provide an option to show before or after an identifier? For Example

Full Surface Name in the format code-description, i.e. CT01-300x300 Ceramic Tile Grey

So you could label the surface with the code, the description or both.

code: CT01
description: 300x300 Ceramic Tile Grey
both: CT01-300x300 Ceramic Tile Grey

The only code I have that does this is below, but I can't figure out how to add it to the Surface Label 20.

Code:
   !======split
len = STRLEN (string)
iDotPos = STRSTR (string, sep)
code = STRSUB (string, 1, iDotPos - 1)
mat = STRSUB (string, iDotPos+1, len-iDotPos)!material

if display_txt = 'code' and code<>"" then
string=code
endif

if display_txt = 'mat' then
string=mat
endif


Any help with this would be greatly appreciated. The aim of this functionality would let one tag materials like a keynote tool but a lot simpler and more integrated into archicad.
_________________
osx 10.9.5 AC18

2D GDL-object with top/front/side view option

$
0
0
Author:Joeyjojo
Posted: Thu Jan 19, 2017 10:27 am (GMT+1)


Wow guys, I think it worked!

The GDL-script is ok, no errors; another problem occurred though: the library doesn't let me change the views, of any object with multiple views (be it my object, Piotr's or even the original ArchiCAD car 2d object!). I'll try to open them at home with my student version, but it's all very very strange...

Piotr, thank you so much for building an object for me! It helped so much Smile Pozdrowienia z Berlina, mam nadzieje, ze u Was pogoda ladniejsza!

Editing 2D objects changes their proportion

$
0
0
Author:CNicolini
Posted: Thu Jan 19, 2017 12:30 pm (GMT+1)


Hi everyone,

I'm trying to use Archicad objects as 2D symbols, that is, when I modify one instance of it, the changes will propagate to all other instances (same as blocks in autocad or symbols in vectorworks).
The problem I'm having is as soon as I modify the object in a way its overall encompassing shape (bounding box) gets bigger or smaller, the updated instances keep the previous overall shape and the object gets distorted on its proportions.
Is there a way to avoid that? Perhaps on the GDL editing dialogue? I've played with the parameters but it didn't really work.

Many thanks in advance.
_________________
Archicad 20 - Build 4020 UKI - Win8 64bits - I7 4790 - 24Gb RAM - 2 x Nvidia GTX970 - 256 Gb SSD Plextor


How to Migrate a project from Archicad 9?

$
0
0
Author:rob2218
Posted: Thu Jan 19, 2017 7:46 pm (GMT+1)


I have this project I'm in need of bringing up to speed.
How best to migrate it from Archicad 9?
I've tried to open the PLN, yet it doesn't give me the "migrate" option?
Please help.
_________________
...Bobby Hollywood live from...
i>u
Los Angeles, CALIFORNIA!
SOFTWARE VERSION:
Archicad17, Archicad 18
Windows7 -OS, MAC Maverick OS

2D GDL-object with top/front/side view option

$
0
0
Author:Joeyjojo
Posted: Thu Jan 19, 2017 7:51 pm (GMT+1)


It worked!!! Thank you Piotr and David, you made me a true hacker. Now I'm going to impress the whole office Smile

2D GDL-object with top/front/side view option

$
0
0
Author:Piotr Dobrowolski
Posted: Thu Jan 19, 2017 11:20 pm (GMT+1)


Contrgarts, Welcome to the club Razz

Best Regards,
Piotr

How to Migrate a project from Archicad 9?

$
0
0
Author:Piotr Dobrowolski
Posted: Thu Jan 19, 2017 11:27 pm (GMT+1)


Unfortunately the migration libs end on ver 10...

However: You may open the project with all migration libs and 9.0 library as well. There will be duplicates probably. Then You have to change the all lib parts used in the project to the current ones or if impossible to the as new as possible migration parts. You have to use the syringe inside lib part browser and select the possible upgrading objects. Even with the working migration it is the best way to cleanup the project (if there is a time or manpower to conduct). For more automating the process - the favorites can of course help for frequently used elements.

Best regards,
Piotr

Birds objects

Viewing all 3838 articles
Browse latest View live