hexagon logo

Why can't you write programs like this? Do you understand?

The construction feature cannot be written as [1.. N],

The results are marked in red。

Software version: 2024.1

Parents Reply
  • I had one of the developers check and the CONSTR/PLANE,BF,PNT1{1..24],, syntax does work correctly, even though it is red in the edit window.  The syntax is being incorrectly flagged as invalid as a side effect of another change we made recently.  This will be corrected for the next release (2025.1) and considered for service pack inclusion if possible.

Children
  • If it is not correctly calculating the X, Y Z, and vector of the feature when typing this in, and it puts the text in red, it is not actually working is it? Is the temporary method until further notice the one I posted above?

  • As  said in his most recent comment, and as I also stated, this is working correctly.  We just have a bug that incorrectly turns the edit window text red.  You can see from Don's screenshot that PLN1 contains all the hits.  Another way to verify this is to open the status window and then put the cursor on the feature in the edit window - the status window will display a summary, listing the number of points being used for that feature.

  • When the user above did his construction as shown in the original post, the THEO and ACTL XYZ values are still <0, 0, 0> They do not change to reflect this working correctly. 

    When he did it using the method I suggested, his THEO and ACTL values displayed correctly. <45.077, 102.231, 0>

    I am familiar with F9'ing the feature and seeing the features listed in the construction, but I just wanted to make sure that this is actually calculating. Don also stated that the values did not change, and could be evidence that is not actually working.

    I just wanted to verify with you that the values are actually calculating despite the text flagging red and values staying 0, 0, 0 that this is actually working. Is it calculating the XYZ in the background and not being displayed properly? If so, that's fine. Just something we will have to be careful with, as seeing 0, 0, 0 could be worrisome.

    Edit: I did not see Don's edit to his comment, sorry Neil. I'll try this when I can. I do not know why the other user's values did not change. Do you see any reason for why his values did not change until he tried a different method? I don't see any typos.

  • From what I can make out, the THEO values should be zero because the points are in a radial pattern around the alignment origin.  In Don's screenshot, you can see that we replicated this (we did it on a YMINUS plane rather than ZPLUS but the principle is the same).  Don ran our program on his machine and confirmed that the MEAS values updated with each run...

  • I can confirm that the points in the loop are calculated correctly. To check this, I inserted a layer evaluation into the loop. In the protocol, the theoretical values ​​are correct. I also don't get any red color in the constructed plane in 2024.2 (release ) - Build #161.

    Hope this information will help.