Jump to content

Lada

Vectorworks, Inc Employee
  • Posts

    21
  • Joined

  • Last visited

Everything posted by Lada

  1. Hi Pat. Thank you for the clarification. I believe, it is implemented the same way as it works in the application if you do import from Resource manager. If the object is already present and it matches, it doesn’t require either import or conflict handling. I agree that the documentation should be corrected. Please, submit an enhancement request if you feel there is a need for another flavor of this procedure.
  2. Hello Thomas, Thank you for testing. You are right, you can configure the callback to do any of Do Not Import (return 0), Replace (return 1) or Rename (return 2). For Rename you need to change the var parameter. Alternatively, you can use ImportResourceToCurrentFile which does not provide a callback function. In this case you will see the dialog for each conflict.
  3. Hello everyone, I am not an expert in VS, but I looked what ImportResToCurFileN is doing and tested the original script. And here are the results: It builds a list of all resources in the current document, and then in my Libraries folder. So, the first time I run it, it imports THE FIRST symbol from the list into the current document, because my document is empty. ImportResToCurFileN( resList , 1, ImportResCallback ); Second parameter 1 is an index of the symbol in the list. Second time it again builds the list from the current document + Libraries. And now the first symbol belongs to the current document, and nothing happens. Because after the resource is imported, the next attempt sees it is already present, and it matches, so it doesn’t require either import or conflict handling. You can loop through all elements of the list, and you will see the conflict eventually. Other testing suggestions: while looping you can check the name of the resource GetNameFromResourceList(resList, idx), and/or GetResourceFromList(resList, idx), which will return NIL for resources not in the current document. And only for those resources it makes sense to call Import. Lada
  4. Another option is to use Favorites. They always available in selectors.
  5. Any of these folders should work. When you add a Workgroup folder the same folder structure is being created inside it. So just put your files into the relevant folders. Difference between the Resource manager (palette) and Resource selectors is that the Resource manager shows all folders and files inside the Libraries folder, but selectors show only relevant folders. In particular, this list is for the Symbol tool.
  6. Hello @MattG, Workgroup and User libraries follow the same structure and rules as Vectorworks Libraries. This means each tool has its own set of folders which are available in Resource selectors. Please, check the list of available folders inside Vectorworks libraries. If you put your files inside one of those folders in Workgroup/User library they should be available.
  7. JBenghiat is right. There is no way to get a resource from a non-active document. The only possibility is to import the resource, do what you need and delete the resource.
  8. Good! Sorry for inconvenience. It was fixed in SP1.
  9. Hello Matt, Could you, please, try to refresh your libraries? Select any library, "Refresh" from the context menu.
  10. Do folders have a content? If yes, could you, please, attach any .vwx file from Defaults/.. or Object styles/.. folder?
  11. Did you try the "Refresh libraries" command? It is in the action menu of the Resource manager.
  12. Hello guys, I'm from the engineering team. Thanks for the help. Could you, please, provide me with these (defaultContent.db, defaultContent.db.proxy) files? Thanks
×
×
  • Create New...