Jump to content
Sign in to follow this  

[Resolved] Get only ressources from external file in image popup

Recommended Posts


I use resources from an external file in a PIO dialog thumbnails popup control. ( ex : wooden panels textures). I don?t want other texture ( from the current file but not from the external file) to appear on top of the list. I could erase some textures but I cannot make the difference between the resources that are in my current file and also in the external file (previously imported) and the resource that are in my current file but not in my external file.

Any Idea ?


Edited by Musisback

Share this post

Link to post

Simply pass a negative folder index to BuildResourceList to exclude the resources in the current file.

If you are trying to do something more complex than just display the resources from the external file you may need to build 2 separate lists from the local file and the external file and add/delete resources from the list to build the list you need.

Share this post

Link to post

Awesome ! It works...

It's weird because the VectorScript Function Reference guide says for the function "BuildResourceList"


use of the negative values of these constants can be used to get the user-based folder path. The positive values are for application-based paths, which should not be used for writing.

Well, I'm glad it is fault.

Share this post

Link to post

Read the few lines before that...

I think someone was confused and copped the note from another function. I'll remove it.

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.

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