Jump to content

Worksheet criteria question.


Recommended Posts

@Pat Stanford 

 

I have another worksheet criteria question.

 

I made a small Shrub Counter worksheet to have onscreen when I'm populating planting plans.

Pretty simple, just number and name.

 

I set the criteria to:

Field value/Category/=/Shrubs

Field value/Category/=/SHUB

I noticed that my Rhamus wasn't counting.

 

Looked it up and category is 'SHRB, native' -  Comma-Separated.

When I removed the 'native' category, the plant was counted, when I added it back in, it was ignored.

 

Here's a screen shot with 'native' still active and the plant not being counted:

1651547268_WorksheetPlantCount.thumb.jpg.7b4f2c8c4f1865d2b2cfb61136fa0f0a.jpg

What do I have set wrong ? 

 

 

 

 

Quick second question:

Do I really have to scroll down through all those entries to get to 'category'?

I tried typing to see if VW did first letter search or if I could just type the word in and it didn't work.

 

Link to comment

Hello @hollister design Studio ,


In addition to @Pat Stanford answer, here is the "tactic" I use on my side for database criteria.


The expressions "starts with" "ends with" "contains" etc are not (yet ...
I hope they will be one day, vote for them in the wish list) in the default selection criteria of the spreadsheet.

Also, I would use the asterix * and mathematical operators to return only the occurrences corresponding to "SHRUB+text".

As on this screenshot :

 

1972725023_Capturedcran2021-02-24071739.thumb.jpg.0947770b7d32165d17ec6173d6e87f4c.jpg


Also, in order to speed up the filling of the database fields, I edit the formula directly from the formula editor, it's faster.

 

Hoping to have helped you a bit.

 

Best regards.
Edgar

  • Like 2
Link to comment

@Edgar RAMEL Thank you for reminding me of the "wildcard" options. I wasn't thinking about them last night.

 

So I THINK:

 

* means zero or more characters

? means exactly one character

 

Neither care what that character is:

 

So. =SHRUB?  would match SHRUB1, SHRUBA, SHRUB!, but not SHRUB, SHRUBAA or SHRUB!1

 

=SHRUB* would match all of the above.

 

=SHRUB*A. would match SHRUB12345A, SHRUBAA, SHRUB ZSFDA

 

Still don't have VW open to test.

Link to comment

Hello @Pat Stanford,


Yes, that's the general idea!


I hadn't tried the ?, but indeed it seems that these two wildcards work well. I would occasionally try the other known wildcards ...

 

446727839_Capturedcran2021-02-25085601.thumb.png.abfb20f54e40a3dea99dfb65c37bf0e8.png


On the other hand, when we use the "edit criterion" option that opens the appropriate dialog box, we have a problem with the result of the generated query.

 

1557562366_Capturedcran2021-02-25084929b.thumb.png.5071a1d166db9543b0681d9ce28b6895.png

 

It seems that this function "personally" manages the choices between "and" and "or" in the following criteria of database values ...

 

1800938917_Capturedcran2021-02-25084305.thumb.png.7c7363d4e2d934ef20cd43f0af01fcad.png

 

1232868232_Capturedcran2021-02-25084718.thumb.png.ae952f5504ab5e636fca91bb8fb1a17b.png


It inserts " | " or " & " as it pleases, without us being able to intervene at this level of the dialog box.


We need to correct this from the data formula editor.

 

1316110716_Capturedcran2021-02-25084929.thumb.png.35218e404217452a371b05796873ef31.png


Once this is done, it works fine.

 

1445750343_Capturedcran2021-02-25084813.thumb.png.3655ceb917ea15ff8a58d25359a04322.png


What is unfortunate (I repeat myself, but the developers who read me may well have the tools to correct this), is that VectorWorks manages all these options natively with the fields from IFC data, as we can see below:

 

1753953682_Capturedcran2021-02-25085024.thumb.png.d9cd819a6cc83a6825f8ebd683797d09.png

 

One day maybe ...


There you go.
Good day to everyone.
Edgar

 

 

Edited by Edgar RAMEL
Link to comment

You are correct that VW manages the settings of AND and OR. But there is some logic to what it does.

 

If you have multiple of the same criteria it applies an OR.

 

So. Layer IS ABC and Layer is XYZ become

Layer='ABC' | Layer='XYZ'

 

Multiple criteria of different types become AND

 

Layer='ABC' & Class='XYZ'

 

And the only way I know to change those is to go in and manually edit the formula string. Or use a script to write the formula string in the first place.

 

I don't think VW accepts any wildcards other than * and ? but I may be wrong.

  • Like 2
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...