Jump to content

Julian_Carr

Vectorworks, Inc Employee
  • Posts

    83
  • Joined

  • Last visited

Reputation

99 Excellent

2 Followers

Personal Information

  • Location
    Australia

Recent Profile Visitors

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

  1. It turns out this is possible after all, thanks to help from @Nikolay Zhelyazkov const AssociationKind kOnResetResetAssociation = 17; // A parametric object is reset, when the associated parametric object is reset
  2. I started by commenting out large sections of the code so it didn't crash, then narrowed down the faulty procedure (the Main) then commented out all lines in that procedure and worked my way down the lines until it crashed again. Once isolated to the line containing SetPref(44, False); I was back in business. Typical Vectorscript troubleshooting in my experience 🙂
  3. @Pat Stanford Happy New Years. I am wanting to associate an object I am developing with a Door object so that when the Door object changes, it triggers a reset of my associated object. I can create the association using the 4 or 5 constants, but triggering the reset seems not to be possible. Have you come up with a way to do this? Thanks!
  4. I found the culprit: SetPref(44, False); This sets dimensions to not use the default dimension class. If called before the PIO exists (so when the preview image under the cursor is created), then Vw crashes. Still living and still learning 🙂
  5. Thanks for the suggestion Jesse. I checked and indeed the parametric record does exist before the crash, so it's something else. I'll keep at it.
  6. I am stumped trying to track down this crash (see attached video). It happens when I select the tool I am developing in a new blank document and then move the cursor over the drawing area. The crash doesn't happen though, if after selecting the tool, I go to Tool Preferences then simply click OK. Doing this surprisingly deselects the tool, but when reselected and moved over the drawing, the tool performs correctly and inserts the default object. Once a document has the PIO record, then It no longer crashes if subsequent objects are placed. No VS error log is produced. Anyone have any ideas how to track this down? Serial number EMXZCN-JCARR1, Usage Data set to Verbose. Thanks! PIO Crash.mp4
  7. Raymond's other passion was his horses and to a lesser extent, star gazing. We had many discussions about these topics. When it came to writing code, there was none better. I have lost count of the number of times he helped me out with tricky coding problems, so snippets of his code exist in all my big projects. A true gentleman too. Raymond you will be missed. Thanks Pat for sharing.
  8. 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
  9. Thanks for the confirmation Peter. Must be something else going on. I'll keep digging. List Boxes - so many options, so little time!
  10. 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!
  11. 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.
  12. 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?
  13. 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.
  14. 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
  15. 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!
×
×
  • Create New...