The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

GDL language and objects, API, Add-ons, Script…

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, gkmethy

What's your opinion about this wish?

Essential (5)
2
29%
Important (4)
2
29%
Average (3)
1
14%
Not important (2)
No votes
0%
Not needed (1)
2
29%
By Vitruvius
#12569
I would like to see this command modified such that the top view

PROJECT2 3,270,2, [cut section through object at this height]

had an additional parameter to chop it off at a predetermined height above its origin. Think of it, no more goofing around with the 2D symbol scripting if you want to produce a really fast and simple GDL object. I waste so much time in virtually duplicate work making a parametric 2D representation match the 3D parametrics.

It could be used for doors, windows, and any special construction element which you'd like to truncate at 1200mm (or wherever) for the plan representation.
User avatar
By Matthew Lohden
#12570
This already exists.

In 3D script:

IF GLOB_CONTEXT = 2
addz plan_cut_height
CUTPLANE
del 1
ENDIF

!!! do the 3D things

IF GLOB_CONTEXT = 2
CUTEND
ENDIF

Remember that Project2 is just a view of the 3D.
User avatar
By Geoffroy Magnan
#12573
I would like to see this command modified such that the top view

PROJECT2 3,270,2, [cut section through object at this height]
What I'm really missing is another parameter : show in dashed lines the trace of the elements above the cutplane.
User avatar
By Matthew Lohden
#12591
What I'm really missing is another parameter : show in dashed lines the trace of the elements above the cutplane.
This would be great. It could be accomplished simply by allowing the 2D script to define the line type to be used to draw the 3D projection. This shouldn't be too difficult since there is now the possibility to define a fill for it.

Attached is an example of what SHOULD be EASILY done. Instead I had to hand code the cut lines, fill and overhead projection. The part is a sheer leg that extended through several stories.

(BTW: Sorry about the earlier WIDE image. I didn't expect it would widen the entire window :oops: )
Attachments
Sheer Leg Example.png
Last edited by Matthew Lohden on Tue Apr 20, 2004 8:25 pm, edited 2 times in total.
User avatar
By Djordje
#12624
This already exists.
Hm, yes ...

AND, in the script you should add the cutpolane always relative to the current storey, so that, for example, steel frames of variable section show the right section at each storey, regardless of the fact that the object itslef is placed on the storey 0 (1).

Mix this with dashes for the part from above ...
User avatar
By Geoffroy Magnan
#12651
This would be great. It could be accomplished simply by allowing the 2D script to define the line type to be used to draw the 3D projection.
The problem if we use the workaround of cuting once above, once below, is that AC would have to do two 3D projections to get the resulting image (the one drawn in plain lines, and the one drawn in dashed lines)...
User avatar
By Lingwisyer
#287624
The issue I have found with using a Cutplane on a Project2 is that you do not get a cut fill...



Ling.
User avatar
By dkovacs
#287895
Hello Everyone,

Actually, that already exists! PROJECT2 has 4 versions by now ( PROJECT2 - PROJECT2{4} ), each a little more enhanced than the other. The latest version, PROJECT2{4} is specifically designed to give the user control over cutting planes and different displays between them. Of course this can be used with a single horizontal cutting plane, and a different display setting above and below this plane (and of course the cut surface).

Here's a guide for how to use it:
http://gdl.graphisoft.com/tips-and-tric ... 24-command

If you just set one cut plane to any height, and then set the masks and modifiers to display things below visible, and above with hidden lines (wireframe), then it gets the job done. At first it might seem a little complicated, but you only have to set it up once, and you can just copy it to any of your objects. With the right globals and requests you can also set it to be aware of cut plane and story height!

Regards,
User avatar
By Lingwisyer
#287949
Hm... I initially tried using Project2{4} but it was not creating a cutplane, so given the example, I assumed it only created contours. My outcome was the same as when I used Project2{3}... Though I guess that does not explain the fills in the command... I will try it again.

viewtopic.php?f=6&t=62584



Ling.