Jump to content

Benedick_Miller

Member
  • Content Count

    21
  • Joined

  • Last visited

Everything posted by Benedick_Miller

  1. OK - thanks - I'll give it a try.
  2. @Dieter @ DWorks Hi, I am new to Python, I am updating some old VS scripts to python, for Vectorworks 2019. Your Library looks great, but is it still being maintained? Can I expect it to work with Vectorworks 2019?
  3. Hi, I am just starting off with python for Vectorworks - I use Visual Studio Code (VS Code) as my IDE on a Mac (MacOS 10.13) I have downloaded vs.py but I have no idea how to set up VS Code to "see" vs.py for intelli-sense or linting The instructions: "To help intelli-sense for Vectorworks Python script APIs, you can point your IDE to the file File:Vs.zip (download, unzip, and place it appropriately so the IDE could find it)" don't help me much. Can anyone explain the steps needed to point VS Code to vs.py (or an alternative)?
  4. Benedick_Miller

    how to use vs.py in visual studio code

    @twk thanks again for your help. I have switched to PyCharm Community Edition now, thanks for the tip 😀
  5. Benedick_Miller

    Python message box inside Vectorworks

    continued... @DomC - thank for this example, it's really helpful for learning. However there seems to be a mistake in the indenting in your example code, which of course with python is deadly! I got it to work like this: import codecs import os.path import os homeDir = os.path.join(os.path.expanduser("~")) Pfad = '{}/Documents/TempVWFiles'.format(homeDir) FileName=vs.GetFName() File = homeDir+'/Documents/TempVWFiles/'+'Klassenliste_'+FileName+'.txt' d = os.path.dirname(Pfad) if not os.path.isdir(Pfad): os.mkdir(Pfad) KlassenAnzahl=vs.ClassNum() f = codecs.open(File, "w", "utf-8") x = 1 while x <= KlassenAnzahl: Klasse = vs.ClassList(x) x= x+1 f.write('\''+Klasse+'\''+',') f.close() vs.AlrtDialog('Die Datei wurde an folgende Stelle gespeichert:'+File) import subprocess import sys path=Pfad if sys.platform == 'darwin': def openFolder(path): subprocess.check_call(['open', '--', path]) elif sys.platform == 'linux2': def openFolder(path): subprocess.check_call(['gnome-open', '--', path]) elif sys.platform == 'win32': def openFolder(path): subprocess.check_call(['explorer', path]) openFolder(path)
  6. Benedick_Miller

    Python message box inside Vectorworks

    answering my own question above: import codecs - works fine now - the problem was caused with copy /paste (for some reason) - I had to re-write the script by hand to get it to work.
  7. Benedick_Miller

    Vectorworks Abbreviations' Glossary

    thank you for this! PIO was killing me!
  8. Benedick_Miller

    comfy w/ vectorscript lost w/ python

    @twk the link you posted above no longer works - can you post an updated link? the original link: https://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=220857#Post220857 links to a nice message: "The Vectorworks Community Board has been upgraded with a bunch of great new features and moved to this location. But don’t worry — ALL of the content has been migrated along with it, so anything that was on the old forum is still available for you to use and reference." but a search for #Post220857 just leads me back to this thread, which ain't much use!
  9. Benedick_Miller

    comfy w/ vectorscript lost w/ python

    @JBenghiat this is perhaps the most helpful single post I have seen on the topic of transitioning from VS to Python. Thank you! - could you please get this posted on the first page of the developer wiki : http://developer.vectorworks.net/index.php/Python - which is extremely terse for a beginner.
  10. Benedick_Miller

    Python message box inside Vectorworks

    I care! - I have old tools I wrote in Vector-script which I need to update, so I am learning python.This looks like a good learning script, but I get an error: File "<string>", line 1 import codecs I am using Vectorworks 2019 on MacOS 10.14.2
  11. Benedick_Miller

    how to use vs.py in visual studio code

    hi twk, thank you very much for this, very helpful. I will try this later. It makes sense. Sorry for "dumb" questions - I am trying to teach myself Python at the same time as learning how to use VS code, so I can update my ancient Vectorscript plugins. All the help in this forum is much appreciated.
  12. Benedick_Miller

    how to use vs.py in visual studio code

    Thanks for the reply. The trouble is I don't know how, or where, to edit the VS Studio search paths. I'll keep trying!
  13. Benedick_Miller

    Edit lighting instruments INSTANT CRASH

    Hi Tcourse, when you say the RuntimeCache folder does not exist: how far along the path do you get? Here is the full path on my machine: /Users/*myUserName*/Library/Application Support/Vectorworks/2017/Plug-ins/RuntimeCache/
  14. Benedick_Miller

    Align and Distribute Tool Crash

    I installed SP3 today and indeed the problem has been fixed. Thank you Vectorworks!
  15. Benedick_Miller

    Align and Distribute Tool Crash

    I have received a reply today from Vectorworks Support: This issue is know and will be fixed in the next service pack: SP3 which should be available in the next 2-3 weeks. Note: I use the original English Vectorworks not the German version.
  16. Hi, I have a clean install of Vectorworks Spotlight 2017 SP2. I have used the straight Truss tool to create a Lighting Position. This worked fine initially. Now when I change the z height of the truss the truss dissapears, in 3d and in Top/Plan view. I don't understand what is going on here. Any help much appreciated. See attached files for details. diappearing_truss.mp4 benlight_demo_show01A.vwx
  17. Benedick_Miller

    Truss Disappearing when changing z height

    Hi Mark, Thank you. I also got the same answer from Vectorworks Support (Germany). This fixes it. I have to say: who knew?! Is this a documented feature of Spotlight? I did indeed change the symbol name in the resources manager at some point after creating the lighting position. I have often edited symbol names for symbols I have created, in Vectorworks Fundamentals, and the symbols stay linked to the symbol names. This is the first time I have changed a symbol name for a Spotlight Lighting Position Symbol. There was no warning when I did this. The drawing looked the same until I edited the z height of this position, at which point it just disappeared without any error message or explanation. Now that I know that if I want to change a symbol name for a spotlight object, lighting position, lighting fixture etc. I will need to go to each instance of the symbol and enter the new symbol name in the info palette. Is this really a desired feature of Vectorworks Spotlight? It feels like this goes against the normal behaviour of vectorworks symbols.
  18. Benedick_Miller

    Align and Distribute Tool Crash

    Me too :-( see attached BTW This is a clean install of Vectorworks 2017 Spotlight SP2. align_and_distribute_issue.zip
  19. Benedick_Miller

    Edit lighting instruments INSTANT CRASH

    I have solved this issue on my system. I spoke to Vectorworks Support in Germany - They think the problem was caused by my Vectorworks User Data and Preferences Folder being a Dropbox folder. However whilst trying to re-set to the default preferences folder - to test the theory - I could not start Vectorworks. In the end I uninstalled Vectorworks (including removing all application support and preference files) downloaded the latest version (SP2) and installed from scratch. Everything is working now. The above mentioned crash does not occur. Unfortunately I cannot confirm that Dropbox was indeed causing the problem as I couldn't test this. I can pass on that I've been told that the Vectorworks User Data and Preferences Folder should not be a Dropbox folder. Re-installing a clean Vectorworks has fixed the problem.
  20. Benedick_Miller

    Edit lighting instruments INSTANT CRASH

    Hi, I am also having this problem. I have submitted a report to Vectorworks Support in Germany. This looks like a serious bug. I have noticed that one doesn't even need to edit anything in the edit instrument dialog - simply clicking OK after opening the dialog without making any changes will cause my Vectorworks to crash immediately. Please could you guys give details of your system to compare? I am using Mac Version Vectorworks Spotlight 2017 SP2 MacOS 10.12.3 B-series Dongle I have tried the attached file on two different Macs - both with the same OS and the crash is immediate. LIGHTPLOT_TEST1.vwx
  21. Benedick_Miller

    Vectorworks 2015 , 64bit and other technical questions

    I have similar issues with Vectorworks 2015, not just me but all 6 of us in the office have these issues: 1. If i change Dongles to a different dongle than the one use for the installation Vectorworks 2015 refuses to start reporting "a dongle was not found... Vectorworks will now quit" ´There is no chance to enter the Serial number for the attached dongle, as there always has been in the past. It's a pain. 2. Vectorworks 2015 pauses every few minutes, on our macs we get the beach-ball effect. It is not only very annoying it also negatively affects productivity. Hope this gets fixed very soon.

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×