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

GDL Scripting the Following

$
0
0
Author:toman311
Posted: Mon Aug 28, 2017 5:16 pm (GMT+1)


I have been trying to figure out how to do what I am trying to do with the TUBE tool. TUBE is very confusing. I can't seem to figure out what the path points represent. I got the shape I wanted from the TUBE tool with trial and error, but I need to make the shape parametric. So, I am confused on that since I don't really understand how the TUBE tool script works. It appears to me that I am struggling with the path of the TUBE and not the polyline profile. Of course, I could be wrong and maybe I drew the profile wrong.

Do you, or anyone, have any enlightenment for me with regards to the TUBE tool? It's really upsetting that I can't figure it out!
_________________
ArchiCAD 20, 4012 USA FULL
-Macintosh HD OS X Sierra, 3.2 GHz Intel Core i5, 8 GB Memory, NVIDIA GeForce GTX Graphics


GDL Scripting the Following

$
0
0
Author:sinceV6
Posted: Mon Aug 28, 2017 7:57 pm (GMT+1)


Hi.

Play with this in a new object and paste in 3D script:

Code:

x=1
y=2
status=3

!array of points and status info
DIM pt[][]
pt[1][x]=0
pt[1][y]=0
pt[1][status]=0

pt[2][x]= -0.1            !<-- play with this value, positive and negative values.
pt[2][y]=0
pt[2][status]=0

pt[3][x]=0
pt[3][y]=0.1
pt[3][status]=0

PUT pt

TUBE 3,                  !<-- cross shape # of nodes
8,                     !<-- path nodes + 2 tangent nodes
1+2+16,                  !<-- mask, this example includes edges to see where path starts and ends

GET(nsp),
!!!pt[1][x],pt[1][y],0,    !<-- these are the points passed through PUT/GET, values were stored in array
!!!pt[2][x],pt[2][y],0,
!!!pt[3][x],pt[3][y],0,

0,0,0,0,               !<-- orientation node for first path surface, used 0,0
A/2,0,0,0,               !<-- first path node, begins at A/2, look 3D to see this
A,0,0,0,
A,B,0,0,
0,B,0,0,
0,0,0,0,
A/2,0,0,0,               !<-- last path node
A,-B,0,0               !<-- end orientation node. Defines orientation of last face, replace (-B) with 0 to see how it changes shape

LIN_ A/2,0,0, A,-B,0      !<-- just a line to indicate how the last orientation node is defined here. This is NOT the normal of the last face,
                     !--- but the face that would generate if the path continued that way. A bisector face, in essence.



Hope that helps you understand a bit. Read the GDL documentation. But actually read it... I'm talking about those deep plunge reads that need to be done to completely understand technical text. I can say that the docs are really good, but too technically accurate and not very every-day-user friendly Laughing They need 110% attention to understand thoroughly.

Best regards.

2D tree elevation problem

$
0
0
Author:Erick Thomas
Posted: Tue Aug 29, 2017 2:37 pm (GMT+1)


Hi everyone,

I'm having problems with the 2D trees included in the library. In plan they work fine but in elevation it just appears a black box for each tree. Does anyone know why this happens?
_________________
THA Arkitekter AS
AC 20

2D tree elevation problem

$
0
0
Author:JGoode
Posted: Tue Aug 29, 2017 2:53 pm (GMT+1)


Erick Thomas wrote:
Hi everyone,

I'm having problems with the 2D trees included in the library. In plan they work fine but in elevation it just appears a black box for each tree. Does anyone know why this happens?
Hello, which tree object is it? What is the name of the object?

2D tree elevation problem

$
0
0
Author:JGoode
Posted: Tue Aug 29, 2017 2:57 pm (GMT+1)


Erick Thomas wrote:
Hi everyone,

I'm having problems with the 2D trees included in the library. In plan they work fine but in elevation it just appears a black box for each tree. Does anyone know why this happens?
Hi again, I just had a look and none of the trees appear to work in 3D for me either in any of the options! No idea why this is happening.

2D tree elevation problem

$
0
0
Author:Erick Thomas
Posted: Tue Aug 29, 2017 2:57 pm (GMT+1)


It's Furutræ r (in norwegian), but it's the same as "pine trees" object that comes as standard in archicad
_________________
THA Arkitekter AS
AC 20

2D tree elevation problem

$
0
0
Author:JGoode
Posted: Tue Aug 29, 2017 3:12 pm (GMT+1)


Erick Thomas wrote:
It's Furutræ r (in norwegian), but it's the same as "pine trees" object that comes as standard in archicad
I see now. It isn't actually a 3D tree. It's just a 3D block with a custom image of the tree on it therefore it won't show in elevation. Very bizarre.

I'd recommend using the Tree Model objects. The detailed version is very slow to use.

Drawing Scale to TITLE OBJECT

$
0
0
Author:vfrontiers
Posted: Tue Aug 29, 2017 6:05 pm (GMT+1)


I cannot find the glob parameter that tells my TITLE OBJECT what scale the DRAWING it is linked to is...

AC_DrawingSCALE seems to be the STRING form, but I need the number form that will allow me to code my own GRAPHIC SCALE into a title object.

GLOB_SCALE is the scale of the TITLE OBJECT itself (1:1)

I see in GS's code for their graphic scale some gyrations of IF TextScale = 'X" then the the NumberScale = "Y"... really?

Anyone?
_________________
Duane
Visual Frontiers
AC21 3005 Neutral:ArtlantisStudio4.1-64:|:GarageBand
27" iMac|2.9ghz|32gbRAM:|:OsX10.11
PC Laptop-i7:|:8gbRAM:|:Win7-64


2D tree elevation problem

$
0
0
Author:Erick Thomas
Posted: Tue Aug 29, 2017 8:14 pm (GMT+1)


Yes JGoode, but the object shows the posibility of set up the elevations also. Anyone from Graphisoft maybe knows what to do?
_________________
THA Arkitekter AS
AC 20

2D tree elevation problem

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


That particular object is a 'billboard' style object which is why you see the board only in elevation.
If you view it in 3D (OpenGL) or do a render you will see the tree.
Elevations can't show the OpenGL images.

The elevation setting you have found will allow you to place the tree object in the elevation itself rather than the plan.

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

Drawing Scale to TITLE OBJECT

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


hhhhhmmmm,
interesting problem

have you tried.....

Scale_Text_Line = AC_DrawingScale
nn = SPLIT (Scale_Text_Line, "%n:%n", num1, colon2,num3)
if nn > 0 then
text2 0,0, num3
if num3 > 50 then
text2 0,0.005, "Greater than 1 to 50"
endif
endif
_________________
____________
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

Model View Options help needed.

$
0
0
Author:JGoode
Posted: Wed Aug 30, 2017 10:49 am (GMT+1)


Hello,
I have a 2D object which contains image fills. The issue I am having is that certain model view options cause the fills to turn off. How do I get my object to ignore the model view options? There is never an instance where I do not want the fills of the object to show.
Thanks very much.

Model View Options help needed.

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


You can't adjust the object to ignore MVO.
You need to make sure that all your MVO combinations are "Stored As..." to update themselves with the correct fill options selected.

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

Model View Options help needed.

$
0
0
Author:JGoode
Posted: Wed Aug 30, 2017 11:03 am (GMT+1)


Barry Kelly wrote:
You can't adjust the object to ignore MVO.
You need to make sure that all your MVO combinations are "Stored As..." to update themselves with the correct fill options selected.

Barry.


How do the doors work when you can set them to ignore the MVO? The issue is that there are instances when the object is used when all of the fills are overridden in the MVO's and therefore the fill will not appear correctly.

Model View Options help needed.

$
0
0
Author:Barry Kelly
Posted: Wed Aug 30, 2017 11:18 am (GMT+1)


Sorry I was thinking of the fill options in MVO which are now Graphic Override options.

Can you show me a screen shot of the option in the MVO that turns the image fills on or off?

If it is a GDL object option in the MVO settings then it is possible to add a Boolean parameter in the object to allow it to use the MVO settings or not.
You need to stop the object from looking at the Library Global parameters.

I have to go now but can come back later with some more info.

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


Model View Options help needed.

$
0
0
Author:JGoode
Posted: Wed Aug 30, 2017 11:30 am (GMT+1)


Barry Kelly wrote:
Sorry I was thinking of the fill options in MVO which are now Graphic Override options.

Can you show me a screen shot of the option in the MVO that turns the image fills on or off?

If it is a GDL object option in the MVO settings then it is possible to add a Boolean parameter in the object to allow it to use the MVO settings or not.
You need to stop the object from looking at the Library Global parameters.

I have to go now but can come back later with some more info.

Barry.
The options are in the Fill Display Override tab of the MVO settings. If they have all been overridden then the fill does not show.

Thanks

Define Image Fill HELP!?

$
0
0
Author:JGoode
Posted: Wed Aug 30, 2017 12:44 pm (GMT+1)


Still having problems with this. For some reason I get a dashed line across my 2D object. Even though in my object I set everything to 255, the "Screen-only Pattern" in the Element Attributes section isn't full. I can't workout why this is. No Idea why. Even on some of my other fills even though they appear as solid in both plan and in the "Screen-only Pattern" the preview shows a dashed line. It isn't a big problem as they appear as solid in the actual plan view but it's a bit confusing in the preview. The image fill doesn't actually show in the preview either for some reason however it shows the dashed line that develops from it.

Code:
define image_fill 'black'"Black_Image_Fill",
        255, 255, 255, 255, 255, 255, 255, 255,
        0.001, 0.001, 0, 0



EDIT: No dashed line however, the image fill does not appear in the preview.

EDIT:
Code:
      FILL "red"
      poly2_b{5}      12,      3,      0,      3,     220,    220,
                     0,            0,            1,            0,            0,            1,            0,
            0.003011396909279, -0.012,      0,
            0.008011396909279, -0.012,    900,
                     0,          180,   4000,
            0.008011396909279, -0.012,    900,
                     0,          180,   4000,
            0.003011396909279, -0.012,     -1,
            0.01201139690928, -0.012,      0,
            0.008011396909279, -0.012,    900,
                     0,         -180,   4000,
            0.008011396909279, -0.012,    900,
                     0,         -180,   4000,
            0.01201139690928, -0.012,     0
This bit of code shows the intended image fill (FILL "red") on plan but only shows "220" which is an archicad red in every preview. It's very odd.

Drawing Scale to TITLE OBJECT

$
0
0
Author:vfrontiers
Posted: Wed Aug 30, 2017 6:38 pm (GMT+1)


So... I've wasted enough time on this... unfortunately the AC_drawingScale is formatted the same as the old <drawingscale>.. so it returns a value like...

1/4" = 1'-0"

Using an extrapolated version of your SPLIT, I can get the num1 to equal the 1/4", but can't use it in an equation (so I can't multiply it by metric conversion, etc)...

Also, If have a scale that's ENGINEERING, I have to reverse SPLIT and use the Num3...

Seems like ArchiCAD knows what this number is (as a pure multiplier (1:4Cool)... so it just shouldn't be this tough...

Thanks for the direction... but I still can't make it work.
_________________
Duane
Visual Frontiers
AC21 3005 Neutral:ArtlantisStudio4.1-64:|:GarageBand
27" iMac|2.9ghz|32gbRAM:|:OsX10.11
PC Laptop-i7:|:8gbRAM:|:Win7-64

Drawing Scale to TITLE OBJECT

$
0
0
Author:vfrontiers
Posted: Wed Aug 30, 2017 6:39 pm (GMT+1)


... so for now, i am just typing in the FACTOR (into a manual parameter) so it works, but potential for coordination looms large.
_________________
Duane
Visual Frontiers
AC21 3005 Neutral:ArtlantisStudio4.1-64:|:GarageBand
27" iMac|2.9ghz|32gbRAM:|:OsX10.11
PC Laptop-i7:|:8gbRAM:|:Win7-64

Model View Options help needed.

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


Sorry I wasn't able to get back to you last night.
These fill settings are global for all elements and control the display of the fills.
I don't think it is possible to control or ignore these settings in GDL.

Anything in the 'Options for GDL Objects' can be controlled which is where you will find the options for doors and windows.

So your best option is to make sure these fill settings are set correctly for each of the MVO combinations you use.

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

Viewing all 3838 articles
Browse latest View live


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