MaxStudio Posted February 1, 2012 Share Posted February 1, 2012 I'm trying to write a script that will allow me select an object by line weight. Our office works in mils so the the numbers will be whole numbers. I've gotten the following to work BEGIN SelectObj(LW=4); END; but if I change the 4 to a variable such as 'n' be it a real, integer or longint the script stops working VAR n : (Real, integer, or longint); BEGIN n:=4; SelectObj(LW=n); END; Does anyone know why this is happening? Is it not possible to use a variable in this situation? Thanks in advance, Derek Quote Link to comment
MaxStudio Posted February 1, 2012 Author Share Posted February 1, 2012 ok i think i got it working now.... it was as simple as adding two more parentheses SelectObj((LW=n)); Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.