Nice tip Jörg! After more than 10 years using Allplan, there are things that I'm still learning :-)
I'm trying to assign foils for the text inside my SmartPart, but something strange is happening. After doing the modification, and with the "Reference scale" set to 1:50, the text disappear of the Smartpart, and the smartpart is unable to be selected (only can be selected doing a selection window). It's very strange
This is my script:
REF_HANDLES
GOSUB "Foil_definition_2D"
SET FOIL "text"
DEFINE STYLE "text_1" arial , 0.7 , 8 , 1
STYLE text_1
TEXT2 REF_X / 2 , 0.005 , STR ( "%.2" , REF_X ) + "x" + STR ( "%.2" , REF_Y )
RESTORE 1
SET FOIL "esc_100"
POLY 4 , 0 , 0 , REF_X , 0 , REF_X , REF_Y , 0 , REF_Y
END
"Foil_definition_2D":
DEFINE FOIL "esc_100" 1 , 1 , 0 , 101 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 0 , 1 , 2
DEFINE FOIL "text" 1 , 1 , 0 , 101 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 0 , 1 , 2
RETURN
Thanks!
Xavi
Xavier Coll • Architect, Project Manager I+D, BIM Manager, BIM Auditor
EiPM • http://www.eipm.es/en/