Jump to content

David O

Member
  • Posts

    52
  • Joined

  • Last visited

Everything posted by David O

  1. Hi Pat. i'm referring here doing this inside VScript. Is this something possible ? (I'm sorry but i think i was not clear when i asked ... )
  2. Is there any way to access the front or right component of a hybrid symbol ? More specifically i need to create a 2D circle inside the Front component of a hybrid symmbol/... Tks !
  3. Thank you for your prompt reply Pat. Well ... that's a shame... it's so easy (and fast) to duplicate either a design and sheet layer inside the software... it would really help having something equally easily available inside VS ... it would save a lot of time. But anyways, let's face the situation and implement with the tools we have at hand. Thanks !
  4. Does anyone had tried here to implement with VS a duplication of a sheet layer... other than creating a New Layer (using CreateLayer function) and then transfer the elements and settings of the reference sheet layer into it ? And in case that's the way to go, if there's a more global way of transfering all the properties of the layer reference into the new one ... ?
  5. Hi @MullinRJ No... i'm using 2023 SP3 (need to update my signature... sorry... ;-/ I found out here what happens ... the issue was that i'm trying to use this TrackObject procedure in a Tool script ... Moved the code to a command (vsm...) and it started working fine ... Thank you and @Pat Stanford for the inputs and suggestions anyways ! In fact: many of the tips and comments you guys wrote in this post here are always of great help ! Cheers !
  6. Hello Raymond ! Thanks for your example code and suggestion ... Yes, this usage of GetPt... as @Pat Stanford recommended will operate fine in 2D... not in 3D as i need in my tool... Your code is operating fine but only in 2D ...
  7. Hi @Pat Stanford Thank you for your advise ... I tried to call GetPt before calling ForEachObjectAtPoint() ... did not work ... and GetPt3D() also did not work ... Any hints ? Thanks
  8. Hello everyone ! I tried either TrackObject() and TrackObjectN() - with level at 0, or 1, and 2 Trying to interact (or select) only with Pio objets which are inside a Wall... Or at least recognize objects inserted inside Walls... Thanks.
  9. 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...
  10. 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
  11. 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
  12. 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 ?
  13. 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 !
  14. 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
  15. 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 !
  16. 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.
  17. 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 !
  18. 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 ?
  19. Thank you guys for the very quick replies ! David
  20. Is there any way to define the Description field of a class via VScript ? Tks for any tips !
  21. Hi Marissa I tried here... and it's crashing my Vectorworks here too ...
  22. 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
  23. 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
×
×
  • Create New...