Jump to content
Developer Wiki and Function Reference Links ×

Select by Line Weight?


MaxStudio

Recommended Posts

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

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...