2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations
2019-09-10
03:39 AM
- last edited on
2023-05-24
09:54 AM
by
Rubia Torres
2019-09-24 07:17 AM
Lingwisyer wrote:My mistake.
You want your second value in the MUL command to be 1, not 0.
2019-09-24 10:08 AM
A = -0.09045 B = 19.90796 IF LOD = "Coarse" THEN ! ! Name : New Object 1.gsm ! Date : Wednesday, 11 September 2019 ! Version : 22.00 ! Written by ARCHICAD ! add2 A,B MUL2 A3.0, 1 line_property 0 line2 1.540449512792, -20.08295636262, 1.535449512792, -20.08295636262 line2 1.495651223507, -20.08295636262, 0.1612478020773, -20.08295636262 line2 0.1214495127919, -20.08295636262, 0.1164495127919, -20.08295636262 line2 0.06444951279192, -20.08295636262, -1.359550487208, -20.08295636262 line2 -1.409550487208, -20.08295636262, -1.359550487208, -20.08295636262 line2 -1.359550487208, -20.08295636262, -1.359550487208, -20.05422889551 line2 -1.359550487208, -20.05422889551, -1.390350487208, -20.05422889551 line2 -1.390350487208, -20.05422889551, -1.390350487208, -20.01008382972 line2 -1.390350487208, -20.01008382972, -1.359550487208, -20.01008382972 line2 -1.359550487208, -20.01008382972, -1.359550487208, -19.98135636262 line2 -1.359550487208, -19.98135636262, -1.409550487208, -19.98135636262 line2 -1.409550487208, -19.98135636262, -1.409550487208, -20.08295636262 line2 1.501550899651, -20.01785659294, 1.530551204182, -20.01785659294 line2 1.530551204182, -20.01785659294, 1.530444444816, -20.05273660423 line2 1.530444444816, -20.05273660423, 1.540449512792, -20.05273660423 line2 1.540449512792, -20.05273660423, 1.540449512792, -20.08295636262 line2 1.540449512792, -20.08295636262, 1.590449512792, -20.08295636262 line2 1.590449512792, -20.08295636262, 1.590449512792, -19.98135636262 line2 1.590449512792, -19.98135636262, 1.540449512792, -19.98135636262 line2 1.540449512792, -19.98135636262, 1.540449512792, -20.00885659294 line2 1.540449512792, -20.00885659294, 1.499950899651, -20.00885659294 line2 1.499950899651, -20.00885659294, 1.499950899651, -20.02725659271 line2 1.499950899651, -20.02725659271, 1.489950898762, -20.02725659271 line2 1.489950898762, -20.02725659271, 1.489950898762, -20.0288565859 line2 1.489950898762, -20.0288565859, 1.504154523548, -20.0288565859 arc2 1.504150031969, -20.0280565965, 0.0008000020113974, 270.3216865704, 90 line2 1.504150031969, -20.02725659449, 1.501550899651, -20.02725659449 line2 1.501550899651, -20.02725659449, 1.501550899651, -20.01785659294 line2 0.06444951279192, -20.08295636262, 0.1164495127919, -20.08295636262 line2 0.1164495127919, -20.08295636262, 0.1164495127919, -20.05288660423 line2 0.1164495127919, -20.05288660423, 0.1264495127919, -20.05288660423 line2 0.1264495127919, -20.05288660423, 0.1264495127919, -20.01800659294 line2 0.1264495127919, -20.01800659294, 0.1553467308704, -20.01800659294 line2 0.1553467308704, -20.01800659294, 0.1553467308704, -20.02740659449 line2 0.1553467308704, -20.02740659449, 0.1527475985522, -20.02740659449 arc2 0.1527475985522, -20.0282065965, 0.0008000020113972, 90, 269.6783134337 line2 0.1527431069727, -20.0290065859, 0.1669467311665, -20.0290065859 line2 0.1669467311665, -20.0290065859, 0.1669467311665, -20.02740659271 line2 0.1669467311665, -20.02740659271, 0.1569467308704, -20.02740659271 line2 0.1569467308704, -20.02740659271, 0.1569467308704, -20.00900659294 line2 0.1569467308704, -20.00900659294, 0.1164495127919, -20.00900659294 line2 0.1164495127919, -20.00900659294, 0.1164495127919, -19.98135636262 line2 0.1164495127919, -19.98135636262, 0.06444951279192, -19.98135636262 line2 0.06444951279192, -19.98135636262, 0.06444951279192, -20.08295636262 line2 -1.369550487208, -20.04465636262, 0.06444951279192, -20.04465636262 line2 0.06444951279192, -20.03865636262, -1.369550487208, -20.03865636262 line2 -1.369550487208, -20.03865636262, -1.369550487208, -20.04465636262 line2 -1.369550487208, -20.02565636262, 0.06444951279192, -20.02565636262 line2 0.06444951279192, -20.01965636262, -1.369550487208, -20.01965636262 line2 -1.369550487208, -20.01965636262, -1.369550487208, -20.02565636262 line2 0.1541467240547, -20.03299548126, 0.154146710613, -20.04885548023 line2 0.154146710613, -20.04885548023, 0.1561467240548, -20.04885547875 line2 0.1561467240548, -20.04885547875, 0.1561467238532, -20.05784547853 line2 0.1561467238532, -20.05784547853, 0.1338295127919, -20.05784547853 line2 0.1338295127919, -20.05784547853, 0.1338295127919, -20.05584547867 arc2 0.133079512652, -20.05584547867, 0.0007500001399308, 0, 180 line2 0.132329511552, -20.05584547871, 0.132329512792, -20.07603548841 line2 0.132329512792, -20.07603548841, 0.1214495127919, -20.07603548841 line2 0.1214495127919, -20.07603548841, 0.1214495127919, -20.08299547712 line2 0.1214495127919, -20.08299547712, 0.1612478020773, -20.0829954799 line2 0.1612478020773, -20.0829954799, 0.1910916593197, -20.07499884245 line2 0.1910916593197, -20.07499884245, 0.1910916593197, -20.03334046532 line2 0.1910916593197, -20.03334046532, 0.1713268075086, -20.03299546854 line2 0.1713268075086, -20.03299546854, 0.1541467240547, -20.03299548126 line2 1.502752301529, -20.03299548126, 1.485572218075, -20.03299546854 line2 1.485572218075, -20.03299546854, 1.465807366264, -20.03334046532 line2 1.465807366264, -20.03334046532, 1.465807366264, -20.07499884245 line2 1.465807366264, -20.07499884245, 1.495651223507, -20.0829954799 line2 1.495651223507, -20.0829954799, 1.535449512792, -20.08299547712 line2 1.535449512792, -20.08299547712, 1.535449512792, -20.07603548841 line2 1.535449512792, -20.07603548841, 1.524569512792, -20.07603548841 line2 1.524569512792, -20.07603548841, 1.524569514032, -20.05584547871 arc2 1.523819512932, -20.05584547867, 0.0007500001399876, 0, 180 line2 1.523069512792, -20.05584547867, 1.523069512792, -20.05784547853 line2 1.523069512792, -20.05784547853, 1.500752301731, -20.05784547853 line2 1.500752301731, -20.05784547853, 1.500752301529, -20.04885547875 line2 1.500752301529, -20.04885547875, 1.502752314971, -20.04885548023 line2 1.502752314971, -20.04885548023, 1.502752301529, -20.03299548126 line2 0.1910916593197, -20.06875636262, 1.465807366264, -20.06875636262 line2 1.465807366264, -20.06275636262, 0.1910916593197, -20.06275636262 line2 0.1910916593197, -20.04975636262, 1.465807366264, -20.04975636262 line2 1.465807366264, -20.04375636262, 0.1910916593197, -20.04375636262 hotspot2 -1.409550487208, -20.08295636262 hotspot2 1.590449512792, -20.08295636262 DEL TOP ENDIF
2019-09-24 10:16 AM
Studioverde wrote:
MUL2 A3.0, 1
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 |
2019-09-24 10:26 AM
2019-09-24 10:35 AM
Barry wrote:Perfect, this worked a charm. The new slight issue now is that when the window is at 3m, the size the 2D symbol was saved originally, it looks fine. When I try and change that to 2m, the 2d symbol does not constrain to the nodes at each end of the wall opening. See image.
Almost there.
Usually 'A' is the width of the window opening and 'B' is the height.
They are the length and height parameters in the info box and settings dialogue.
You are then changing their values in the 2D script and using them for the ADD2 to move the frame.
It will be better to create new variables for these and leave 'A' as the width of the window.
The MUL2 command is missing the 'divide' symbol.
The frame that you have drawn and used should be default 3.0 long, so when you set A as 3.0 in the settings it will be exactly the right size.
Then as you adjust the 'A' parameter the window frame will stretch.
Barry.
C = -0.09045 D = 19.90796 IF LOD = "Coarse" THEN ! ! Name : New Object 1.gsm ! Date : Wednesday, 11 September 2019 ! Version : 22.00 ! Written by ARCHICAD ! add2 C,D MUL2 A/3, 1 line_property 0 line2 1.540449512792, -20.08295636262, 1.535449512792, -20.08295636262 line2 1.495651223507, -20.08295636262, 0.1612478020773, -20.08295636262 line2 0.1214495127919, -20.08295636262, 0.1164495127919, -20.08295636262 line2 0.06444951279192, -20.08295636262, -1.359550487208, -20.08295636262 line2 -1.409550487208, -20.08295636262, -1.359550487208, -20.08295636262 line2 -1.359550487208, -20.08295636262, -1.359550487208, -20.05422889551 line2 -1.359550487208, -20.05422889551, -1.390350487208, -20.05422889551 line2 -1.390350487208, -20.05422889551, -1.390350487208, -20.01008382972 line2 -1.390350487208, -20.01008382972, -1.359550487208, -20.01008382972 line2 -1.359550487208, -20.01008382972, -1.359550487208, -19.98135636262 line2 -1.359550487208, -19.98135636262, -1.409550487208, -19.98135636262 line2 -1.409550487208, -19.98135636262, -1.409550487208, -20.08295636262 line2 1.501550899651, -20.01785659294, 1.530551204182, -20.01785659294 line2 1.530551204182, -20.01785659294, 1.530444444816, -20.05273660423 line2 1.530444444816, -20.05273660423, 1.540449512792, -20.05273660423 line2 1.540449512792, -20.05273660423, 1.540449512792, -20.08295636262 line2 1.540449512792, -20.08295636262, 1.590449512792, -20.08295636262 line2 1.590449512792, -20.08295636262, 1.590449512792, -19.98135636262 line2 1.590449512792, -19.98135636262, 1.540449512792, -19.98135636262 line2 1.540449512792, -19.98135636262, 1.540449512792, -20.00885659294 line2 1.540449512792, -20.00885659294, 1.499950899651, -20.00885659294 line2 1.499950899651, -20.00885659294, 1.499950899651, -20.02725659271 line2 1.499950899651, -20.02725659271, 1.489950898762, -20.02725659271 line2 1.489950898762, -20.02725659271, 1.489950898762, -20.0288565859 line2 1.489950898762, -20.0288565859, 1.504154523548, -20.0288565859 arc2 1.504150031969, -20.0280565965, 0.0008000020113974, 270.3216865704, 90 line2 1.504150031969, -20.02725659449, 1.501550899651, -20.02725659449 line2 1.501550899651, -20.02725659449, 1.501550899651, -20.01785659294 line2 0.06444951279192, -20.08295636262, 0.1164495127919, -20.08295636262 line2 0.1164495127919, -20.08295636262, 0.1164495127919, -20.05288660423 line2 0.1164495127919, -20.05288660423, 0.1264495127919, -20.05288660423 line2 0.1264495127919, -20.05288660423, 0.1264495127919, -20.01800659294 line2 0.1264495127919, -20.01800659294, 0.1553467308704, -20.01800659294 line2 0.1553467308704, -20.01800659294, 0.1553467308704, -20.02740659449 line2 0.1553467308704, -20.02740659449, 0.1527475985522, -20.02740659449 arc2 0.1527475985522, -20.0282065965, 0.0008000020113972, 90, 269.6783134337 line2 0.1527431069727, -20.0290065859, 0.1669467311665, -20.0290065859 line2 0.1669467311665, -20.0290065859, 0.1669467311665, -20.02740659271 line2 0.1669467311665, -20.02740659271, 0.1569467308704, -20.02740659271 line2 0.1569467308704, -20.02740659271, 0.1569467308704, -20.00900659294 line2 0.1569467308704, -20.00900659294, 0.1164495127919, -20.00900659294 line2 0.1164495127919, -20.00900659294, 0.1164495127919, -19.98135636262 line2 0.1164495127919, -19.98135636262, 0.06444951279192, -19.98135636262 line2 0.06444951279192, -19.98135636262, 0.06444951279192, -20.08295636262 line2 -1.369550487208, -20.04465636262, 0.06444951279192, -20.04465636262 line2 0.06444951279192, -20.03865636262, -1.369550487208, -20.03865636262 line2 -1.369550487208, -20.03865636262, -1.369550487208, -20.04465636262 line2 -1.369550487208, -20.02565636262, 0.06444951279192, -20.02565636262 line2 0.06444951279192, -20.01965636262, -1.369550487208, -20.01965636262 line2 -1.369550487208, -20.01965636262, -1.369550487208, -20.02565636262 line2 0.1541467240547, -20.03299548126, 0.154146710613, -20.04885548023 line2 0.154146710613, -20.04885548023, 0.1561467240548, -20.04885547875 line2 0.1561467240548, -20.04885547875, 0.1561467238532, -20.05784547853 line2 0.1561467238532, -20.05784547853, 0.1338295127919, -20.05784547853 line2 0.1338295127919, -20.05784547853, 0.1338295127919, -20.05584547867 arc2 0.133079512652, -20.05584547867, 0.0007500001399308, 0, 180 line2 0.132329511552, -20.05584547871, 0.132329512792, -20.07603548841 line2 0.132329512792, -20.07603548841, 0.1214495127919, -20.07603548841 line2 0.1214495127919, -20.07603548841, 0.1214495127919, -20.08299547712 line2 0.1214495127919, -20.08299547712, 0.1612478020773, -20.0829954799 line2 0.1612478020773, -20.0829954799, 0.1910916593197, -20.07499884245 line2 0.1910916593197, -20.07499884245, 0.1910916593197, -20.03334046532 line2 0.1910916593197, -20.03334046532, 0.1713268075086, -20.03299546854 line2 0.1713268075086, -20.03299546854, 0.1541467240547, -20.03299548126 line2 1.502752301529, -20.03299548126, 1.485572218075, -20.03299546854 line2 1.485572218075, -20.03299546854, 1.465807366264, -20.03334046532 line2 1.465807366264, -20.03334046532, 1.465807366264, -20.07499884245 line2 1.465807366264, -20.07499884245, 1.495651223507, -20.0829954799 line2 1.495651223507, -20.0829954799, 1.535449512792, -20.08299547712 line2 1.535449512792, -20.08299547712, 1.535449512792, -20.07603548841 line2 1.535449512792, -20.07603548841, 1.524569512792, -20.07603548841 line2 1.524569512792, -20.07603548841, 1.524569514032, -20.05584547871 arc2 1.523819512932, -20.05584547867, 0.0007500001399876, 0, 180 line2 1.523069512792, -20.05584547867, 1.523069512792, -20.05784547853 line2 1.523069512792, -20.05784547853, 1.500752301731, -20.05784547853 line2 1.500752301731, -20.05784547853, 1.500752301529, -20.04885547875 line2 1.500752301529, -20.04885547875, 1.502752314971, -20.04885548023 line2 1.502752314971, -20.04885548023, 1.502752301529, -20.03299548126 line2 0.1910916593197, -20.06875636262, 1.465807366264, -20.06875636262 line2 1.465807366264, -20.06275636262, 0.1910916593197, -20.06275636262 line2 0.1910916593197, -20.04975636262, 1.465807366264, -20.04975636262 line2 1.465807366264, -20.04375636262, 0.1910916593197, -20.04375636262 hotspot2 -1.409550487208, -20.08295636262 hotspot2 1.590449512792, -20.08295636262 DEL TOP ENDIF
2019-09-24 10:44 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 |
2019-09-24 10:46 AM
2019-09-24 10:57 AM
2019-09-24 11:22 AM
Studioverde wrote:No, not easily.
Is there no way to add any script to the existing 2D code to force Archicad to scale the width of the 2D symbol from the panel of the window and not the frames?
2019-09-24 01:24 PM