Jump to content

Julian_Carr

Vectorworks, Inc Employee
  • Posts

    69
  • Joined

  • Last visited

Reputation

85 Excellent

1 Follower

Personal Information

  • Location
    Australia

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. This should be fixed for Update 2. Once you get the update, you will first need to regenerate all WinDoor objects in the file via the AEC menu > Show-Hide WinDoor detail command. Once completed you can then update the GL. I tested the fix with your file and confirmed the GL then displayed correctly.
  2. Thanks Miguel. I know that would work if the folder names were known, however I can't see a way to get the folder names which would be required in order to plug into the path string. For this case the PIO will be used for different purposes so users will want to name the files or folders as required. All the BuildResourceList calls only seem to search for files. Does anyone know if there is a way to get the names of folders within a designated folder?
  3. Thanks Kevin. I will try BuildResourceListN2(). Thanks Pat. The reason I am attempting to do this is to speed up the list building process because the resource lists are very extensive. I am therefore attempting to split the resources over a number of files in some organised way, so that I can then just nominate which file to access in a custom dialogue, and then only build the list from that file.
  4. You can also do it with a custom worksheet script that calculates the distance between two points given the X and Y coordinates of each point. The attached has the script and how it needs to be called. Triangulating ~ JC.vwx
  5. I have a custom library folder called 'My Libraries' in the Libraries > Defaults folder, that contains three files: Libraries > Defaults > My Libraries > File 1.vwx Libraries > Defaults > My Libraries > File 2.vwx Libraries > Defaults > My Libraries > File 3.vwx I want to build a resource list for symbols for just one of these files, so to access say File 3.vwx, I can pass the full file path to that file as follows: sPath := Concat(GetFolderPath(-14), 'My Libraries', 'File 3.vwx'); MyList := BuildResourceListN(16, sPath, i1); and I get just the symbols in File 3.vwx. If attempt to access File 2.vwx, the list also includes File 3.vwx, and if I attempt to access File 1.vwx, I get the symbols from all three files. Is there a way to do this so I only get the resources from the nominated file? Thanks!
  6. They go in the main event loop. There are no doubt constant equivalents for these numbers. I just didn't have the list handy when I wrote the code.
  7. Good suggestion Dylan. I have modified the worksheet to include separate columns for layer name and layer number, and attached it as a Vw 2021 file. Layer Info Worksheet 3.vwx
  8. It seems this should be easy, but regardless of what I have tried, I can't get either of the possible IF statements to work with data from an IFC record attached to a wall, to appear correctly in a graphic legend. Here is an example of the syntax I am using for both IF types: Yes@(#IfcWallStandardCase#.#Pset_WallCommon#.#IsExternal# = '1'):No #WS_IF((GETIFCPROPERTY('Pset_WallCommon'.'IsExternal') = '1'), 'Yes', 'No' )# In both cases it fails which can be seen in the attached file. I feel like I must be missing something? Wall Graphic Legend Issue.vwx
  9. Not necessarily suggesting that but you can find it in Vectorwork Preferences > Session tab, 5th or 6th item down.
  10. There is definitely something funky with the Plug-in Editor in Vw 2023. In WinDoor if I run it in developer mode and make a change via one of the dialogs, the change happens visibly but then immediately reverts to the previous state as if undo has been invoked. Changes made directly in the OIP are fine. Switch off developer mode and everything is fine. I am also seeing one-off VS errors being reported but when you open the error report it contains no error.
  11. Actually, you can use these three procedures to manipulate saved views. The second one will activate an existing saved view: VSave('view name'); VRestore('view name'); VDelete('view name'); These commands can also be very useful in a script when you need to change the view in a script to perform some operation (like switch to Top/Plan) but then restore the original view once you are done.
  12. A1. For symbols there are a couple of approaches you can take. Firstly, you can create a custom dialogue containing the symbol picker, which will allow you to choose symbols from different sources. Likely you will want a limited list however, so will need to use one of the BuildResourceList() calls to filter what symbols are displayed. You can then use the older picker (CreateThumbnailPopup in the custom dialogue), or the more commonly seen one that accesses the Resource Selector (eg. choose the Style Menu > Replace option in Base Cabinet, Fireplace, Table & Chairs, etc. Secondly you can create a popup menu in the OIP containing a dynamic curated list of symbol names to choose from, though this option is only manageable if there is a limited quantity of symbols to display and obviously there will be no preview. For textures you are better off making use of the texture tab in the OIP. See the recent post by Jesse in answer to a question from me. It includes a sample PIO with texturing ability. A2. Yes, but it can get complex if the PIO uses custom dialogs and you need to individually control which parameters are by style and which are not.
  13. Thanks a lot Jesse. That info got it going properly. I stuck with class textures however, because the PIO has lots of different components with different textures.
  14. I have a rectangular extrude within a point PIO that has a class texture applied. I would like to set the mapping to Auto-Align Plane and also Use World Z for Origin. Any clues? Thanks!
×
×
  • Create New...