Jump to content

Marc Davies

Member
  • Posts

    92
  • Joined

  • Last visited

Everything posted by Marc Davies

  1. Thanks for the warning. Good advice. I can see how it might make up functions. I will only use it as a starting point while i brush up my Python scripting and revert to Developer Library functions for the most part.
  2. Francisco. Sorry no immediate answer for you. However, my experimenting with chatGPT means you can get it to write most of a Vectorworks script for you to do what you want. Be aware It is unlikely to work at first attempt, but if you are very specific about your Vectorworks requirements, then it will write the outline of a script for you to adjust to your requirements. To be honest I have not had time to get to a final successful result yet, but at least I now have the format of the script ready to tweak to my own requirements. Hope this helps.
  3. For a while Filemaker Pro ODBC was working again (at least on a Mac), but SQLite was far really more reliable with a direct connection. However in Vectorworks 2024, the option to connect to SQLite is not available at least not in current build 1. There seems to be an error in the connection dialog box so SQLite is not showing. Aargh! There are only options for ODBC or manually typed connection string. I have tried various, but none work to SQLite databases. Anyone have any similar experience? Please VWX supply a fix as soon as possible.
  4. In VWKs 2024 the dialogue box for SQLite connection does not show up. A new minimal ODBC and "Use Connection String" dialog opens instead of the Database Connection dialog box shown as previous versions and current help file. Are SQLite databases no longer supported?
  5. Ah, I see. A separate record just for the tag colour. I may need multiple data tags switched on if say I want the carpet colours to show on other objects, but yes that would work for me. (It may need some explaining for non-tag users). Many thanks Tom.
  6. Yep, sounds good Tom. Many thanks, I can see how that would work. I will need to be filter them back out of any Record-based BofQuant's worksheets but good for the short term. For Vectorworks developers: It would be really useful to have this included as a DataTag option as not everyone is conversant with setting up DataTags.
  7. To follow on... Can the DataTags themselves be coloured by Data? That is, instead of all tags of a single type having a colour as the example above, can all tags dynamically linked to similar data be coloured by that data value? I have a single Code tag for, say, carpet specification, but different code values for each type of carpet assigned dynamically via a record. I know I can colour the carpet via DataVis, but can I colour the tag background?
  8. Brilliant Pat. That is great. i understand the concept and knowing how i can get Database info directly into a spreadsheet cell will help me in other areas also no doubt. As is so often the case with your advice, it feels like another Vectorworks door has opened to me. Many thanks.
  9. Hi Pat, formula (=AREA) at the moment, in a database header. The database has criteria looking at a series of polygons, in this instance, with a particular Record set. I might well be looking at Records attached to symbols on another occasion, but my Database criteria will hold the reference to the Records, not the cell formula like your second example. Would it help if I changed my criteria/formulae M
  10. Ah, sorry Silvano. Yes, i missed the word “TYPE “ in your reply. That is exactly what I have had to do. 🙂
  11. Thanks, Both. Silvano, your solution works for Spreadsheet cells but not for Database header row’s unfortunately as it sets up a circular reference. I have tried to reference the Area cell into a non-database row, as a Value, but no joy there either. My temp solution is to ask users to manually type the header Area value into the formula = Area / <<typed total Area value>> which works for each database row with % column set to “Percentage” format. i need to be able to extract the total Area as a value into a spreadsheet cell. I’m sure you will have a solution Pat. thanks, Marc
  12. I am trying to find percentages of areas in database rows against the total value in the header for all areas. However I don't seem to be able to extract the total area values without a circular referencing problem. i.e. I cannot use the total value from the database header row to use in a formula in the percentage values column. This is surely a simple issue, but I am scoring well below "SIMPLETON" for this task. Anyone else solved this recently?
  13. As Pat alluded previously, one can attach data to Symbols using an external data source i.e. a CSV file, where a code for each object can lookup the external data for other fields. This works for both Symbol INSTANCES and for DEFINITIONS. For INSTANCES multiple symbols can be found in the drawing in one hit, whereas for DEFINITIONS it is a one-to-one connection to build the first link. After that however, any changes in the external data are reflected on both Instances and Definitions within a file. This is achieved by either ODBC connection e.g via FileMaker Pro or via SQLite connection, the latter of which does not require ODBC and is consequently more stable especially on a Mac at the moment. SQLite is built in to every Mac and free front-end software is available to load up the CSV file such as "DB Browser for SQLite". The linking look-up code needs to be unique and set to be a Primary Key in DB Browser.
  14. I'm using the Data Manager to manage Class-based Objects, concatenating text from multiple fields into a new field for symbols and groups (e.g. of furniture) in a drawing. Basically using a room name and object name concatenated into a new field. It works fine for adding data into already Classed objects, but as soon as the Class is changed, all the data in the object fields is wiped out!!! So if I add data to objects which are created in the wrong Class (i.e. imported files) I need to change Classes before applying the Data Manager Class-based calculations. I cannot change classes for those items without losing the data. It appears that the data is linked not only to the object but also the Class once the Data Manager is employed. Can this be changed so that the data remains in the record independent of the Class? Is this a bug or a feature I'm not sure how to benefit from?
  15. Data Visualisation is great and works really well with small data sets and also for large (imported) data sets mapped to specific line and fill attributes. However, the attribute mapping drops out each time a new data set is imported or a new record applied to objects. It would be really useful if attributes could be mapped to data and saved as a data/attribute matching set to be applied even if the data is input from a different internal record or a different external (e.g. SQLite) database. That way a set of 20 or so highly specific fill/line/colour/hatch/pattern attributes would not need to be remapped in each file where they occur, but simply reimported into each Vectorworks drawing file. [Template files or user dataVis sets will not currently hold onto the attributes if the data source is different or even if the record set is accidentally deselected (beware!)] This is my wish.🙂
  16. I know one can duplicate a DataVis, but how does one use the same attributes for a different data set? I have a series of carefully crafted attributes including line styles, fills, hatches etc against a number of fixed values (I typed the values manually as I need to use them for a template file). I want to use the same attributes when I attach looked up (SQLite) data to objects with matching values. This will format all my drawn objects correctly agains the external data. However, when I select a different Record set, I lose all the applied attributes which took many hours to set up in the first place. Is there any way to retain/copy the attributes for a different record set? The only way I can think of at the moment is to Data Map the records from an imported set into my template set, which is "faffy". [technical verb: "to faff"].
  17. [Another in my series of ODBC queries] I am using both Object Database connections with SQLite plus highlighting imported data with the excellent DataVisualisation. SQLite data connection works fine, but the DataVis doesn't update when object connections are amended. One way to force an update is to save and reopen the file, which is less than ideal. Is there another option to recalculate the DataVis e.g a button (similar to "Recalculate" in worksheets) which would be available to other users i.e. more built-in than a script (but a script might help in the short term).
  18. Is it only broken for me or is anyone successfully using ODBC connection from Vectorworks 2022 or 2022 to collect external data on a Mac? SQLite queries (non ODBC) work fine but I really need to link up to FileMaker Pro for wider database functions. Vwks has been crashing after 5 mins or so every time for the last three versions 2022, back through 2019.
  19. Thanks Silvano. I have a few hundred space objects to work through i.e. each room so I need to check if I can change them in one go as individually is not an option (for the time available to me).
  20. I'm not certain how many users are regular creators of adjacency diagrams, but I'm looking to create a multi-building, multi-floor bubble diagram listing University Faculty spaces as CIRCULAR area bubbles, and not as the area squares as VWks Spaces are drawn by default. Is there a simple checkbox for this [please] or will it require scripting/marionetting?
  21. SP4 notes say ODBC connection is fixed (as did SP3), but Vectorworks is still crashing within 5 minutes of updating the drawing with data drawn from an external FileMaker database. This long-standing issue (nearly two years since successful connection) is preventing good BIM data connections for Vectorworks, a real shame.
  22. Another thought which has given me problems in the past, which you may already know, but anything is worth a try... Make sure your primary key field definitely has only unique values as it trips up everything if there are two records with the same key value.
  23. ODBC is really difficult to useconsistently at the moment. Can you export to SQLite instead? This seems to work best on a Mac as it avoids ODBC connectors, however, I don't know about a PC I'm afraid.
  24. Your response is exactly why I love this forum. Really helpful and a complete solution. Many thanks Michael. I will try out in earnest tomorrow. I can use the UUID number to create a match key to an SQLite Database row to fetch additional data back into Vectorworks and populate additional record fields. I have 100 fields to populate for each symbol and over 8000 symbol instances so this is really the only option. Cheers, Marc
  25. I have seen previous posts for scripting the UUID into a record so that it can be viewed in a worksheet, but not examples of the actual scripts. Does anyone have such available to share? The issue I have relates to tagging individual furniture symbols with a unique code for linking to external SQLite database for extracting finishes specifications via ODBC - materials and colours need to be applied to similar symbols but may vary for individual objects (8000 of them in current project). I know UUID's exist for all items, but I have no quick means of identifying these in records (and worksheets). I also know how to use the Data Manager to pipe the codes through to my own record, just not how to access them in the first instance. The GetObjectUUID(h) function may work in a script but not in a worksheet as far as I can tell and I don't know how to script it.
×
×
  • Create New...