License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…
2021-01-19
02:52 PM
- last edited on
2023-05-09
03:46 PM
by
Rubia Torres
Solved! Go to Solution.
2021-01-19 05:06 PM
2021-01-19 04:01 PM
2021-01-19 05:06 PM
2021-01-20 02:24 AM
2021-01-22 10:09 AM
! Textstile festlegen: DEFINE STYLE Stil2D "fontType", TextGr, 7, 1 DEFINE STYLE Stil3D "fontType", TextGr*100, 7, 1 !*100= scale-factor in 2D) !!!! String zerlegen und einzeln an einen Array übergeben: !Länge: Anzahl = STRLEN (Buchtabenfolge) !! Zerlegung: (STRSUB (string_expression, start_position, characters_number)) Dim Buchstaben[] for i = 1 to Anzahl Buchstaben = STRSUB (Buchtabenfolge, i, 1) next i
!!! Buchstabenfolge aus Masterscript einsetzen: hotspot2 0,0 STYLE Stil2D if Art = "gerade" then for i = 1 to Anzahl Text2 0, 0, Buchstaben hotspot2 0,0 add2 a/10, 0 next i del Anzahl else endif if Art = "Kreis" then Umfang = A*2*Pi Einzelwinkel = 360 / Anzahl rot2 Einzelwinkel for i = 1 to Anzahl rot2 -Einzelwinkel*i add2 a, 0 Text2 0, 0, Buchstaben hotspot2 0,0 del 2 next i del Anzahl*2 else endif if Art = "Bogen" then Einzelwinkel = Bogenwinkel / Anzahl rot2 Einzelwinkel for i = 1 to Anzahl rot2 -Einzelwinkel*i add2 a, 0 Text2 0, 0, Buchstaben hotspot2 0,0 del 2 next i del Anzahl*2 else endif
values "Art" "gerade", "Kreis", "Bogen"And in the parameterlist, all the needet parameters schould be present.
hotspot2 0,0 STYLE Stil3D if Art = "gerade" then for i = 1 to Anzahl Text 0.05, 0, Buchstaben hotspot 0,0,0 addx a/Anzahl next i del Anzahl else endif if Art = "Kreis" then Umfang = A*2*Pi Einzelwinkel = 360 / Anzahl rotz Einzelwinkel for i = 1 to Anzahl rotz -Einzelwinkel*i addx a Text 0.05, 0, Buchstaben hotspot 0,0,0 del 2 next i del Anzahl*2 else endif if Art = "Bogen" then Einzelwinkel = Bogenwinkel / Anzahl rotz Einzelwinkel for i = 1 to Anzahl rotz -Einzelwinkel*i addx a Text 0.05, 0, Buchstaben hotspot 0,0,0 del 2 next i del Anzahl*2 else endif
2021-01-27 04:05 PM