Jump to content

MeTheMachine

Member
  • Content Count

    50
  • Joined

  • Last visited

Community Reputation

1 Neutral

About MeTheMachine

  • Rank
    Apprentice

Personal Information

  • Location
    United States

Recent Profile Visitors

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

  1. I do a lot of tracing over PDFs for lighting plots. Often, the set designer will draw walls that don't conform to the standard wall tool... or at least with my level of experience. This isn't a complex wall, but it was easy to explain my question. As you can see in the image: # 1 - Starts with a wall 4", which is a standard width for a set wall. # 2 - Jumps to a larger width. # 3 - Adds a little over hang. Typically, I would draw the 4" wall and stop when it changes its size. Then create a new wall with whatever the new size would be, and then just join them. This gets annoying with more complex sets. Is there a simpler way to do this? Using the standard "Create Walls from ...' has produced undesired results. Any suggestions would be great.
  2. Its entirely possible... I was looking at other AppleScripts examples and they were using POSIX path... Applescript makes my head hurt...
  3. I'm trying to use a program on the Mac called Hook My goal is to link or "hook" all the PDF files I use for a drawing to the vectorworks file I'm working in. Currently, I can have 12 different sets, which is 12 different vectorworks files, and all of them have up to a dozen PDF files from Art Dept. So if I'm working on "Haunted Castle.vwx", when I invoke Hook, it will pull up all the PDFs I have linked to "Haunted Castle.vwx" file. With that in mind, I'm probably going about this all wrong. I wrote a python script that I use to capture the filepath and set it to my clipboard. Keep in mind, Im not a programmer but it works... import subprocess def Path(): filePath = vs.GetFPathName() filePath = filePath[1:] subprocess.run("pbcopy", universal_newlines=True, input=filePath) vs.AlrtDialog(filePath) Path() Following the instructions for creating integration scripts Once I run the python script, in vectorworks, I use this applescript to create the hook path -- Append clipboard to Hook Link set cp to POSIX path of clipboard -- Get Address set hookPath to "file://" & (the clipboard) And I use this applescript to create the name of the hook... using the name of the document tell application "Vectorworks 2021" set current_name to name of item 1 in windows end tell --- I tried to use the "Run python script" in Applescript but kept getting an error. I'm sure its something I'm doing wrong. I didn't know if it was possible to just get the filePath of the document in applescript? It would take the manual execution of the python script, out of the mix... I've hit my afternoon lull, so I hope this makes sense.
  4. Is it possible to get the filepath of a document using Applescript? I didn't know where exactly to post this question. Thanks for any help.
  5. Seems like something got wonky with my conversion from auto hybrid to normal (for lack of a better word) symbol. Looking into the 3D components, there was also a symbol within a symbol. Fixing this, seems to have fixed my problem. Thanks for the help, markdd.
  6. I'll have you ask the original file owner... So I did notice that editing the 2D components had the same symbol within itself. I fixed that so now its only offsetting by 2 and not 3.... Is it possible its selecting the 2D and 3D objects? I would assume it would indicate 6 objects selected in the OIP and not the 3, which is expected.
  7. No... That being said, I'm pretty certain it is in the symbol itself. The symbol was originally an auto-hybrid, however I tried to convert it to non auto-hybrid by copying ungrouping everything and copying the 2D and 3D parts.. Perhaps something went strange
  8. I'm having an issue with numbering instruments in spotlight. For whatever reason, the lights do not properly increment from fixture to fixture. This has happened in multiple files, so perhaps its the symbol or maybe its a bug? Regardless, I'll include a video to show whats happening. You'll see that I set the channel to increment by 1 and the dmx address to increment by its footprint, which is 17.... VW Numbering Issue.mov
  9. Figured it out.... Under Spotlight Preferences, the "Automatically assigning the class of all lighting instruments" was activated...
  10. I'm experiencing a behavior that I haven't seen before. VW has created a class called "Symbol Name-..." and will not let me change the class for the symbol. It seems to be related to the specific document, when I create a new document and import the symbol, I can change the class freely. Any thoughts?
  11. So I got this working... Thought I would share my steps. First, I created a folder called "Python Modules" and set it as a path in VW script options. I downloaded and copied Pydevd to the Python Modules Folder. Per, PyCharm instructions, I got the "pycharm-debug-py3k.egg" and copied it to the modules file, also. I created a PycharmDebug.py file that imports sys and appends the egg file to the path. In the script I want to debug, I add the following: import PycharmDebug import pydevd pydevd.settrace('localhost', port=1090, stdoutToServer=True, stderrToServer=True) With that in mind, I'm almost certain I made some unnecessary/extra steps. Any suggestions or thoughts would be helpful.
  12. I'm trying to use Pycharm to debug scripts, but I'm having trouble getting Pycharm and Vectorworks to communicate. My suspicion is that I'm not setting the correct python path in VW, under Tools>Plugins>Plugin Options. I have created a new project in PyCharm called "Vectorworks Debug" in /Dropbox/PythonProjects/PycharmProjects/Vectorworks Debugging. I've set up my environment paths like so: I've added the Python Sample Menu Command and uncommented out the lines, import pydevd and the settrace. import vs import ui.dlgHandler def execute(): # import pydevd # pydevd.settrace('localhost', port=1090, stdoutToServer=True, stderrToServer=True) data = ui.dlgHandler.DialogData() data.operationValue = "value" data.operationValue1 = 11 if ui.dlgHandler.RunDialog(data): # ok updates the 'data' from the local dialog data data = ui.dlgHandler.dialogData vs.AlrtDialog("The dialog was confirmed. The value is: ", data.operationValue) else: # cancel keeps the 'data' unchanged vs.AlrtDialog("The dialog was CANCELED. The value is: ", data.operationValue) When I run the Sample Menu Command, I'm getting an import library error No module named pydev Importing sys and print(sys.path) in a VW scripts gives me the following paths. /Users/me/Dropbox/Vectorworks/User Folders/Plug-ins/Marionette/ /Users/me/Dropbox/PythonProjects/PycharmProjects/Vectorworks Debugging/ /Applications/Vectorworks 2018/Vectorworks 2018.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5 /Applications/Vectorworks 2018/Vectorworks 2018.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages /Applications/Vectorworks 2018/Vectorworks 2018.app/Contents/Frameworks/Python.framework/Versions/3.5/../../../../../../Libraries/PythonExternals /Applications/Vectorworks 2018/Vectorworks 2018.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/lib-dynload /Applications/Vectorworks 2018/Plug-ins/ /Users/me/Dropbox/Vectorworks/User Folders/Plug-ins/ /Users/me/Dropbox/PythonProjects/PycharmProjects/Vectorworks Debugging/ /Users/me/Dropbox/Vectorworks/User Folders/Plug-ins/Marionette/ I've tried also adding '/Users/me/Dropbox/PythonProjects/PycharmProjects/Vectorworks Debugging/venv' to VW paths but with no success. Any suggestions would be helpful and appreciated it. Thank you. --- Eventhough I haven't gotten past my import error, here is how I've set up Pycharm remote debug. If anyone sees anything wrong, let me know.

 

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.

×
×
  • Create New...