Jump to content

patrickbellll

Member
  • Posts

    10
  • Joined

  • Last visited

Reputation

2 Neutral

Personal Information

  • Location
    Belgium

Recent Profile Visitors

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

  1. Hmm, not sure how i used to do it (that option was a while ago) But this works perfectly. No idea why i didnt used it in that way before. To be honest, i think i didnt even use ForEachObject. Thanks for the hint and the fast response !
  2. I’m working on a Vectorworks workflow to make it easier to spot when objects with the TCF Data record have been moved.The plan is to use Data Visualization to highlight those changes. i'm not asking for a functional code, if there is, that would be great, but i first want to discover if im overlooking some obvious solutions or reasons why im running into these performance issues. How It Works My drawing has a ton of objects, but only about 4,000 of them have the TCF Data record. Each of these objects has a record (TCF Data) where I store: Previous X and Y coordinates A "Moved" boolean that tells me if the object has been moved or not When triggered, the script should: Check the current X and Y coordinates of the object Compare them to the stored values If they’re different: Update the coordinates Set the "Moved" field to True If they’re the same, do nothing What I’ve Tried So Far I’ve tried a few things, but I’m running into some issues with performance. Option 1: Iterating Through All Objects I first wrote a script that loops through all the objects in the drawing to check their coordinates and update the record. Problem: This method is super slow, especially with 4,000 objects. Even though only a small number of them have the TCF Data record, it takes way too long to process. Option 2: Using Worksheet Scripts for Filtering I tried using worksheet scripts to let the worksheet handle the filtering of objects that have the TCF Data record,thinking that this would improve the speed. Problem: While this did help a bit, the script that compares values, updates the boolean, and updates the coordinates is still kind of unpredictable. Even with just 3 objects in an empty document, it can take up to 15 seconds per object. Sidenote The script doesn’t need to run every day, so I’m okay with it taking 10 minutes or so,but the performance is still unpredictable and not fast enough. Goal: I need a solution that’s faster and more stable, and still works with those 4,000 objects with the TCF Data record,without going through every single object in the drawing.
  3. I have exact the same issue. Any solution available since this is my most used feature when moving items around
  4. I did some research but it didn't find a good answer, or I'm using the wrong search criteria. Is there a way for Vectorscript to find out which symbols are visible (Bounding box) or partially visible in a specific viewport? Patrick B.
  5. @Alexey Trebukhin I do still have this issue, not sure if the way it worked ever will come back ... But i do have another workaround, just scale the viewport (without grouping it first) with Modify>Scale Objects>Symmetric by distance. Grtz P.
  6. I do have the same issue as you @thinkingpencil It hasn't been solved i think. What is your workaround exactly ?
  7. In attachment my screen recording, first how it did work in 2020 afterwards how it doesnt work anymore in 2021 🙂 9fYKvgJZsS.mp4
  8. In VW2020 there was a way to resize a viewport and the viewport scaling would change accordingly. This could be achieved through grouping the viewport and the resize the group. This seems to be broken in vw2021 the viewport is still there but it doesn't show anything anymore. I did check all the settings again, visibility of classes and layers for that viewport etc. but it does not resolve the issue. Anyone experiencing the same behavior ?
  9. And with an integrated screen recorder tool, so you can instantly send them a short video of what is going wrong.
×
×
  • Create New...