Jump to content
Developer Wiki and Function Reference Links Read more... ×
Sign in to follow this  
Musisback

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

Recommended Posts

Hello,

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 ?

Damien

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"

Note

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
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.

×