Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Nik

  • Rank

Personal Information

  • Occupation
  • Location
    United States

Recent Profile Visitors

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

  1. Nik

    Using try/except

    should have been more clear... need to check if the symbol exists in the drawing symbol library. vs.GetObject works to check if a symbol has been inserted in a drawing. try/except does work for other types of errors. but maybe not for VW thrown errors? The following bit of code works as expected try: x = 9/0 except: vs.AlrtDialog('This is division by zero!')
  2. Trying to figure out a quick and easy way to see if a symbol exists in a drawing. There doesn't seem to be a straight forward way of doing this that I can find. So I figured I would use "try/except". But vw still throws an error ūüėē symName = 'mySymbolName' try: vs.Symbol(symName,0,0,0) except: vs.AlrtDialog(symName+' doesn't exist in this drawing')
  3. Mostly just pop in and out when I'm testing snippets of code, or setting up a new tool.
  4. Here's what I'm trying to do: User selects an object User then selects the PIO tool and inserts the PIO PIO uses info from the selected object as a parameter value. Currently: I get the handle to the user selected object using LSActLayer or FSActLayer. Use GetRField to extract the information from the object. Run GetCustomObjectInfo to get the PIO handle Write the information to the PIO using SetRField The problem I'm having is that it appears that a PIO resets(vsoGetEventInfo #3) itself 3 times before the creation is finished. On the first reset event the handle still points at the user selected object, on the second reset event the handle is empty, on the third reset the handle points to the new PIO. Short of writing the information to a file how do I get the information from a user selected object into a PIO on creation?
  5. There were a ton of resources on vectorlabs.info Unfortunately it seems to have disappeared. Anybody know where it went or if the information was archived somewhere?
  6. Everytime I exit Plug In Manager I get a pop up that says "Only Plug-in Objects in the active document have been updated. You must close and open the other documents to update them". How do I get this this warning to stop appearing? Not having a second VW file open is not a useful answer...
  7. Nik

    Phantom Records

    That gets rid of all the records not just the ones without an associated object. I have records within the file that are not associated to an object, best as I can tell.
  8. Nik

    Phantom Records

    I have a file that has "phantom" records. They only seem to appear when I "Export Database..." of that particular Record Format. If I do a search for them using the information that's in a field nothing is selected. If I generate a worksheet within VW the "phantom records" don't appear as lines in the worksheet. Any thoughts?
  9. What are some techniques folks use to keep scripts synced across several computers without needing to go to each one and reinstall?
  10. LW requires continuos live access to the xml file. The small pauses of accessibility that are inevitable with any cloud based drive interrupts LW writing to the xml and then LW panics. Your best bet is to keep the xml file on your local drive.
  11. Awesome! Making the switch from vectorscript to python is a bit of a challenge!
  12. Having trouble getting vectorscript functions that require a vector as parameter to work properly. In the snippet of code below, I think that ang should equal 45¬į. But the dialog tells me -90¬į and then I get the error shown in the attached file: pt= [1,1] ang = vs.Vec2Ang(pt) vs.AlrtDialog(ang)
  13. What printer to use, page size for the printer to use. I can set the printable area using the SetDrawingRect.
  14. Is there really no way to change the Page/Printer setup of a sheet layer using VectorScript without resorting to the DoMenuTextByName command? There's gotta be a way!


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