September 4, 2017, 2:10 am
Author:
JGoode
Posted: Mon Sep 04, 2017 10:10 am (GMT+1)
Hi,
I have tried using the script given in the gdl guide but I can't seem to get it to work. Does anyone know how to make it work correctly?
Code: |
! --------------------------------------------------------------------------------
! Center
! --------------------------------------------------------------------------------
hotspot2 0, 0, unID, ang, 6 : unID = unID + 1
! --------------------------------------------------------------------------------
! Base
! --------------------------------------------------------------------------------
hotspot2 r, 0, unID, ang, 4 : unID = unID + 1
! --------------------------------------------------------------------------------
! Moving
! --------------------------------------------------------------------------------
hotspot2 r * COS(ang), r * SIN(ang), unID, ang, 5 : unID = unID + 1 |
I have created parameters for ang and R.
I really just need some explanation of the code. For some reason the angle increases when going anti-clockwise instead of clockwise. In 2D. The base does isn't position above at what should be 0 degrees.
_________________
ArchiCAD 17, 19 and 21
Windows 8
↧
September 4, 2017, 2:39 am
Author:
runxel
Posted: Mon Sep 04, 2017 10:39 am (GMT+1)
It would be necessary to completey redraw the element in the different view types.
That's what I mean with "additional work". It is more like a complete overhaul. ![Embarassed]()
There is a youtube video where a (spanish?) guy describes the method with the default 3D Archicad-car, so one could cut through it but still see it like it would be in elevation. Sadly it is unlocatable for me right now.
What kind of element do we even talk about here?
_________________
AC 20 | Mac 10.12 | Author of the GDL plugin for Sublime Text
↧
↧
September 4, 2017, 2:46 am
Author:
JGoode
Posted: Mon Sep 04, 2017 10:46 am (GMT+1)
Erwin Edel wrote: |
Well, I have used that parameter on some objects for different floorplan symbols. It grabs the type of view.
GLOB_VIEW_TYPE=4 is a section, GLOB_VIEW_TYPE=5 is an elevation. This still doesn't tell you much of how to rotate the object though, as elevations / sections rotation on the XY grid of floorplan is not something you can query AFAIK. I mean, typically steps of 90 degree rotation will get you there for most projects, but not every design is a nice 4 sided equal box of elevations.
Are these actual building elements or just things like shrubs and people? If it is a building element, I would guess it is easier and quicker to model it in 3D if you have floor plan and elevations of it. |
Unfortunately it's not a simple element as it is originally a 2D symbol. It needs to face the exact direction of the camera.
_________________
ArchiCAD 17, 19 and 21
Windows 8
↧
September 4, 2017, 3:00 am
Author:
JGoode
Posted: Mon Sep 04, 2017 11:00 am (GMT+1)
This is the symbol that I need to be displayed always facing towards the camera.
_________________
ArchiCAD 17, 19 and 21
Windows 8
↧
September 4, 2017, 4:01 am
Author:
Erwin Edel
Posted: Mon Sep 04, 2017 12:01 pm (GMT+1)
If I look at page 197 of the GDL Reference Guide in ArchiCAD 20, the diagram is quite clearly going counter clockwise, perhaps this is intended?
Edit: this is also how the angles work in ArchiCAD when drafting.
_________________
Erwin Edel, Project Lead, Leloup Architecten
www.leloup.nl
ArchiCAD 9-20 NED FULL
BIMx
Windows 10 Pro 1607 / OS X Sierra
Adobe Design Premium CS4
↧
↧
September 4, 2017, 4:08 am
Author:
Erwin Edel
Posted: Mon Sep 04, 2017 12:08 pm (GMT+1)
Hmm, maybe you could re-think this object as a label? Have some very minimal 3D presence (small box, crosshair), so it shows up in Section elevation and with a quick find & select you can select them and label them. Would work in floor plan too.
_________________
Erwin Edel, Project Lead, Leloup Architecten
www.leloup.nl
ArchiCAD 9-20 NED FULL
BIMx
Windows 10 Pro 1607 / OS X Sierra
Adobe Design Premium CS4
↧
September 4, 2017, 4:28 am
Author:
JGoode
Posted: Mon Sep 04, 2017 12:28 pm (GMT+1)
Erwin Edel wrote: |
If I look at page 197 of the GDL Reference Guide in ArchiCAD 20, the diagram is quite clearly going counter clockwise, perhaps this is intended?
Edit: this is also how the angles work in ArchiCAD when drafting. |
Seems very strange. I was having some other issues when changing the centre point of the rotation so I have had to keep it at 0, 0 which is inconvenient. Thanks for the help.
_________________
ArchiCAD 17, 19 and 21
Windows 8
↧
September 4, 2017, 4:38 am
Author:
JGoode
Posted: Mon Sep 04, 2017 12:38 pm (GMT+1)
Erwin Edel wrote: |
Hmm, maybe you could re-think this object as a label? Have some very minimal 3D presence (small box, crosshair), so it shows up in Section elevation and with a quick find & select you can select them and label them. Would work in floor plan too. |
This wouldn't really work with what we are trying achieve unfortunately.
_________________
ArchiCAD 17, 19 and 21
Windows 8
↧
September 4, 2017, 5:53 am
Author:
runxel
Posted: Mon Sep 04, 2017 1:53 pm (GMT+1)
But does it need to be shown in the 3D window as well?
_________________
AC 20 | Mac 10.12 | Author of the GDL plugin for Sublime Text
↧
↧
September 4, 2017, 6:17 am
Author:
JGoode
Posted: Mon Sep 04, 2017 2:17 pm (GMT+1)
It only needs to show in elevation/section and obviously in plan. The same thing needs to happen as if you were to place the 2D symbol on the elevation/section but it needs to display the ID that is put into the 2D symbol. Due to the fact they need to be scheduled, it's not much of an option to place each instance twice, both for elevation and plan.
_________________
ArchiCAD 17, 19 and 21
Windows 8
↧
September 4, 2017, 2:36 pm
Author:
Eric Bobrow
Posted: Mon Sep 04, 2017 10:36 pm (GMT+1)
In the standard ArchiCAD Library, some objects have preset Classifications, while others are unclassified. For example, the Precast Beam objects are set as a Beam in the Classification system.
See attached screenshot.
I know that it is possible to change this on the fly for any object, however I am sharing some project files that have been migrated into AC21 and want to make sure that I have preset both standard and custom library parts properly in terms of classifications.
I opened up the Library Part editor and assumed it would be set in much the same way that you can set default parameters, but can´
t see any information about classifications there.
I also looked in the GDL Reference manual and can´
t see any info about where this is set.
_________________
Eric Bobrow
Free ArchiCAD Tutorials
ArchiCAD Training
ArchiCAD Basic Training
ArchiCAD Template
↧
September 4, 2017, 5:44 pm
Author:
Barry Kelly
Posted: Tue Sep 05, 2017 1:44 am (GMT+1)
JGoode wrote: |
Seems very strange. I was having some other issues when changing the centre point of the rotation so I have had to keep it at 0, 0 which is inconvenient. Thanks for the help. |
All of the hotspots need to have the same base co-ordinates.
An easy way to do this is leave the base at 0,0 but put an ADD before the hotspots
i.e.
Code: |
ADD x, y
! Center
! --------------------------------------------------------------------------------
hotspot2 0, 0, unID, ang, 6 : unID = unID + 1
! --------------------------------------------------------------------------------
! Base
! --------------------------------------------------------------------------------
hotspot2 r, 0, unID, ang, 4 : unID = unID + 1
! --------------------------------------------------------------------------------
! Moving
! --------------------------------------------------------------------------------
hotspot2 r * COS(ang), r * SIN(ang), unID, ang, 5 : unID = unID + 1
DEL 1
|
or
Code: |
! Center
! --------------------------------------------------------------------------------
hotspot2 x+0, y+0, unID, ang, 6 : unID = unID + 1
! --------------------------------------------------------------------------------
! Base
! --------------------------------------------------------------------------------
hotspot2 x+r, y+0, unID, ang, 4 : unID = unID + 1
! --------------------------------------------------------------------------------
! Moving
! --------------------------------------------------------------------------------
hotspot2 x+r * COS(ang), y+r * SIN(ang), unID, ang, 5 : unID = unID + 1
|
Adding a flag value of 512 to the centre hotspot (type 6) will make it rotate in the opposite direction.
Barry.
_________________
Versions 6.5 to 21
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 7 64bit
↧
September 4, 2017, 5:50 pm
Author:
Barry Kelly
Posted: Tue Sep 05, 2017 1:50 am (GMT+1)
Just quickly (because I have to go and can't test) - does it come from the object sub-type in the GDL editor?
Barry.
_________________
Versions 6.5 to 21
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 7 64bit
↧
↧
September 4, 2017, 8:55 pm
Author:
Eric Bobrow
Posted: Tue Sep 05, 2017 4:55 am (GMT+1)
Hey Barry - I looked at object subtypes and didn't see anything that defined or selected a classification. I used the command Open Object by Subtype and selected Beam (for example) and it looks just like a normal object except for the checkbox in the Details section that says "Use as subtype". There's nothing that I can see that refers to a classification.
As an extra test, I saved a Precast Beam object as a new Object in the Embedded Library, and changed the subtype to Column. When I opened up the Object Settings, this new object still knew that it was a Beam; it did not change to be classified as a Column, so it was not affected by the Subtype.
BTW, when I search for and choose an object that is clearly a column, for example Column Doric 01 21, it has the classification Column as expected. So there MUST be something in the library part definition that remembers the classification, I just can't see it...
_________________
Eric Bobrow
Free ArchiCAD Tutorials
ArchiCAD Training
ArchiCAD Basic Training
ArchiCAD Template
↧
September 4, 2017, 9:18 pm
Author:
Eric Bobrow
Posted: Tue Sep 05, 2017 5:18 am (GMT+1)
Update - it appears that the subtype does control the new object. At first, when I opened up the object settings for the new beam object that I set to use the Column subtype, it still showed Beam as the classification. However after I switched the object settings and selected other elements, then came back to this new object, it "correctly" showed Column (matching the arbitrary subtype I had chosen).
I did some more web research and found some references to this in the IFC documentation:
https://helpcenter.graphisoft.com/guides/archicad-20/archicad-20-reference-guide/interoperability/archicad_file_types_opened_by_archicad/file_types/working_with_ifc_data/
Here is a relevant excerpt:
In the case of Objects, if it has a Subtype (for example, an Object having a Column-subtype), that subtype will map the Element Classification and thus the IFC Type. For example: "
Column"
Subtype sets "
Column"
Element Classification and thus "
IfcColumn"
IFC Type.
The article refers to "default Subtype-Element Classification mapping" but doesn't say where this is controlled, or even if there is a mapping table that can be viewed or printed.
I found one more reference to this system in the following document:
https://helpcenter.graphisoft.com/tips/open-bim/63135-2/
I haven't seen anything based on AC21, so I don't know if there are any changes with the advent of the Classification Manager and the additional options for multiple classifications to meet different standards.
_________________
Eric Bobrow
Free ArchiCAD Tutorials
ArchiCAD Training
ArchiCAD Basic Training
ArchiCAD Template
↧
September 5, 2017, 1:07 am
Author:
JGoode
Posted: Tue Sep 05, 2017 9:07 am (GMT+1)
Barry Kelly wrote: |
JGoode wrote: | Seems very strange. I was having some other issues when changing the centre point of the rotation so I have had to keep it at 0, 0 which is inconvenient. Thanks for the help. |
All of the hotspots need to have the same base co-ordinates.
An easy way to do this is leave the base at 0,0 but put an ADD before the hotspots
i.e.
Code: | ADD x, y
! Center
! --------------------------------------------------------------------------------
hotspot2 0, 0, unID, ang, 6 : unID = unID + 1
! --------------------------------------------------------------------------------
! Base
! --------------------------------------------------------------------------------
hotspot2 r, 0, unID, ang, 4 : unID = unID + 1
! --------------------------------------------------------------------------------
! Moving
! --------------------------------------------------------------------------------
hotspot2 r * COS(ang), r * SIN(ang), unID, ang, 5 : unID = unID + 1
DEL 1
|
or
Code: | ! Center
! --------------------------------------------------------------------------------
hotspot2 x+0, y+0, unID, ang, 6 : unID = unID + 1
! --------------------------------------------------------------------------------
! Base
! --------------------------------------------------------------------------------
hotspot2 x+r, y+0, unID, ang, 4 : unID = unID + 1
! --------------------------------------------------------------------------------
! Moving
! --------------------------------------------------------------------------------
hotspot2 x+r * COS(ang), y+r * SIN(ang), unID, ang, 5 : unID = unID + 1
|
Adding a flag value of 512 to the centre hotspot (type 6) will make it rotate in the opposite direction.
Barry. |
Thanks very much. This is very useful.
_________________
ArchiCAD 17, 19 and 21
Windows 8
↧
September 5, 2017, 8:12 am
Author:
KeriP
Posted: Tue Sep 05, 2017 4:12 pm (GMT+1)
Hello,
I'm using Archicad 20 and attempting to build a bit of an unusual model. In theory it is a circular cabin with 12 equal sides at ground level and 6 equal sides at eaves level. Made out of triangular and trapezoidal panels; the trapezoidal panels are vertical whilst the triangular panels are at 18 degrees to allow the edges to meet- please see my sketch model segment and element below.
My question is how do I make these wall panel elements in archicad???
Thank you for all of your expertise in advance and apologies if I have not included enough information.
Keri
↧
↧
September 5, 2017, 12:46 pm
↧
September 5, 2017, 12:54 pm
Author:
Erich
Posted: Tue Sep 05, 2017 8:54 pm (GMT+1)
Does anyone know if it is possible, and if so how, to extract an image that is embedded in a library part? The current AC materials appear to be embedded in .gsm files and I would like to modify one to fit my current needs. We used to be able to just grab the .jpg file but no longer it seems.
_________________
Erich
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
↧
September 5, 2017, 1:11 pm
Author:
Erich
Posted: Tue Sep 05, 2017 9:11 pm (GMT+1)
Never mind. I found it. In the Surface Catalog.lcf there is a folder named [TImg] Textures xx (xx is the version number) where the image files live.
_________________
Erich
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
↧