Jump to content

r.cipriani

Member
  • Content Count

    91
  • Joined

  • Last visited

Community Reputation

13 Good

About r.cipriani

  • Rank
    Apprentice

Personal Information

  • Occupation
    Architect
  • Homepage
    www.cernaia.it
  • Hobbies
    interior design, architectural design
  • Location
    Genova, GE, ITALY

Recent Profile Visitors

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

  1. Thank you. I believe there is some algorithm that do this calculus, because the “Analyse” tool work.
  2. I need to find the intersection of a set of NURBS curves, basically obtained from the "Contour" tool from a mesh surface. By hand, I can select the "Analyze" tool and then click on the two curves and get a 3D Locus on the intersection. How can I obtain the same result using a script? I tried to select the two nurbs and then calling the tool, but obviously "Analyze" wait for the clicks... There is a way to automate this? Thank you roberto
  3. Was the script you posted in my thread “insert values referred to Working Plane in a Worksheet” I am under the impression that if you send a .vwx file containing the script the separators are always correct.
  4. In synthesis, we have to use homogeneous coordinates, in the form [X,Y,Z,H] and a transformation matrix 4x4. The product of the matrices give us the transformed coordinate. The 4x4 matrix is subdivided in zone: [ | 3 ] [ 3x3 | x ] [_______ |_1_ ] [ 1x3 | 1x1] where the 3x3 produce linear transformation in the form of scaling, shearing and rotation; the 3x1 produce perspective transformation; the 1x3 produce translation; the 1x1 produce overall scaling. The singular is that we can have this value instantly transformed simply by clicking on working plane icon in the Object Info palette, but we are unable to tabulate such values...
  5. Hi Pat, thank you! The transformation involves a matrix multiplication, and I am now searching for matrix operation in VectorScript, but I don't remember to have seen such routines. I attach some pages from Mathematical Elements for Computer Graphics (it was my Bible in the early '70!) about 3D transformation. The full book is available on internet: https://tinyurl.com/vfbsl9r Perhaps it will be better to switch to Python, with the large math libraries available for the language. I attach also a drawing with some grid and loci on it (pannello 37) and a general view of the construction. Roberto p.s. to have working the call, I had to change comma to semicolon: =RunScript(WPCoordinate; 'Name of WP'; 'X') pannello 37.vwx lobby panel mesh.vwx Mathematical Elements for Computer Graphics By David Rogers (upestech.com) (trascinato).pdf
  6. Thank you, Pat. I belive that you routine work when the working plane is parallel to the ground plane; I have to take in account also the rotation and so transform the coordinate of the 3D locus. I am now out; when back I'll elaborate more on this. Roberto
  7. Hi I have a mesh, freely oriented in the space. I set a working plane in the needed orientation, then I Create Contours parallels to the X and Y axis on the mesh, obtaining NURBS curves. Then with Analysis menu I place a 3D Locus at each crossing point of X and Y contours, naming it and in an orderly way. At this point I would populate a Spreadsheet with the coordinates of each 3D Loci. I can observe that on Object Info palette, clicking on WP (purple WP icon) I get coordinates referred to the working plane. Now, if I create a database in a Worksheet row inserting the name, X, Y, Z I get always the Active WP (blue icon) coords. So, the question is: there is a way to tell to the formula inserted in Worksheet that I wish refer to the WP? Or I have to transform the coordinates to the WP Origin and Rotation? I attach an image of the Worksheet, the drawing and info palette showing the different values. Any help will be appreciated. Roberto Schermata 2020-01-10 alle 12.54.46.pdf
  8. Ok! THANK YOU!!! I now understand how to do! THANK YOU THANK YOU THANK YOU!!!
  9. Hi Jos, I don't understand your post. I need to create a Text Along Path using Vectorscript, but I don't found a call nor a menu chunk to insert in DoMenuTextByName(...
  10. I need to use Text Along Path in a script. Anyone has an example on how to do? I was'n able to call DoMenuText... Thank you ciao roberto
  11. Hi Alan, thank you. I understand the way I can proceed and now try to adapt the to the full process.
  12. Hi, Pat, thank you. Actually I select all and Intersect, having selected all the small circles and part of it and transfer the selection on a new layer. Your look better, and I missed the Criteria "Location is within".
  13. I have a rectangular matrix of circles (but it can be also an irregular group of circle), a larger circle and the necessity to count the small circle inside the larger. This is a component of a workflow where I have to select a given number of small circle, extrude them and subtract from another solid. Actually I draw the matrix, draw a circle of surface calculated multiplying the area of the square which contain any small circle by the number of circles, retrace the circle with the Polygon Marquee Mode and read the number in the Object Info Pallette, modify the radius of the big circle and so on. The most time consuming operation is tracing, so if I can automate the count of object inside I will be very happy! I attach a demo file with the matrix and a circle, in VW 2017 format. Thank you to anyone can help me. Roberto test selezione inside.vwx
  14. Hi, thank you for your support. Yes, narrowed to my user account, and no special characters... the full path to user folder (rubbanew is my account): /Volumes/rubbabook/Users/rubbanew/Library/Application\ Support/VectorWorks/2017/Python\ Externals and the full path to the Vectorworks 2017 folder: /Applications/Vectorworks\ 2017\ vari/Vectorworks\ 2017/Libraries and the ownership of files: rubbabook:2017 rubbanew$ ls -lsa total 65568 0 drwxr-xr-x@ 22 rubbanew staff 748 24 Mar 17:38 . 0 drwx---r-x 10 rubbanew staff 340 31 Mag 2016 .. 40 -rw-r--r--@ 1 rubbanew staff 16388 24 Mar 17:31 .DS_Store 8 -rw-r--r-- 1 rubbanew staff 210 10 Ago 2016 CSHRedirect.html 80 -rw-r--r--@ 1 rubbanew staff 40091 16 Mar 18:28 DXF_DWG_DWF Import Log 8 -rw-r--r--@ 1 rubbanew staff 1998 24 Mar 17:38 Error Output 0 drwxr-xr-x 3 rubbanew staff 102 25 Mag 2016 Extras 0 drwxr-xr-x 20 rubbanew staff 680 24 Mar 16:02 Libraries 0 drwxr-xr-x 3 rubbanew staff 102 25 Mag 2016 Plant Database 0 drwxr-xr-x 12 rubbanew staff 408 24 Mar 17:37 Plug-ins 0 drwxr-xr-x+ 7 rubbanew staff 238 24 Mar 16:38 Python Externals 0 drwxr-xr-x 2 rubbanew staff 68 24 Ott 22:09 Renderworks 0 drwxr-xr-x 12 rubbanew staff 408 3 Ott 21:26 Settings 19576 -rw-r--r-- 1 rubbanew staff 10020332 24 Mar 17:38 VW User Log Sent.txt ....... etc .... the only difference seem Python Externals have extended permission ... rubbabook:Python Externals rubbanew$ ls -lsa total 16 0 drwxr-xr-x+ 7 rubbanew staff 238 24 Mar 16:38 . 0 drwxr-xr-x@ 22 rubbanew staff 748 24 Mar 16:28 .. 16 -rw-r--r--@ 1 rubbanew staff 6148 24 Mar 16:39 .DS_Store 0 drwxr-xr-x+ 26 rubbanew staff 884 24 Mar 16:20 numpy 0 drwxr-xr-x+ 9 rubbanew staff 306 24 Mar 16:20 numpy-1.10.4.dist-info 0 drwxr-xr-x+ 32 rubbanew staff 1088 24 Mar 16:20 scipy 0 drwxr-xr-x+ 9 rubbanew staff 306 24 Mar 16:20 scipy-0.16.1.dist-info rubbabook:Python Externals rubbanew$ cd numpy rubbabook:numpy rubbanew$ ls -lsa total 576 0 drwxr-xr-x+ 26 rubbanew staff 884 24 Mar 16:20 . 0 drwxr-xr-x+ 7 rubbanew staff 238 24 Mar 16:38 .. 8 -rw-r--r--+ 1 rubbanew staff 1375 24 Mar 16:20 __config__.py 16 -rw-r--r--+ 1 rubbanew staff 6808 24 Mar 16:20 __init__.py ... etc.... I quitted and restarted VW between each test... The content of Error Log files is: Error: Invalid callback function parameter type. Parameter index= 0 name=PolyHd File "<string>", line 1919, in <module> File "<string>", line 1371, in RunNode File "<string>", line 482, in RunNode File "<string>", line 462, in GetArea File "<string>", line 1, in <module> Error: Handle variable is NIL. Error: Invalid callback function parameter type. Parameter index= 0 name=handleParam File "<string>", line 1919, in <module> File "<string>", line 1727, in RunNode File "<string>", line 727, in RunNode File "<string>", line 650, in vsLibFunc File "<string>", line 1, in <module> Error: Invalid callback function parameter type. Parameter index= 0 name=objectToDuplicate File "<string>", line 1919, in <module> File "<string>", line 1846, in RunNode File "<string>", line 848, in RunNode File "<string>", line 1, in <module> Error: Handle variable is NIL. Error: An incorrect object is described. Error: Invalid callback function parameter type. Parameter index= 0 name=objectHandle File "<string>", line 1919, in <module> File "<string>", line 1846, in RunNode File "<string>", line 851, in RunNode File "<string>", line 1, in <module> Error: Invalid callback function parameter type. Parameter index= 0 name=handleParam File "<string>", line 1919, in <module> File "<string>", line 1846, in RunNode File "<string>", line 852, in RunNode File "<string>", line 606, in vsLibFunc File "<string>", line 1, in <module> Error: Invalid callback function parameter type. Parameter index= 0 name=h File "<string>", line 1919, in <module> File "<string>", line 1891, in RunNode File "<string>", line 886, in RunNode File "<string>", line 1, in <module> Error: Handle variable is NIL. Error: Invalid callback function parameter type. Parameter index= 0 name=objectHandle File "<string>", line 1919, in <module> File "<string>", line 1891, in RunNode File "<string>", line 908, in RunNode File "<string>", line 1, in <module> I continue to test and check... perhaps I'll find something. Ciao Roberto
  15. Hi Marissa, I am using the English version of Vectorworks on an Italian language system. I made this test: 1) created a new user; 2) launch VW, inserting the serial, ecc.; 3) running VoronoiObj_v2017_CrossPlatform_MFarrell; 4) I was asked to authorize the download of numpy and later of scipy, I allowed; 5) the Marionette script ran as expected; 6) I checked that a Python External folder was created and populated in User Folder; I found also a copule of other files, as from you screenshot; 7) I copied the folder and files on user folder of my usual user, assigned ownership to myself; 8) running VoronoiObj_v2017_CrossPlatform_MFarrell gave me the usual error of privileges. I also tried to create an empty Python External as from your suggestion but continued to receive the error. Thank you Ciao Roberto

 

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