Jump to content

twk

Member
  • Posts

    731
  • Joined

  • Last visited

Everything posted by twk

  1. What I do generally, Design Layers relating to House Plan, are all storey aware ie tied to a real world story level, for example: Story 1 RL = 54.5m - Roof Plan - Story 1 - Offset from Story = 2.45m - Floor Plan - Story 1 - Offset from Story = 0.0m - Foundation Plan - Story 1 - Offset from Story = 0.0m Site Plan Design Layer: - Not tied to any story and design layer elevation set to 0.0m - Site Model has contours relating to real world levels, and site model object is always set to 0.0 z value - Then the House Plan related design layers are viewported onto the Site Plan design layer. And the viewport's z value is set to the desire RL/FFL. In this case 54.5m. Apologies, the viewport should be kept at 0.0, as the Story level takes care of this step. Hope that makes sense. Would be easier to sketch it out, but hopefully these words will do for now. Cheers, Tui
  2. Shot in the dark here, but check your Interactive Appearance Settings; Under the Interactive Tab, in the Vectorworks Preferences Cycle through those and see whether anything is out of place
  3. To VW developer's watching this thread. We need this level of intuitiveness for a railing tool:
  4. Ok, I see now. I am in the process of re-installing my VW2018 on my second PC. I had it on there since March 2018, PC crashed last October. I re-installed windows, and VW, and activated it with no hiccups. Now the new Windows 10 version 1809 update has caused problems and I cant roll back to my previous (just installed 2 weeks ago) windows install, so I have to reinstall the this Windows 10 version 1809 as a fresh install and not an upgrade. This is all on my 2nd PC. so hopefully the vectorworks servers pick it up. I will notify our local resellers if there's any issues. Thanks for the clarifications @Jim Wilson Cheers, Tui
  5. Ok this is super confusing; So if I understand correctly @Jim Wilson; Say I have 1 E-series license, and 3 PCs. - PC1 > I installed VW on the 2nd of Feb - PC2 > I installed VW on the 4th of April - PC3 > nothing installing After 90 days on either install, the licensing/activation is dropped from whichever PC; - PC1 = 3rd May; so 4th of May license is free - PC2 = 3rd July; so 4th of July license is free So when I install onto PC3 on the 4th of May; the licensing moves from PC1 to PC3? and now I have PC2 and PC3 available for use only? Freeing up PC1? Another question: When you say licenses are tied to a machine, if my PC crashed, and I need to reinstall windows (same machine); re-installing VW on this machine, does that count as using up 1 of the 2 seats? Or does the servers know, its coming from this previously activated machine?
  6. theres something weird going on with the formatting, and my posts on this thread; It looks like their are hidden spaces being added between the s and ( in vs.GetCVis(CName)) ClassVisibility = vs.GetCVis(CName) if you copy in the code above, or type it in manually it should work. (Replace this line in the script, with your manually typed one, or the snippet above)
  7. Hi Nikolaus, Thanks for reminding me, have posted in the lumion forum requests, and an enhancement request here too (VE-99304 @Jim Wilson) I guess we can just keep knocking till the door opens 😀 Cheers, Tui
  8. Woah!. apologies, i had edited that post.. strange the edit didnt go through.. the currentLayer_name call is incorrect it should be this: # November 13, 2018 # Python converted from Patrick Stanford's script: # https://forum.vectorworks.net/index.php?/topic/59673-script-to-toggle-class-layer-on-and-off/&do=findComment&comment=297904 import vs LName = '1-Slab' CName = 'Structural-Slab' LayerHandle = vs.GetLayerByName(LName) LayerVisibility = vs.GetObjectVariableInt(LayerHandle, 153) ClassVisibility = vs.GetCVis(CName) CurrentLayer_Name = vs.GetLName(vs.ActLayer())#Get Layer Name of current/active layer if any([LayerVisibility == 0, ClassVisibility == 0]): vs.Layer(LName) # Jump to/Set Active layer name in LName variable vs.HideLayer() vs.HideClass(CName) else: vs.Layer(LName) # Jump to/Set Active layer name in LName variable vs.ShowLayer() vs.ShowClass(CName) vs.Layer(CurrentLayer_Name) # Jump Back to/Set Active current layer name
  9. Here it is in python: # November 13, 2018 # Python converted from Patrick Stanford's script: # https://forum.vectorworks.net/index.php?/topic/59673-script-to-toggle-class-layer-on-and-off/&do=findComment&comment=297904 import vs LName = '1-Slab' CName = 'Structural-Slab' LayerHandle = vs.GetLayerByName(LName) LayerVisibility = vs.GetObjectVariableInt(LayerHandle, 153) ClassVisibility = vs.GetCVis(CName) CurrentLayer_Name = vs.GetLayerByName(vs.ActLayer()) if any([LayerVisibility == 0, ClassVisibility == 0]): vs.Layer(LName) # Jump to/Set Active layer name in LName variable vs.HideLayer() vs.HideClass(CName) else: vs.Layer(LName) # Jump to/Set Active layer name in LName variable vs.ShowLayer() vs.ShowClass(CName) vs.Layer(CurrentLayer_Name) # Jump Back to/Set Active current layer name
  10. Its to do with the SetObjectVariableInt(LHand, 153, -1); {Layer to invisible}; you're actually applying the change to the whole layer (LHand). What I've done in the past is to use the ShowLayer, HideLayer, GrayLayer calls. So your script would be instead: Begin {SetObjectVariableInt(LHand, 153, -1); {Layer to invisible}} Layer(GetLName(LHand)); {Jump to that particular layer} HideLayer; HideClass(CName); {Class to invisibile} End
  11. Here are some tests with the New Lumion 9, with the same project from my previous Lumion8 tests. Straight FBX export from Vectorworks, only retextured stone wall, and added grass. The new grass, really makes the images pop. And the speed. These rendered out 50secs each. Slower from the previous renders in L8, at 15secs. lol Another +1 request for Vectorworks to have live sync as Archicad has this feature!
  12. The DevWiki is the go to place for all functions and also has an appendix for other 'selectors' DevWiki: http://developer.vectorworks.net/index.php/VS:Function_Reference Appendix: http://developer.vectorworks.net/index.php/VS:Function_Reference_Appendix SetPlanarRef function : http://developer.vectorworks.net/index.php/VS:SetPlanarRef Maybe @Jim Wilson, you could sticky the DevWiki link to the Customization Forum Sections?
  13. Couldn't help having a go at this one! Similar to Kevin's approach. Initial loft was created from 3 nurbs curves, mapping levels of exterior bath (top, bottom, bottom of outlet) in provide PDF section. Scaled and adapted to fit. - from solid generated, shell solid was then generated, then chamfered relevant edges - second part was the base, reusing to nurbs curves from step 1, then using the push and pull tool to adjust the heights to match the section height of the base(did this as the push and pull can follow then slope of the solid using the second mode). - then subtracted internally, then joined to main bath ModelBath.vwx
  14. Here you go: You need to turn on all your classes visibilities (obviously) 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 layer_scale = vs.GetLScale(vs.ActLayer()) #page mm scale 1:1 square_dim = 5 * layer_scale spacing = 7 * layer_scale groups = [] for clasN in classes_name_list(1): vs.BeginGroup() vs.Rect((-square_dim,square_dim/2),(0,-square_dim/2)) RECT = vs.LNewObj() vs.SetClass(RECT,clasN) vs.CreateText("{}".format(clasN)) TEXT = vs.LNewObj() # set text vertical align and horizontal align = center, left vs.SetTextVerticalAlign(TEXT,3) vs.SetTextJust(TEXT, 1) vs.HMove(TEXT,spacing,0) # move text in place on right of rectangle vs.EndGroup() groups.append(vs.LNewObj()) for i, group in enumerate(groups): if i != 0: prev_group = groups[i - 1] prev_group_bbox = vs.GetBBox(prev_group) group_bbox = vs.GetBBox(group) vs.HMove(group,0,(prev_group_bbox[1][1])-spacing) Cheers
  15. twk

    Updating Node

    hmm this only seems to work for me if I put the py file in a root directory; C:\, D:\, L:\; etc #COMMAND;REFFILE;D:\stair_elevation_maker.py; once i put it in a folder it doesnt work: #COMMAND;REFFILE;D:\test_branch\stair_elevation_maker.py; error pops up saying: - the referenced file not found The specified file was found but could not be written to. Click Ok and made the file writable to save your changee If you choose Cancel you scipt will be saved locally in the node but these changes maybe lost when the scipt editor is opened next time any thoughts on fixes?
  16. Nice rocks! Is that with the paint objects on surface feature? I wish lumion had this.. and VW too
  17. Nice.. We do the same with our material workflow. FBX has been working quite well for us as well. Previous VW version exports to FBX caused problems with flipped normals. 2017 onwards fixed this.
  18. I would say its a bit less intuitive than twinmotion. +'s for Twinmotion: + Twinmotion has object editing of import objects (moving internal components of import model) whereas Lumion cannot manipulate imported models. + Twinmotion VR export is a much smoother process + 360deg Video export (animated path) + Object hierarchy helps with keeping model organised + Interior Renders -'s for Twinmotion: - render quality is not the greatest for exteriors Lumion is pretty much the opposite to the list above. Apart from the interior renders for Lumion are also very good. For me personally Lumion produced better quality renders than Twinmotion, albeit with a not-easy-to-get-used-to interface. Put it this way, I know someone who uses 3dsMax with VRay, and she dislikes the Lumion interface with a passion 🤣, and at the same time can't understand how it can produce renders at that quality, in under a minute. After a year, she's still getting used to the interface with complaints every now and then. However don't get me wrong, any of these programs are powerhouses in the right hands. side note: this was when I trialed out the Twinmotion 2018 version. Havent tested the 2019 version. We are on Lumion 8.5 I also +1 that vectoworks play nicely with these two rendering packages.
  19. Never had to edit VS Studio search paths. When I did used VS Studio, the vs file was just kept in the root folder. (I use PyCharm Community Edition now, far superior) The vs.py file must be in your projects root folder. our folder structure: L:\Documents\VisualStudio Projects\Custom Vectorworks\Plugins\Custom Scripts\ - "L:\Development\VisualStudio Projects" is our Projects folder in Visual Studio - "L:\Development\VisualStudio Projects\Custom Vectorworks" is our one of the paths in our Vectorworks Preferences "Workgroup and Project Folders" paths - "Custom Scripts" is the root folder where all our scripts are Under the custom scripts folder we have other folders organised by vectorworks specific functions: \obj_wrappers \document_properties_wrappers \etc.. When it comes time to coding, below is sort of the start off:(FYI example shows custom modules we've made to make coding in VW easier). Search for DLibrary in the forums for Dieter's amazing VW python library. import vs from obj_wrappers import vw_Obj from document_properties import * OBJ = vwObj(vs.FSActLayer()) # vw_Obj is a custom made class wrapper that contains every property a vectorworks object may have eg. width, height, layer, class, type, etc.." height = OBJ.height width = OBJ.width obj_layer = OBJ.on_layer alert_dialog(obj_layer) In my experience, VS Studio picks up intelli-sense for vs.py and my custom modules. Showing documentation, and auto-completion etc
  20. Hi @JBenghiat Was trying to figure this out the other day. How can one set char colors? Not possible?
  21. This would be a great Marionette challenge.. I would use EAP's and fillets for the cushions. Below is a result of 20mins:
  22. Can we also have access to this information?
  23. Please add the ability to add labels to the Structural Member tool, just like the Framing Member tool. But with the ability to class said label, like the Column Tool.
×
×
  • Create New...