Jump to content

twk

Member
  • Posts

    716
  • Joined

  • Last visited

Everything posted by twk

  1. Hi Guys Thanks for the help. Really appreciate it. Josh you were saying that JkTrAdd is a handle(pointing to the newly added surface) and this is temporary? So trying to call a function or calculation further down the line of code using JkTrAdd would not be possible? Like for instance I wouldn't be able to say HDuplicate(JkTrAdd,x,y)? Nevertheless I am slowly understanding the syntax usage.(keyword slowly l:) ).. And Raymond thanks for the tips on 'Function' and its functions..lol.. but seriously, after you had suggested to use a function I went digging through the VS manual, and there it was, together with user-defined procedures.. It seems they can be very useful. However it also looks like a bit of a mission to implement. As the examples(in the manual)suggest, they are created so they can be 'easily' retrieved later. And also as you had mentioned, it simplifies the code. From your example in of itself I can see more lines of code then Adding the surfaces one by one as your example showed(the example just before the function one). I gather that the function serves a purpose where somewhere down the line I wanted to added four other polygons I could just call that particular one (Add4Polys) and feed in the new polys? Is this correct? For what its worth, the two replies in this post alone have expanded my knowledge immensely and I really appreciate such help. So thanks again. Also on a side note.. I noticed not a lot of people post their codes up here for others to see. Is there a legal reason for this? (Like a rule for the forum?). Would be nice to have a place where we could share our codes and maybe get others to comment on it, like you guys have done, to make it better, or improve it. Does such a place exist for vectorscripting? Thanks again. Tui
  2. Ahh write a function.. I think thats what I want to do.. I've seen that alot in the Vectorscript Manual, but I just dont know how to implement it. I should say I 'just started' getting my head around scripting.. Back to the script.. there is a known number of objects to combine.. Just 4 polys.. How would I write the function script you mentioned? Thanks Tui
  3. Thanks Raymond, Unfortunately this is not working for me. My script is actually a snippet of a PIO.. would this matter?
  4. {..script for JTopC Creation..} JkTopC := LNewObj; {..script for JkBotC Creation..} JkBotC := LNewObj; {..script for JkEndC Creation..} JkEndC := LNewObj; {JkTrAdd is a dummy handle to add surfaces} JkTrAdd := AddSurface(JkEndC, JkBotC, JkTopC); {Add Chords} I understand the AddSurface function only allows two handles to be added.. and my above scripting is incorrect. Is there anyway to add more than two objects in one function.. because I'm thinking that the only other way is to create another handle JkTrAdd2 and then it would be JkTrAdd2 := AddSurface(LNewObj, JkTopC); or how would I go about this?
  5. I dont have VW2013 at home so I can't really open these files. (Am on 2012 at the moment). But I will check them once am at work. Just a quick question did you select the option to 'Use current document's class visibilities' in the viewport class properties of the Referenced Design Layer Viewport?
  6. This has still not been addressed in VW 2011
  7. Hello I assume your meaning the WINDOOR tool by ozcad? Also which vectorworks version are you using? Not sure about the previous or latter versions, but for version 2011: The windoor ID's are pulled from an external file. (usually in your \library\default\windoor\IDs folder. if you open the file (WinDoor ID Symbols.vwx) in that location you'll see all the ID's as symbols. You can duplicate and rename the one that you want to edit; and rotate it in its symbol edit mode. Go back to your project file and your edited/rotated ID should show up in the list of ID's to use. Use the rotated ID.
  8. Hi Nico As far as I know there isn't any style/component options for Roofs. Cheers Tui
  9. Just saw this post, while searching for something else. I do have a long list of all Tools and commands attached. Hope this helps. (This is for VW2011 Architect NZ though) Regards Twk
  10. Hi Pat, This script is very handy. I was wanting to just update viewports of a certain class. When put UpdateVP(C='Elev.VP'); I get an error. How would this be done? Thanks in Advance Tui
  11. Tried that Jonathan, didn't seem to work.. This open source script has really gotten me interested in VScript. Quite powerful. I just started playing around with it this morning. So I just edited the script to use our firms standard font. adding: TextFont(GetFontID('insert font name here')); Cheers. p.s is there anyway to get this to show on the Object Info Pallette? A drop down list of fonts/font styles?
  12. Hi Guys This is great. Tried this in Vw2011, very handy.. is there anyway to change the font?
  13. Greetings all, We've just upgraded to Vectorworks 2011, and I am currently running through the new features (as we came from a VW12.5 workflow,although having touched/gone through 2008 & 2010 evaluation versions), and was quite impressed with the idea of having now being able to put viewports on design layers. Straight away I thought that, now we can viewport elevation views of our model onto our design layers and annotate everything on a single design layer for each elevation (having all four elevations on one design layer side-by-side). Unfortunatley I found out that this is not possible as trying to viewport now (elevation viewports + annotations) to a sheet layer only shows the model and none of the annotations. Am I doing something wrong? or is this impossible? Thanks in advance Tui
  14. Hello all just a quick question regarding the DTM site model. Is there a way to set your proposed DTM site model to become your existing site model? So that everytime you update it only calculates the new site modifiers on the site and not having to recalculate each and every site modifier when we want to update the model.. (i have many site modifiers and am further adding them - and my vw 08 keeps crashing when it reaches a certain number of modifiers) regards.. 2E
×
×
  • Create New...