Jump to content

twk

Member
  • Posts

    874
  • Joined

  • Last visited

Everything posted by twk

  1. For those trying to do this with the WinDoor, you need to set the 3D line style for Dir. Arrows to a dashed line. (under Pens and Colours, in the WinDoor Settings dialog). This converts that line style to a 3D poly version of that Dash definition. Found it through trial-and-error. Can't remember it being documented anywhere. Original wishlist is still needed though for general 3D line work. Cheers, Tui
  2. Nope, When a class override is set to use a pattern, it returns 3. fill_style = vs.GetVPClOvrdFillStyle(vp.viewport_handle,class_name) However, it was returning negative index values for either a Hatch/Tile/Image/Gradient, using vs.Index2Name(-fill_style), returned the name of the resource, then using vs.GetTypeN(vs.GetObject(vs.GetName))), returned the type of resource. whew, what a mission.. but it works, Thanks for the input Josh. -- CORRECTION 0 - None 1 - Solid (Back) 2 - Solid (Fore) 3 and above - Indexes of the Patterns anything below 0 (negatives) use vs.Index2Name with negative mod applied. cheers, Tui
  3. Trying to figure out how to interpret values derived from this function: fill_style = vs.GetVPClOvrdFillStyle(viewport_handle, class_name) Description says it returns the fill style of that class that has been overridden in the viewport. However whenever I set the class override to a Hatch, it returns a negative index value. Changing the hatch, returns a different negative index value; Tried using the Index2Name function to try and retrieve the hatch name being applied, but it returns nothing. Does anyone know how to convert these return values to the name of the hatch. By the way, from my testings return values are: 1 = Solid Fill 0 = No Fill 3 = Pattern Cheers, Tui
  4. It'll be because you are calling GetPt(pX,pY) before creating the rectangle.
  5. Interesting points by the OP's on adding an option for a finishes components. The other CAD program most definatley, must be Archicad, with its cad image addon: This package is what I wish VW Architect was.. everything about it was very well thought out for the Architect.. If you have time check out the video's on youtube for their Revision system, and issue management system, its so good. I've developed in-office plugins/scripts to mimic some of that functionality, together with the auto-claddings. But I wish vectorworks developed these natively as they are so essential for architects. https://www.youtube.com/user/CadimageTools/videos This is not a promo for another CAD software by the way! I enjoy Vectorworks alot, this is just me saying, there's room for improvement.
  6. Just double checking, is your version of Vectorworks, 2010, as per your signature? Also check the max elevation / min elevation in your Site Model settings
  7. Updated version to @Pat Stanford's one, written in Python though, so make sure the interpreter Language is set to Python: import vs def classes_name_list(createOrder=0): """ createOrder=0, no sorting, list sorted based on class creation order createOrder=1, sorted Alphabetically """ classes_total = vs.ClassNum() classNameList = [] for x in range(classes_total): classNameList.append(vs.ClassList(x + 1)) if createOrder == 0: return classNameList elif createOrder == 1: classNameList.sort(key=lambda x: x.lower()) return classNameList date = vs.Date(2,1) classes = classes_name_list(1) # swap parameter for sorting in alphabetical order or order classes were created ws_handle = vs.CreateWS("Class List in Docuemnt: {}".format(date),len(classes)+2,2) for i, class_ in enumerate(classes): vs.SetWSCellFormulaN(ws_handle, i+1, 1, i+1, 1, class_) vs.ShowWS(ws_handle,True)
  8. @Christiaan, also, is there a site modifier boundary object, encompassing the modifer? I think its called Grade Limits now.
  9. interesting concept. The ease of access too is needed. Think SketchupWarehouse or BIMObject.com..
  10. would you mind posting the example/test file?
  11. Symbols!.. Man I wish I would've thought've this. Sometimes the solution is so simple. We created a custom plugin that can be updated globally. Still not tied to stories automatically though.. Just thinking, the Symbol route is the faster/easier method. Also.. this is long overdue..
  12. from the DevWiki: http://developer.vectorworks.net/index.php/VS:SetDescriptionText
  13. This has been happening three times now today.. Are there ways to figure out what the problem is of saving..?
  14. Hmm, I dont think vectorworks supports Ruby script. Did you see this mentioned anywhere in promo materials or something? As far as I know, Vectorworks scripting is in C++(SDK), Python and Vectorscript.
  15. @JimW, that form of summary is exactly whats needed! Cheers Tui
  16. This happened to us as well, in 2016. As @Ion described, that was the culprit for us aswell. We now make sure all dimensions are not auto-associated or associated. Dimension constraints lose their associativeness when you cut and paste-in-place, either the object its tied to, or the dimension itself. It was a real pain, as moving walls on the design layer would move the dimensions and vice-versa. I can see the appeal for this workflow, and its usefullness, but it just didnt suit our workflow, where we would do drawing checks on the sheet(manually) eye-lining dimension lines, and if they didnt match up, we'd know something had changed. This proved difficult, when the walls were moved ever so slightly on design layers, moved the dimensions in the annotation space aswell.
  17. That's strange, @John_in_NZ its there in my out-of-the-box workspace. I'm on the Architect version though. Anyhow, onto how to adding a command: How to add the 'Show All' command to workspace. 1. Edit the current workspace: Tools > Workspaces > Edit Current Workspace.. 2. Under the Menus tab, expand the 'All Menus' branch. 3. Now you'll want to scroll down this list until you find the 'Show Objects' command. 4. You'll then drag this item across to the right hand side. Prior to that, expand the 'Document Context (right click on document)' branch in that tree. (As you can see, this chunk lists all the commands you can run when you right click on an empty space in a sheet or design layer). Once thats set, press ok to save your workspace; you can now hide and show objects as you wish. As I said before, this has actually been removed from our office's workspace as people found it too confusing, as you don't have an option to un-hide specific objects. You can use a script, but that's a hard sell as well in our office. So we've taken the 'Class Everything Properly' route to control the visibility of things. @Andy Broomell, I have no idea when this was added, or if its in International versions or not. It has been in the AU/NZ workspace since 2014 I think. Hope this helps. Cheers, Tui
  18. This a common problem. Funny it's not mentioned more. I've removed the Hide command from our Office workspace. The fix is to add "Show Objects" to your workspace, if it isn't already there. (Normally if you right-click in an empty spot in the document, the "Show Objects" command is listed). Will dig up the Workspace that ships with the initial install(we have our own custom workspace), and post screenshots of doing this (editing workspace), if you need to. cheers, Tui
  19. Well, I had to google linting and linter to try and understand this question. It seems it has something to do with code analysis? Code structure and fidelity? In either case, I use PyCharm Community Version. https://www.jetbrains.com/pycharm/ I add as the Project Interpreter, the python version from the one included with the Vectorworks version. For windows, its in: "C:\Program Files\Vectorworks 2018\Python35\python.exe" (This way all external library installs can be directly done through Pycharm, very robust) And last, add the vs.py file from the DevWiki site, to the Project Directory root folder. And everything works like a charm(no pun intended), with code correction, auto-completion, code hints, etc.
  20. Yes, please combine, thanks for the feedback @Gadzooks. This is the root i have taken as well. Although I need the functionality in a larger script I'm putting together. Have had to create a dummy worksheet and pre-load(script) the formula into a cell and grab the resulting value and carry on with the overall code run. Had there been API for Curtain wall panel/Frame area retrieval that would solve my problem. For now, this will do. Cheers, Tui
  21. Yes, was my findings as well. Really need script functionality for this. Have resorted to Scripting a cell creation in a temp worksheet, just to get his info out, was necessary on this 6 storey apartment, with 3 towers 😪.
  22. CORRECTION! See thread below
  23. Looks like the NNA_TIfcCurtainWall record just carrys id info, nothing to do with Glazing. I did find what I was looking for using the worksheet functions: CurtWallPnlAreaGross(criteria, class) CurtWallPnlAreaNet(criteria, class) I had no idea these existed!? Can these be retrieved in a script?
  24. Yes, you can assign classes, but there is no way to retrieve this for area calculation. Well no way I've found.
×
×
  • Create New...