Jump to content

twk

Member
  • Posts

    874
  • Joined

  • Last visited

Reputation

464 Spectacular

Personal Information

  • Occupation
    Architectural Designer
  • Homepage
    www.cba-design.co.nz
  • Location
    New Zealand

Recent Profile Visitors

5,736 profile views
  1. 1) For your first post: The second parameter for the ForEachObject must be a criteria string. so: vs.ForEachObject(sel, "T=RECT" & "T=NURBSCURVE") should actually be written as: vs.ForEachObject(sel, '"T=RECT" & "T=NURBSCURVE"') 2) For your most recent post: why are you using VSEL and SEL? shouldn't just SEL work? tips: You could place criteria strings in variables: crit_string_1 = '"T=RECT" & "T=NURBSCURVE"' so it would be: vs.ForEachObject(sel, crit_string_1) and also leveraging pythons f-string capabilities: type_1 = 'RECT' type_2 = 'NURBSCURVE' crit_string_1 = f'"T={type_1}" & "T={type_2}"'
  2. @Poot, yes have saved views in file, still no luck. Have you got it to work?
  3. Great! @BenjaminGuler Have installed and tried running, but just have blank window when trying to run from the web palette (as per instructions)
  4. @Gunther no place to enter promo code, and no email received either. Keen to see if anyone has actually got the promo to work.
  5. Hmm, this was for 2023 before 2024 came out correct? Has anyone got the free promo to work? it isn't clear in the customer portal. It says click promo code, but that just takes you to a help file location on loggin in. No promo code provided. @Gunther any idea how to test this? Cheers and happy new years!
  6. Ha!, Great minds think alike! Have implemented this as well. However the data manager settings are sporadic with project shared files. Sometimes saving and sometimes not. Continuing to test this.
  7. Yes this is the work around we use at the moment. Wondering if we could tag an object or data tag, restricting tags to a certain class
  8. Too little time to troubleshoot/read help file, anyone knows if its possible to tag objects based on their class? I have a generic data tag style setup that reports the area of any tagged object, however I want to only tag my footpaths, (classed as SITE-Foot Paths). Is this possible?
  9. Ahh looks like Archicad beat VW to the punch..
  10. the path has to be absolute when executing inside vectorworks. Not: filename = "output.csv" leaving it as "output.csv" is telling Vectorworks' python interpreter to save it the installation directory of vectorworks. Try specifying a full path to another location eg. filename = "C:\Temp\output.csv" Also look at DataFrames for python using the pandas module. It has better functionalites for Data Wrangling. You'll need to write your own module for converting a worksheet table to a pandas dataframe, then once its in dataframe format, you can do many things with that dataframe. Export to csv, xls, json, etc
  11. Interesting... Confirming on Windows PC that am having the same behaviour as @WhoCanDo. VW2024 18.10.2023_12.29.12_REC.mp4 VW2023 18.10.2023_12.30.10_REC.mp4
  12. All versioned scripting functions are listed here (for python/vectorscript): https://developer.vectorworks.net/index.php/Vectorworks_Scripting#Version_Information Also the local file shipped with Vectorworks has the ability to see the obsolete functions and functions by Version: <Your Installation Location>\VWHelp\Script Reference\ScriptFunctionReference.html
  13. Try setting it to layer plane vs.SetObjectVariableBoolean(handle, 1160, true/false) you can also set it to a working plane, but I forget the syntax.
×
×
  • Create New...