Jump to content

Julian_Carr

Vectorworks, Inc Employee
  • Posts

    73
  • Joined

  • Last visited

Reputation

87 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. I have a list browser that displays a specific list of layers and the first column has a control type of 3 to display check marks. I want to disable the ability to add a check mark against any layer whose name is greyed and I can do this by using SetLBItemReadOnly() for any row that is grey to be read only. This works OK in preventing the ability to add a check mark in the greyed column when working with single rows: However when multiple rows are selected and I click in the first column, a check mark appears against all rows: Does anyone know of a way to prevent this unintended way of checking those greyed layers? Thanks, Julian
  2. Thanks for the confirmation Peter. Must be something else going on. I'll keep digging. List Boxes - so many options, so little time!
  3. Does anyone happen to know what the maximum number of lines that are allowed in a list box is? It seems to be around 700 but even with less than that there appears to be some unpredictability sometimes, that results in an empty list. Thanks!
  4. 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.
  5. 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?
  6. 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.
  7. 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
  8. 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!
  9. 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.
  10. 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
  11. 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
  12. Not necessarily suggesting that but you can find it in Vectorwork Preferences > Session tab, 5th or 6th item down.
  13. 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.
  14. 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.
×
×
  • Create New...