Jump to content

David O

Member
  • Posts

    52
  • Joined

  • Last visited

Posts posted by David O

  1. 4 hours ago, Pat Stanford said:

    This thread from 2009 indicates that there is (was) not a way to duplicate a layer, only a way to create a new layer and set it to match the original.  😞

     

     

    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 !

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

     

     

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

     

  4. 22 hours ago, MullinRJ said:

    Hello, David.

       HINT: Pat's second suggestion is what you need. Try this code snippet. No error checking is done, so you'll have to add your own.

     

    PROCEDURE xxx;
    { Report the type and the PIO Name of a selected wall item. }
    VAR
    	H, subH :Handle;
    	B :Boolean;
    	I :Integer;
    	P :Vector;
    BEGIN
    	GetPt(P.x, P.y);
    	B := GetPickObjectInfo(P.x, P.y, H, subH, I);
    	message(GetTypeN(subH), '  ', GetName(GetParametricRecord(SubH)));
    	SysBeep;
    END;
    Run(xxx);

     

    HTH,

    Raymond

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


      

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

     

     

     

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

     

  7. Answering

    6 hours ago, JBenghiat said:

    How are you getting hNURBsPath? If you are drawing as a 2D path or using a 2D profile group, this may help:

     

    
    SetPlanarRefIDToGround(hPoly);
    hNURBsPath:=ConvertToNURBS(hPoly, TRUE);

      

     

    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 

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

     1539529201_ScreenShot2019-07-30at20_20_43.thumb.png.29c6f7d87df64c39a79c929e9921fc3c.png

     

    - 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

    369660252_ScreenShot2019-07-30at20_21_24.thumb.png.9562b301d3e5de4da8ea7e97c20e7d77.png

     

    Border Aplication TEST File.vwx

    Aplic Perfis TST.vst

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

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

     

     

     

     

      

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

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

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

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

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

     

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

     

     

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