License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

CALL function.

alemanda
Advocate
Hi to all.
I'd like to have some 2d parts (texts in particular) to be added automatically in the sections of 3D elements without adding manually another object to do that.
Imagine to have the section of a stair and I want to add the numbering of the raisers ...
Of course I don't want to use 3D texts ...
Is there a way to use the CALL function in the 3D script in order to get what I want. In fact my idea is to use the CALL function to insert automatically an other object (as a macro) passing to it the related useful parameters ...
I tried without results ...
Does anybody have some suggestions to do that?
Thnaks

2d parts into the sect-elev window.png
AC27 latest hotfix

Win 10 Pro 64bit

Double XEON 14 CORES (tot 28 physical cores)

32GB RAM - SSD 256GB - Nvidia Quadro K620

Display DELL 25'' 2560x1440

www.almadw.it
6 REPLIES 6
Anonymous
Not applicable
You need to use 3D text for this. The only reason to use the CALL function is if you want to put the code in an external macro. The main reason for this would be if you want other parts to use the same macro and only want to write it once (rather than copy/paste).

Rather than the CALL function you can use GOSUB if you need to use the same code repeatedly.

If you only want the text to show in elevations you can use:

IF GLOB_CONTEXT = 4 THEN
!
! 3D text script here
!
ENDIF

The problem with this is that AFAIK there is no way to tell what direction the elevation is being viewed from, so when elevating the stair from the front you will see the text on edge.
alemanda
Advocate
..mmm
Otherwise I have to add manually the object, the same object, in the section elevation window picking, before adding the object, the properties ...
this is what I want to do automatically ...
If use 3D text there's a problem ... in fact, if the section line is over the 3D text, nothing will be shown ... and moreover the text will scale independent ...
AC27 latest hotfix

Win 10 Pro 64bit

Double XEON 14 CORES (tot 28 physical cores)

32GB RAM - SSD 256GB - Nvidia Quadro K620

Display DELL 25'' 2560x1440

www.almadw.it
Anonymous
Not applicable
alemanda wrote:
..mmm
Otherwise I have to add manually the object, the same object, in the section elevation window picking, before adding the object, the properties ...
this is what I want to do automatically ...
If use 3D text there's a problem ... in fact, if the section line is over the 3D text, nothing will be shown ... and moreover the text will scale independent ...
You can make the location of the text adjustable so it is visible in the section, and I'm pretty sure you can use GLOB_SCALE to adjust the size to the scale of the elevation. If the stair is against a wall you could embed the text so it is not visible from the other direction.

Another approach would be to make a label to attach to the stair in elevation that would place the text for you. It's not fully automatic but how often do you really need to do this?
alemanda
Advocate
Yes!
The label! I didn't think about it. It's almost full automatic ... I mean, is suffcient you enable the auto label and that's it!
I'm worried about the origin of the label ...
I will try.
Thank you.
AC27 latest hotfix

Win 10 Pro 64bit

Double XEON 14 CORES (tot 28 physical cores)

32GB RAM - SSD 256GB - Nvidia Quadro K620

Display DELL 25'' 2560x1440

www.almadw.it
Anonymous
Not applicable
alemanda wrote:
I'm worried about the origin of the label ...
The label origin can be quite a tricky thing to sort out. Read the globals carefully and try some test code to see where the origins and symbol arrow points are. As I recall you need to do a transformation to zero out the arrow offset but it's been a while.
alemanda
Advocate
Last suggestion ...
If I write a label specifically customized for a particular obejct the correct function to have the parameters used in that object is "REQUEST ("ASSOCLP_PARVALUE", expr, name_or_index, type, flags, dim1, dim2, p_values)"
Is it correct?
AC27 latest hotfix

Win 10 Pro 64bit

Double XEON 14 CORES (tot 28 physical cores)

32GB RAM - SSD 256GB - Nvidia Quadro K620

Display DELL 25'' 2560x1440

www.almadw.it