Jump to content
Sign in to follow this  
unlimited

Class Visibilities by Search

Recommended Posts

Here are a bunch of networks that carry out various Class Visibility operations including the ability to search for a class by a string.

This is particularly useful for users like those in the UK who have coded class standards such as Uniclass 2015 but sometimes just need to find a class that contains the work insulation rather than knowing its code (which come at the front of the naming standard.

In turn, I turned these networks into Python script ( right click, Save Marionette Script as Python Script ) and then in turn, made these into Menu Command Plug-Ins ( through Tools>Plugin>PlugIn Manager) and then added them to my workspace ( Tools>Workspace>Edit Current Workspace).

Best regards,

Martyn

PS: I'd like to be able to refine the search mechanism to NOT be case sensitive. I haven't looked into it yet but if anyone has any suggestions.... :)

Share this post


Link to post

For your case sensitivity, you should be able to use .lower() to kind of bypass it.

example:

in the "Is In" node

for x in list:
    if substr.lower() in x.lower():
         res.append( True )
    else:
         res.append( False )

Share this post


Link to post

Thanks Marissa - I'll give that a go.

By the way meant to say thanks to everyone that has helped during this last few weeks contribute to my knowledge and also for some of the nodes such as the Is In node. :)

Share this post


Link to post

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.

Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...