Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About MeTheMachine

  • Rank

Personal Information

  • Location
    United States
  1. Pycharm Debugging

    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.
  2. Pycharm Debugging

    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.
  3. How do I create a reference maker that increments.

    Thank you very much!
  4. I have a drawing of a 3 million sq ft building, with numerous columns that I need to label. You can see what I have going on in the uploaded image. J3, K3, L3, etc. Is there a tool/object I can put at a column and say "A" and "1" and then increment? Similar to numbering instruments in spotlight? So far I've been duplicating and editing each one. Is there a simpler way?
  5. Possibly to import/export Instrument Data

    - Yes. - Yes. The information from the OIP is great. The data generated using AutoPlot Export is more fantastic. Eventually, I would be handy to see the design layer and class the instrument is in, however, not too important. You just earned my $35.00 dollars. Like I said above, my goal is really just create a script that will export the instrument data, or custom report, or AutoPlot information that I can trigger with a keyboard command. It would be nice to have my filepath and export options saved, so no dialog menus pop up. On the flip side, the same workflow ( i know this would be a separate script) that could handle the import side and update the instruments.
  6. Possibly to import/export Instrument Data

    I understand completely. I'm experienced with Filemaker, so I'm not worried about that side of the world. Like I said, I have everything working fine (manually exporting and importing), I was just trying to automate those steps. If I get the data out of Vectorworks, whether it's json or txt, I'm fine with parsing whatever information I need into Filemaker. I've always wanted to learn Python so I saw this as a good way to begin. I'll checkout AutoPlot, too.
  7. Possibly to import/export Instrument Data

    My coffee hasn't kicked in yet, so hopefully this makes sense. I have no experience in Vectorscript or Python, but I thought it would be best to begin with Python. The general consensus from reading is Python is a great language to start learning coding. My thoughts where to use DoMenuTextByName(). On the Wiki, it states "Calls the specified VectorWorks menu command item." Like I previously said, I have no real programming experience, so pardon my ignorance... I saw in the example script for DoMenuTextByName that it used "Print". My thoughts were maybe I can plug "Export" in its place and find the index value used for "Instrument Data". The Wiki points me to: Menu Function Reference for the values I can use with the function. I saw a lot of ways to export, but not Instrument Data. Perhaps I'm reading this wrong, though. This is good to know. It does contain a record, but its a little confusing to me. I will often create my own light symbols and I attach (3) records to it: Light Info Record, Light Info Record M (metric), and Parts. The confusing part for me is, after I do this, I then select the menu command "Convert to Instrument". For instance, here is the OIP and record for a light PROIR to "Convert to Instrument" OIP OIP Data After conversion: OIP_After OIP_Data_After You'll notice at the bottom, the name now reads "1000." which is the UID used when I import and export the data to relink the instrument. Looking further into this, I found a post here that describes what is happening... Sorry for the long winded post, but I'm really not sure what record I would call up or if its actually called "Instrument Data" like the Export menu reads... I suppose the ultimate goal for the Export script would be: - Gather all instruments on the plot, regardless of active class/layer... - Export the data using tab delimiter between fields and hard return between records/instruments Then I import into Filemaker. If I do any changes in Filemaker to a record, export it... Import into Vectorworks, linking the UID (1000. to update any records in VW. --- Like I said, I have it working now, its just a cumbersome process with the same menu settings being ticked on or off.... Just trying to make it fluid, if possible. I'm open to the idea of using json to write the data, though. The ability to have Layer/Class along with other information would be nice to have and from what I can tell, is not available in "Instrument Data" export. Thanks again for any help, tips, yay's, nay's or examples you can provide.
  8. I'm trying to create an automated process that will import and export Instrument Data. I didn't know if it was possible? I have no real python experience... With that being said, I was looking at the function DoMenuTextByName() and using Export and Export Instrument Data or Import...depending on the process. I do know it will be (2) different scripts (import/export), but looking over at the Function references, I didn't see anything for Instrument Data. I thought I would ask before I spent time going down the rabbit hole and trying to figure it out. Thanks for any help and guidance.
  9. Straight and Curved truss

    The steps outlined above did not resolve my truss tool problem, so I went the extreme route. - I have uninstalled VW 2018 completely. - Reinstalled 2018. Changed no settings, nor loaded any Preferences. Kept everything default. - Tried Truss tool and it worked. - Installed SP1. Once again, changed no settings, nor loaded any Preferences. - Tried Truss Tool and it FAILED. Will have to uninstall and this time around will not update to SP1. Any other suggestions?
  10. UID Number Export

    I'm trying to build a database in Filemaker Pro and link it to Vectorworks. My goal is to have a simple plot that will carry channel and dmx address information into Filemaker. Is it possible to use vectorworks UID (ex. 1000. ) as the primary key between vectorworks and filemaker? None of the following record formats contain the UID, or as far as I can tell. https://d.pr/i/lHe04K Thanks for any help
  11. PDF/Page has moved...

    Sorry about the title, but I'm going on a little lack of sleep and not thinking clearly... Regardless, I spent this morning drawing on top of an imported PDF. Everything was great this morning, made my sheet layers and printed, but when I came back after lunch the base PDF has shifted. My workflow was: - Import the PDF and made a layer "Reference PDF" - Duplicated it (6) times and created (6) additional design layers for each duplicate. - Cropped each duplicated PDF in different places. - Locked all my new cropped section. - Added my labels. - Done. Now each layer and crop has shifted, even being locked. Along with the shift, it looks like the PDF has also been rotated too. Is it possible a I hit a keyboard combination and did something. How do I edit the size and rotation of the PDF, once the crop has been created? Is it possible I did something to the original reference PDF or should that not affect the duplicates I created? I should note that all the layers have the same scale. I'm using VW2018 for Mac. Image of Problem Sorry, but I had to blur some parts due to a NDA. In the photo, that is the (6) layers showing and the PDF is way off the crop. Thanks in advance.
  12. Pipe Clamps

    Do you have a generic one in Libraries>Object Styles>Lighting Accessory>Accessories Generic
  13. Selection Marquee Disappears

    Good to know. I tried switching back and forth between layers, but not changing visibility. I'll try this next time it happens.
  14. 2D Drawing getting stuck in 3D during Symbol Creation

    I just figured out that I had the option to make group enabled and that was causing my 2D/3D issue. I was under the impression that grouping the objects made it so I could alter the symbol, once inserted in the drawing, without affecting the source symbol? Or am I misunderstanding the whole group vs symbol? Thanks again.
  15. 2D Drawing getting stuck in 3D during Symbol Creation

    Due to some NDA's, I'm unable to submit the file. However, I'll try some of the steps outlined above in a new file. Perhaps I screwed something up messing around with all the objects before I asked the forums... Regardless, thanks for the help.


    • 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.