Jump to content

GioPet

Member
  • Content Count

    77
  • Joined

  • Last visited

Community Reputation

0 Neutral

2 Followers

About GioPet

  • Rank
    Apprentice

Personal Information

  • Occupation
    Architect RIBA Part2
  • Location
    United Kingdom

Recent Profile Visitors

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

  1. Hi Pat, thank you for your reply. I have tried using the <Folder>MyPythonPackage</Folder> but when I run the encrypted vsm in a Vectorworks installation that has no bs4 library installed, I get the following: So this is not working... In my understanding, when you say 'look for the lib as usual package with py files and include these instead' isn't that done by adding all the py files of the library in the xml Package? in this way: <File>bS4/</File> <File>bS4/__init__.py</File> <File>bS4/.py</File> <File>bS4/diagnose.py</File> <File>bS4/element.py</File> <File>bS4/testing.py</File> <File>bS4/builder/__init__.py</File> <File>bS4/builder/_html5lib.py</File> <File>bS4/builder/_htmlparser.py</File> <File>bS4/builder/_lxml.py</File> thanks for your advice. Giovanni
  2. That's the case: <?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- This file defines how the corresponding script plug-in should be packaged--><Plugin> <Package> <File>Development/code/__init__.py</File> <File>Development/bS4/</File> <File>Development/bS4/__init__.py</File> <File>Development/bS4/.py</File> <File>Development/bS4/diagnose.py</File> <File>Development/bS4/element.py</File> <File>Development/bS4/testing.py</File> <File>Development/bS4/builder/__init__.py</File> <File>Development/bS4/builder/_html5lib.py</File> <File>Development/bS4/builder/_htmlparser.py</File> <File>Development/bS4/builder/_lxml.py</File> </Package> </Plugin>
  3. Hi Joshua, thank you for your response. Yes my user folder was set to /7_Vectorworks 2017, and I keeping the xml in the Plug-in folder within that. For clarity - I have know reverted back to the standard path and still keeping the xml next to the vsm. Indeed, I don't have a 'main.py' because all my code is in the vsm. The Encryption works with no errors, but when I run the Encrypted vsm on a different installation of Vectorworks I get the error: ImportError: No module named 'bs4' (bs4 module is the BeautifulSoup module) My python call in the script is: from bs4 import BeautifulSoup So something is not working in actually binding the package with the vsm file.. any idea? here is a screenshot of my Plug-in Folder with the Development/code and Development/bs4 folders. thank you Giovanni
  4. Hello, I have been working on a few Python Scripts that use third party libraries - for example BeautifulSoup4. I intend to Encryption this script into a vsm plugin so that the external libraries are bound to it and can be used on other installations of Vectorworks. I realised that the Encryption/Obfuscation method through Vectorworks is not able to bind the external packages into the vsm file: I've included the path to these libraries in the Script Options and I am using the steps indicated by Vlado in this post for the related xml file. <?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- This file defines how the corresponding script plug-in should be packaged--><Plugin> <Package> <File>code/__init__.py</File> <File>bS4/</File> <File>bS4/__init__.py</File> <File>bS4/.py</File> <File>bS4/diagnose.py</File> <File>bS4/element.py</File> <File>bS4/testing.py</File> <File>bS4/builder/__init__.py</File> <File>bS4/builder/_html5lib.py</File> <File>bS4/builder/_htmlparser.py</File> <File>bS4/builder/_lxml.py</File> </Package> </Plugin> Can any one advise on how to resolve this? Thank you in advance. Giovanni
  5. Hello, I have been working on a few Python Scripts that use third party libraries - for example BeautifulSoup4. I intend to Encryption this script into a vsm plugin so that the external libraries are bound to it and can be used on other installations of Vectorworks. I realised that the Encryption/Obfuscation method through Vectorworks is not able to bind the external packages into the vsm file: I've included the path to these libraries in the Script Options and I am using the steps indicated by Vlado in this post for the related xml file. <?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- This file defines how the corresponding script plug-in should be packaged--><Plugin> <Package> <File>code/__init__.py</File> <File>bS4/</File> <File>bS4/__init__.py</File> <File>bS4/.py</File> <File>bS4/diagnose.py</File> <File>bS4/element.py</File> <File>bS4/testing.py</File> <File>bS4/builder/__init__.py</File> <File>bS4/builder/_html5lib.py</File> <File>bS4/builder/_htmlparser.py</File> <File>bS4/builder/_lxml.py</File> </Package> </Plugin> Can any one advise on how to resolve this? Thank you in advance. Giovanni
  6. GioPet

    Radio Button 'get-command'

    I am working on a simple Dialog with a set of Radio Buttons - depending on the selection, the script will perform different sub-procedures. I can't find a VS command to get the selected Radio Button. Any suggestion? thanks in advance! Giovanni
  7. GioPet

    How to organize classes / Ten Commands

    Hi all, in order to help the organisation of classes, I have developed a plugin that keeps your drawing structure organised when you paste objects from other drawings. If you merge incoming classes with the existing ones, the plugin remembers your associations so that you won't have to clean up your file ever again when you import objects from external consultants or other projects. This works well if you have started using AutoClassing at some point later on, and your drawings have a mix of custom and auto classes. You'll find a detailed explanation of how you can manage your classes with this tool here: [video:youtube] To download, visit https://www.smartpaste.co.uk/ I hope this helps! all the best Giovanni
  8. Hi Tui, thanks for the reply and the feedback! Most functions are available in the Free version of SmartPaste, which can is still a great addition to a simple workflow. I'll be soon posting some videos on how SmartPaste can automatically merge classes to match your structure when importing DWG/DXF files from Autocad. all the best Gio
  9. Hello everyone! I am excited to announce the recent release of SmartPaste 3.2 which features several new functions. SmartPaste is a plug-in tool that prevents the automatic creation of classes every time objects are pasted from a drawing to another, while giving you great control over your class structure in a very easy step. On this page: https://www.smartpaste.co.uk/sample-page/new-features-explained/ you will find a detailed explanation of how this plugin will maintain your drawings organised at all times while you paste content from other drawings and you won't ever need re-structure drawings from external consultants. Depending on your needs check out SmartPaste Free, SmartPaste or SmartPaste PRO. The following Vectorworks languages are supported: Chinese, Dutch, English, French, German, Italian, Japanese, Norwegian, Portuguese, Spanish. You may also take a look at some free tools for your workflow here: https://www.smartpaste.co.uk/intuitive-tools/ Looking forward to receiving your feedback and comments all the best Giovanni
  10. GioPet

    Problems Encrypting a Python Script

    That's great Dieter I am sure there will be lots to talk about! g
  11. GioPet

    Problems Encrypting a Python Script

    Thanks Josh, I will follow your indication and see if I can solve it like that, if not, I will re-code in Python entirely and avoid the problem all together. Either way I will post my results here for future reference. G
  12. GioPet

    Problems Encrypting a Python Script

    Yes, I am mixing the two languages and it's working very well if don't encrypt anything, but i understand it's not ideal. My intention is to re-write my entire code in Python in near future, but this will take me a while as the algorithm is quite elaborate (and I am still working on my Python skills) So, before I jump entirely in Python, I am mixing the two languages for an important step-release of my plug-in that requires Python functions, while I leave most of the code in VS.
  13. GioPet

    Problems Encrypting a Python Script

    Hi Dieter, If I understand correctly, I can leave the $INCLUDE .px files in my main VS script and move all my python code in one single .py file (this is then called by PythonExecute by the main VS script). Then I write the xml to package the vsm file and the py, what about the .px that are called with $include? should they also be added in the xml? Can I then encrypt the .vsm file using the cmd+opt+shift+CAPS method on from within Plug-in Manager? Many thanks G
  14. Hi Dieter, yes, I have tried vs.Chr(38) but it behaves in the same way: The following displays correctly: amp = vs.Chr(38) vs.AlrtDialog(vs.Concat('ampersand = ', amp)) but when i use concatenation (either vs.Concat or python native +) AlrtDialog doesn't display the ampersand. Bu then I used the concatenated string to make a http call I realised that all my ampersand were there as expected...
  15. GioPet

    Problems Encrypting a Python Script

    Hi all. I have always used the method mentioned by matt71: http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&Number=169223 this has always worked well for VS scripts but since I have started implementing python in some of my VS, I encounter the same problems discussed in this thread. I have followed Vladislav steps using the xml file, however when I use the command 'Encrypt Script' I get an .xxt file. Changing the extension in the encryption dialog does not work, and the xxt file is not read as a plug-in by Plug-in Manager. ..How do I get my script to be encrypted as a vsm/vso/vst?? this is pretty crucial problem, thanks in advance for any help G

 

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.

×