Jump to content

David O

  • Content Count

  • Joined

  • Last visited

Everything posted by David O

  1. Hello Does anyone knows how to reliably extract measures from a Solid (say, type 84 or alike) ? Get3DInfo() will return data that varies on the rotation of the solid ... For example, i need to extract the projected area, and the perimeter (projected on the ground plane) as well as the thickness...
  2. Answering I'm using CallTool (-313) to call 3D Polygon to draw the path ... inside the tool. And it works perfectly ... except of the fact it displace things when the layer has an elevation as mentioned ... Tsk
  3. Follows attach a .vst which has just a part of the function i use in my plug-in to apply the Path Extrude I'm attaching also a .vwx that shows the behavior mentioned... To reproduce: After loading the vst in there interface... - Open the document, execute the tool and draw a path on the top of the extruded polygon ... The tool applied profile in a path extrude modeled without problems... Delete the path extrude model - Change the layer to "Level 1" (which is 300cm above Level 0) Execute the tool again... and draw the path again using the same reference points over the extruded polygon See the result Border Aplication TEST File.vwx Aplic Perfis TST.vst
  4. Hello VS folks ! Sometime ago i implemented a tool (vst) that applied a path extrusion using some profile libraries for a customer... Using: createcustomobjectpath('Extrude Along Path', hNURBsPath, hperfil); And the result is perfect ! However, we found a weird behavior happening when we try to use this tool in a layer with an elevation different then zero. When i try to use the tool in any layer with elevation different then zero, the resulted path extrusion follows a completely different path. Trying to fix this behavior i tried to use SetLayerElevation(ActLayer, 0.00, 0.00); Before the call to createcustomobjectpath('Extrude Along Path', hNURBsPath, hperfil); It fixes the problem ... however, only if i leave the elevation of the layer at 0.00 If i try to call SetLayerElevation() to restablish the original elevation (after the call to createcustomobjectpath()) the result is an incorrect path again... Any ideas ?
  5. Yes, in my case i do need to have the levels of the top and bottom references defined in the style. But i could not find how to define these controls (mainly the top and bottom offsets ...) for the Wall style. Simply , the possibility to have the top offset defined would be enough for me ... And still think that, if it's there in the Wall Style Dialog Window, the parameters should somehow be accessible from VScript... Gonna have a try using the components in the style. Thanks !
  6. Hi Julian This function (SetWallOverallHeights) will operate only directly with Walls. But not with WallStyles ... What i need is to create a WallStyle and it has adjustments in thickness as well as in its height... Could adjust the thickness using SetObjectVariableReal(hwallStyle,1177,thick) But simply could not find a function (or a selector...) to define this parameter... Thanks
  7. Hello VS folks Is there a way to define the height sets in a Wall Style... I can use the object selector 1177 to define thickness ... (SetObjectVariableReal(hwallStyle,1177,thick); but could not define the selector for the height sets ... Thanks for any ideas !
  8. Hello Kristell: We from CADTEC thank you for your interest in Vectorworks. There are a few ways for you to buy your license of Vectorworks. We don't have an online story, but you can you use your Credit Card to make the purchase. As we have our address in "Grande São Paulo area" but if you prefer you can buy the license and download the installer online. Please contact our sales dept. via phone (11) 3849 8257 or via email: comercial@cadtec.com.br Or, if you prefer, just let me know here you personal contact and our commercial dept will contact you right away. Thank you.
  9. Hello everyone ! DId anyone here already experienced problems trying to add extrude along path solid with anything else inside VectorScript ? If i create an Extrude Along Path solid (via createcustomobjectpath('Extrude Along Path', hpath, profile); and then try to add the resulted solid with anything else (say, spheres...) using DoMenuTextbyName('Solid Operations',1); or with AddSolid() ... it doesn;t work ... The weird thing is that if i try to get the resulted solids from the script and run the AddSolid command manually over them it works perfectly ... Did someone here already faced this situation and came up with any turnaround ? Thanks !
  10. I created (VS) a menu command but i need to use this command inside an Object Contextual Menu... I can insert it in the Object Contextual Menu using Workspace Editor ... but is there a way to know (inside VS Script...) the handle of the object which was right clicked ?
  11. Thank you guys for the very quick replies ! David
  12. Is there any way to define the Description field of a class via VScript ? Tks for any tips !
  13. Hi Marissa I tried here... and it's crashing my Vectorworks here too ...
  14. Which is the best/ correct method to have this Python package (PIL) installed into Vectorworks 2018. I'm little confused because in the http://www.pythonware.com/ says that PIL is compatible only (at the most) with Python 2.6. But Marionette's Python is 3.5 , correct ? But i've seen a few discussion in this forum referring to PIL installation ... Is there a common place in this topic ? Thanks ! David
  15. Yeah, that worked too ... Thanks Dom !
  16. One added think regarding the node Get IFC Pset Value: In a network i'm working on with Spaces (see attached file...) i'm having a bad time using this node because when changing Pset parameters the node sometimes "stuck" in old values... i change the values in the fields in the object (in this case Spaces) and the node seems not to follow... I could make things work normally when i switched to use Get Record Field node instead... But i wonder why Get IFC Pset Value doesn't Is there maybe a trick to make this node update accordingly with new Pset values ? Thanks for any hints ! Test_Spaces_Chk_PSets.vwx
  17. Hello Marissa: Thanks for your prompt reply... The object i'm feeding into the node is a Space object ... so, yes it does have PSets (several...) attached... The issue that i noticed here was that those Spaces were recently applied with the Space tool so their entity were IFC Standard Spaces not IFCSpaces... The curious point is that, the entity Space Standard shows several PSets (and of course... the one defined to be read by the node ...) in OIP The error message was not very clear regarding what was happening. Yes... i think that the absence of a parameter should not present an error message by the network Again tks for you suggestions and also for sending the node avoiding the error message ...
  18. Hello Marissa and other Marionette friends When using Get IFC Pset Value node i'm getting the following error message (2018 SP3) It seems to be something internal in the Python code ... isn;t it ? Tks !
  19. Ok... got it. Tks Marissa ! Yes... i think that in case we do have units involved we better trying creating a custom node and do things in Python instead ... right ?
  20. Hello Marionette lovers ! Is there anyway using existing nodes to convert strings (like the ones coming from the GetIFC Pset Value ... and many others from IPFC parameters...) into a number or Integer ? Maybe the node Function could do this trick ? (but was not capable to implement this properly ...) ? Thanks for your valued inputs !
  21. Hello folks Testing the great (and brilliant) sequence of scripts posted by @sbarrett using GeoPy... I'm using OSX 10.11.6 I could manage to install Geopy to the target inside my user folder (i used: pip install geopy -t /Users/David_PRO/Library/Application\ Support/VectorWorks/2018/Plug-ins/Marionette). And the object is correctly searching for the data of different capitals and showing correctly when changed in Object Info Address parameter... that's really awesome... However, the object for precipitation graph is showing the following error when i change the parameter "Units" to milimiters... Any hints ? Tips ? Again, fantastic examples ! Show one of the great functionalities of Marionette...
  22. Thanks for the suggestions Pat Yes, i already approached the issue using those options ... I wondered if it might be another approach maybe... after seeing the approach @DomC adopted using NextObject in a Wrap ... but in that case the object is hidden inside the wrap...
  23. Hello Marionette lovers ! Is there a way to use Marionette to apply a "smart behavior" to an existing object ? For example: Let's say we have a wall (already in the drawing...) and would like it to become red if it's length is higher then 5m... I know that we may create a Marionette Command that can do this by selecting the wall and running the command But what i'm trying here is to have the object automatically incorporate this characteristic ... so that, whenever the wall is re-scaled it drives the length checking script ... Something like an event driven Marionette node net .. (?) Thanks for any ideas !
  24. Thanks everyone for the various comments, suggestions and tips ! Marissa... Yes... That would be very important to have something in the future that could address the direct creation of Spaces (considering it's importance inside BIM modeling... if there are nodes to create Walls and Slabs... that should be also ones to create spaces objects ...). Don, the usage of "Create Custom Object Path" is a great tip indeed... thanks ! Again, thanks also Alan and MaWi for helping !


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