Jump to content
Developer Wiki and Function Reference Links ×

Custom selection (How do I do this?)

Recommended Posts

I would like to select all of the window PIOs that have an overall width of 7'6".

I go to the custom selection command in the Tool menu, choose "select only" and "create script". Then in the criteria selection dialogue, I choose "field value" and enter a value of 7'6".

When I run the script, it barfs with an error of expecting right parentheses. Most likely it is the quotation marks in the dimension that is confusing the parser.

DSelectAll; SelectObj(INSYMBOL & ('Window'.'OverallWidth'=7'6"));

If I do 90" it still barfs, and if I stick Num2Str in like this:

DSelectAll; SelectObj(INSYMBOL & ('Window'.'OverallWidth'= Num2Str(7'6")));

It still barfs.

If I just do 90 without feet and inch marks, the script runs without selecting anything.

This there any way to do a quick custom selection like this?


Link to comment

That's beside the point. What if I had a bunch of walls each with one window in them?

And now I'm pretty sure you CAN select more than one object in a wall with SelectObj (but the OIP will not reflect this). I was pleasantly surprised to notice this.


Link to comment
  • 2 weeks later...

I think field values are returned in feet only, with no unit mark, try this:

DSelectAll; SelectObj(('Window'.'OverallWidth'=7.5));

That should select your PIO.

But I think Katie is correct, you cannot select more than one window in the same wall at the same time, although what you say is interesting too. If you have one PIO in each of two separate walls, it will select both of them. But unfortunately, although the info palette shows both of them, you cannot edit their size at the same time.

It sure seems like there could be some additional documentation on all this, Field Value Criteria in particular.

Edited by PeterT
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.

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...