2021-03-29 10:40 AM - last edited on 2021-09-14 09:43 AM by Noemi Balogh
Solved! Go to Solution.
2021-03-29 11:41 AM
dim _MEP_Position[] : _MEP_Position[1] = 0 : dim1d1 = 1 : dim2d1 = 1 nd1 = request("Assoclp_parvalue", "MEP_Position", namindd1, typed1, flagd1, dim1d1, dim2d1, _MEP_Position) dim MEP_Position[][] : MEP_Position[1][1] = 0 n_rec = 1 for i=1 to dim1d1 for j=1 to dim2d1 MEP_Position= _MEP_Position[n_rec] n_rec = n_rec + 1 next j next i MEP_StraightLength = 0 nd1 = request("Assoclp_parvalue", "MEP_StraightLength", namindd1, typed1, flagd1, dim1d1, dim2d1, MEP_StraightLength) if vardim1(MEP_Position)>1 and vardim2(MEP_Position)=3 then ! --- x,y,z coordinates of 1st point --- rx1 = MEP_Position[1][1] ry1 = MEP_Position[1][2] rz1 = MEP_Position[1][3] ! --- x,y,z coordinates of 2nd point --- rx2 = rx1+MEP_Position[2][1]*MEP_StraightLength ry2 = ry1+MEP_Position[2][2]*MEP_StraightLength rz2 = rz1+MEP_Position[2][3]*MEP_StraightLength endif text2 0,0,rz1 text2 0,-0.3,rz2
Structural engineer, developer of free addon for sync GDL param and properties
2021-03-29 10:41 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 |
2021-03-29 11:41 AM
dim _MEP_Position[] : _MEP_Position[1] = 0 : dim1d1 = 1 : dim2d1 = 1 nd1 = request("Assoclp_parvalue", "MEP_Position", namindd1, typed1, flagd1, dim1d1, dim2d1, _MEP_Position) dim MEP_Position[][] : MEP_Position[1][1] = 0 n_rec = 1 for i=1 to dim1d1 for j=1 to dim2d1 MEP_Position= _MEP_Position[n_rec] n_rec = n_rec + 1 next j next i MEP_StraightLength = 0 nd1 = request("Assoclp_parvalue", "MEP_StraightLength", namindd1, typed1, flagd1, dim1d1, dim2d1, MEP_StraightLength) if vardim1(MEP_Position)>1 and vardim2(MEP_Position)=3 then ! --- x,y,z coordinates of 1st point --- rx1 = MEP_Position[1][1] ry1 = MEP_Position[1][2] rz1 = MEP_Position[1][3] ! --- x,y,z coordinates of 2nd point --- rx2 = rx1+MEP_Position[2][1]*MEP_StraightLength ry2 = ry1+MEP_Position[2][2]*MEP_StraightLength rz2 = rz1+MEP_Position[2][3]*MEP_StraightLength endif text2 0,0,rz1 text2 0,-0.3,rz2
Structural engineer, developer of free addon for sync GDL param and properties
2021-04-03 11:23 AM
text2 0,0,rz1 + GLOB_ELEVATION text2 0,-0.3,rz2 + GLOB_ELEVATIONorigin of the project
text2 0,0,rz1 + SYMB_POS_Z text2 0,-0.3,rz2 + SYMB_POS_Z
2021-04-04 12:44 PM