Smartpart: absolute and relative coordinates


Hi everybody,

We want to program a SmartPart with text and absolute coordinates. We know that it can be done using "Label Styles" (Beschriftungsbild), but is much more effective program this text coordinates in GDL.

We know that is possible create text in GDL with relative coordinates referenced to the origin of SmartPart. But in Allplan 2014-0-3 version:

- Are there any command or any way in GDL to create text with absolute coordinates?
- Are there any command or any way in GDL to create text with relative coordinates referenced to planes (default planes, roof planes)?

Thanks a lot!
Xavier C.A.
EiPM

Xavier Coll • Architect, Project Manager I+D, BIM Manager, BIM Auditor
EiPM • http://www.eipm.es/en/

Hi Xavi,

in GDL there exist global parameters for this
SYMB_POS_X , SYMB_POS_Y , SYMB_POS_Z

Inside SmartParts we do not support this.
Why?

You have to imagine, that a SmartPart is a Macro-Placement
with a common definition block, who describe the geometry.

Now you can have 2 SmartParts (one is a copy of another) with
different insertion points , e.g. (0,0,0) and (1,0,0).
This 2 SmartParts have a common definition block!

First Problem:
Which insertion point should be used for create the label text inside
the definition block?

Second Problem:
Both Smartpart-Macro would show the same label text.

Third Problem:
The label text would not automatically refresh, if you move the SmartPart!

Because of this problems we don't support the possibility, to get the insertion point
from inside the script.
Use labels , and the job will be done.

In opposition:
In ArchiCAD each GLD-Object is refreshed after changing the projection or position.
Thats why the screen-refresh needs so many time, if you have many GDL objects .

Regards.
Jörg

Hi Jörg,

Mmmmm ... I understand that the speed of using Allplan is more important than some automatisms.

But I think it would be interesting to give the option to choose if the users want or not automatic refresh on some smartparts. ;-D

Thanks Jörg for the explanation. As always, the explanation has been very educational and interesting, and excuse me for the delay in responding.

Best regards,
Xavier C.A.

Xavier Coll • Architect, Project Manager I+D, BIM Manager, BIM Auditor
EiPM • http://www.eipm.es/en/


https://campus.allplan.com/ verwendet Cookies  -  Mehr Informationen

Akzeptieren