We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2020-10-01 11:43 PM - last edited on 2021-09-15 09:44 AM by Noemi Balogh
2020-10-02 03:20 AM
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2020-10-02 11:04 AM
2020-10-02 11:12 AM
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2020-10-02 11:31 AM
2020-10-02 02:08 PM
2020-10-02 03:50 PM
2020-10-03 01:00 PM
DGSketcher wrote:Can you show us some screenshot of this... and perhaps some elaboration on what is the purpose of the object?
Adding a Cutplane to the 3D script means the various elements show as hollow and are coloured with their surface material.
2020-10-05 03:27 AM
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2020-10-05 11:16 AM
!!! Obtain Building Material Data DIM BMFill[10], BMFPen[10], BMBPen[10], BMSurf[10] ! DIM BMat[10] Declared in Master Script and filled with values from Parameters FOR k = 1 TO 10 n = REQUEST{2} ("Building_Material_info", BMatIn the 3D script you need to apply a cutplane and your model needs to be able to be displayed in full with the cuts, but it also needs to display elements grouped by material. I control these with the binary settings of the BMN values. So in the code above, the first Project2 sets the BMN "flags" to display all uncut parts of the model, the second steps through the flags displaying the different cut fills generated for each model part in each loop. I know it appears a bit complex and the binary display solution could probably be overcome by other comparison methods, but this way I can also use it to easily filter one or several elements to display e.g. just the structure or just the finishes etc. I may be wrong but I believe this works because of the PARAMETERS statement at the end of the Project2 which forces a redraw. BMN is initialised in the Parameters values along with the materials etc., "gs_bmat_cutFill_properties", BMFill , BMFPen , BMBPen ) n = REQUEST{2} ("Building_Material_info", BMat , "gs_bmat_surface", BMSurf ) NEXT k ! set general 2D attributes PEN 1 !Pen General for outline LINE_TYPE 1 iProjectionCode = 3 !Top view angleProjection = 270 iProjectionMethod = 3 !Shaded !Uncut elements - Draw model without cuts fills PROJECT2{3} iProjectionCode, angleProjection, iProjectionMethod + 16, 4+8, 19, 0,0,90, PARAMETERS BMN = 2+4+8+16+32+64 !+128 FOR j = 1 to 10 MATERIAL BMSurf FILL BMFill !Fill General fillFGPenGeneral = BMFPen fillBGPenGeneral = BMBPen !Fill BGPen General !Cut elements - Draw cut section fills only PROJECT2{3} iProjectionCode, angleProjection, iProjectionMethod + 32, 1+2, fillBGPenGeneral, 0,0,90, PARAMETERS BMN = BITSET(0,j) NEXT j