Jump to content

twk

Member
  • Posts

    877
  • Joined

  • Last visited

Everything posted by twk

  1. - could check for number of light sources in the Visualization Pallette?
  2. Yea.. not sure what else would cause it. The Ol' restart vectorworks could work. Come to think of it... Vectorwork's should have a Restart Vectorworks option in its menu..
  3. Hmm.. there are 2 render 'teapots' shown in your screen shot? Are there more viewports on this sheet?
  4. You may want to check the DPI setting of your Sheet 100-150 works for 1:50 scales @ A3 for us. Any other print size higher (A2-A0) we tend to go to 300dpi which increases render times. HTH
  5. twk

    VS:ClosestPoints

    Hi Alan, below is a node layout that shows how you would write it in marionette. Marionette is basically a sort of wrapper for python, so most of the calls/syntax must adhere to python rules. Very briefly (Disclaimer: I am no Python expert, nor a Marionette one) 1. From the Dev Wiki : http://developer.vectorworks.net/index.php/VS:ClosestPoints vs.ClosestPoints(h1, h2): (pt1, pt2, touching) - th inputs are h1 and h2, object handles. So that means this function must receive handles to two separate vectorworks objects. -the 'return' displaying there is what this function outputs --> pt1 and pt2 are Pts that have xy components, where in python terms would be of type 'tuple' ie (x, y); touching is of type 'boolean' a true or false type variable. 2. Converting these into Marionette, you'd have to cater for these inputs and outputs. There are many ways to achieve this node, this is one of them.
  6. Thanks @rDesign, first time i've seen the KnownIssues thread.. thats great!
  7. @Alan Woodwell- you sir are a legend! Cheers mate!
  8. Hi @DomCand @Mark Flamer, wanting to implement a voronoi pattern in vectorworks, the file that was attached to this thread from the old forum has disappeared. Any chance of re-uploading please. (adding @MarissaFand @Alan Woodwellif maybe either of you had downloaded it and have a copy?) @JimWis this common with all previous attachments at the old forum? Will they be migrated forward at sometime? Thanks
  9. In the event of a crash it would be great if we had an option to choose from the last Auto-Save file or list of recent auto-saves, instead of navigating to our backup folder all the time after a crash.
  10. Well, just tested and you're right.. search yields 0, even if you remove vectorworks from the search string. I guess the alternative is to see what posts show up on google, and search for that through the new boards search box.
  11. What search queries did you do? I faced the same problems as you (ie searching via Google; before, that was the better way of getting results), however the new forum returns better results in my cases. Searching with the same search terms I tried in google, into the new forum search yielded expected results. It's been an overall better experience then previously in my experience.
  12. Maybe the screenshot is a bit misleading.. The actual parameter name doesn't have an apostrophe in it. Its the value of the parameter. eg If I want the value of this Parameter ('title_cust') to have a value of : Floor Plan 01, it works, once I include an apostrophe it breaks. And the only way to use the plugin again, is to restart vectorworks. eg, I cant type Floor Plan 'Existing'.. it will have to be typed into the object info pallette as Floor Plan \'Existing\' The whole plugin works well until you enter a value into this parameters field (title_cust), and that value has an apostrophe. What Josh suggested, is at the moment, the only way we can have it work. (By adding escape characters \' to include the apostrophe into the fields value) Hope this clears things up..
  13. Thanks Josh and Pat, So Josh, you mentioned it has been "acknowledged" as a bug and "not an easy fix" does this mean that : the-powers-that-be at the Vectorworks Dev section know that this is a fix and it will take a long time to fix it? or the Vectorworks Dev people know of this and are actively finding a fix? or this is a bug that can't be fixed? I'm wondering whether i need to tag JimW and ask him to forward this to the relevant parties. By the way, where do we submit bugs for stuff like this? or when functions don't behave the way they should? are the forums the best place? @JimW
  14. Greetings Pythonistas, Getting "SyntaxError EOL while scanning literal" script error, when there is an apostrophe in one of the parameter fields of my custom plugin object. I am trying to figure out how to catch/handle this exception before it gets processed. Any thoughts @Dieter @ DWorks, @JBenghiat@Hippocode.. trying to think of others.. @Miguel Barrera@Pat Stanford@Matt Panzer..
  15. Could you please add python syntax-highlighting for posting code to the forum. Thanks
  16. Here's my attempt using Python. (attached txt file version of script) My vectorscript is very rusty. ** YOU NEED TO MAKE SURE YOU SET YOUR SCRIPTING LANGUAGE TO PYTHON (IN THE SCRIPT EDITOR)** # DISCLAIMER # - Python Novice # - Script presented as is # - save your work before using # - use at your own risk # - no responsibilty taken for damage to your property from the use of this script # - copyright twk 2016 # - forum link = https://forum.vectorworks.net/index.php?/topic/19675-how-can-i-scale-multiple-objects-from-each-objects-center/ # - Tested on Windows 10 x64, Vectorworks 2016 SP4 def List_SelectedObjs_in_Layer(): # small function to store all selected objects on the current layer into a usable list (python list) h_FirstInContainer = vs.FIn3D(vs.ActLayer()) listObjs_inContainer = [] while (h_FirstInContainer != None): if vs.Selected(h_FirstInContainer): listObjs_inContainer.append(h_FirstInContainer) h_FirstInContainer = vs.NextObj(h_FirstInContainer) return listObjs_inContainer list_selObjs = List_SelectedObjs_in_Layer() # function called, selected objects stored countIt = len(list_selObjs) # number of selected objs store in countIt variable if countIt > 0: # checking to make sure at least 1 or more objects are selected scaleAmount = vs.RealDialog("Enter Scale Amount", "1.5") if not vs.DidCancel(): # checking to make sure predefined Dialog's OK button was pressed for eachObj in list_selObjs: center = vs.HCenter(eachObj) # getting center of obj to be used in next function vs.HScale2D(eachObj,center[0],center[1],scaleAmount, scaleAmount, True) vs.ReDrawAll() # redraw-ing the screen as is needed after running HScale2D vs.AlrtDialog("{} Objs scaled".format(countIt)) #indicates the number of objects scaled else: vs.AlrtDialog("At least 1 object must be selected") # checking to make sure at least 1 or more objects are selected vs_scaleEachObj.txt
  17. With regards to the Vectorlab.info website; I myself had wondered what it was as well. From the guy who created it :@orso b. schmid https://forum.vectorworks.net/index.php?/topic/42750-does-anybody-know-whats-on-with-vectorlabinfo/&do=findComment&comment=216461 It really is an invaluable resource, and in my opinion should be acknowledged at least by the Vectorworks Devs; For example, on this page : http://www.vectorlab.info/index.php?title=Index_pitfalls; It clearly states the problems one might encounter with regards to Index and certain vectorscript/SDK calls(procedures/functions)..
  18. @Alan Woodwell, @Kevin McAllister 's version is correct. Apologies, I forgot I was in the Marionette section.
  19. https://forum.vectorworks.net/index.php?/topic/44934-measure-between-2-3d-points/&do=findComment&comment=228398 its written in Python though, I will attempt to convert back into Vectorscript later on..
  20. http://www.intmath.com/vectors/7-vectors-in-3d-space.php def get_length_2_3DPts(Pt1, Pt2): # lngth = sqrt --> sqrd(x2-x1) + sqrd(y2-y1) +sqrd(z2-z1) def square_cust(n1, n2): return vs.Sqr(n2 - n1) lngth = vs.Sqrt(square_cust(Pt2[0], Pt1[0]) + square_cust(Pt2[1], Pt1[1]) + square_cust(Pt2[2], Pt1[2])) return lngth
  21. Yep, also, your signature is set to VW2017 already!? Thats forward thinking right there.
  22. 3rd of September ... a countdown is overdue, is it not?
  23. All is working well. Very nice indeed. A post of mine is missing though. From the Python subforum. Was titled Syntax exception. Or something along those lines..i had posted it a couple of days ago.
  24. Sure MultipleExtrude has its downfalls, and I wouldn't use it on more than 2 poly's. I normally use it for extrudes that have each face shifted. And the trick (i guess with most things vectorworks, there are needed work arounds) is to make sure that both faces/objects of the multiExtrude have the same number of vertices. I only ever use MExtrude in these cases. I don't necessarily hate it though.lol To over come the high poly count you need to run the simplify poly command on the MExtrude profiles first, to keep this poly count low. To address the holes issue, you simple create multipleExtrudes for the holes as well and subtract solid after, as all the pieces are basically extruding in the same direction. Screenshots, gif and vwx file below. MultipleExtrudes_take2.jpg (Dropbox Link) angled_extrusion_techboard_24.08.16.vwx (Dropbox Link)
  25. Sorry for the late reply; as promised: 1. Get thickness of profile and roof pitch from image 2. From roof pitch you can determine the y-move for the second profile of the Multiple Extrude object 3. Duplicate the profile of your motif. Move up (y-axis) with value from step 2. 4. Run Multiple Xtrude command while both profiles are selected. Layout1 [img:left]https://dl.dropboxusercontent.com/s/g9gnxk0l2a3yeaf/2016-08-23_22-28-25.gif[/img]
×
×
  • Create New...