Jump to content

Pat Stanford

Moderator
  • Posts

    12,597
  • Joined

  • Last visited

Posts posted by Pat Stanford

  1. I would expect nested BeginFolders to fail. The first folder would not yet exist when the nested one was trying to be created. 

     

    LNewObj only works (as far as I know) on SOME objects that are actually visible in the drawing. I would not expect it to work on resources.

     

    Check out CreateFolderN in the function reference.

     

    Quote

    PROCEDURE PutFolderInFolder;
    VAR
        FolderName : STRING;
        FolderHdl : HANDLE;
        Folder2Hdl : HANDLE;
        ok : BOOLEAN;
        
    BEGIN
        FolderHdl := GetObject('AP Cable Folder');

        IF FolderHdl = NIL THEN
            BEGIN
                NameObject('AP Cable Folder');
                BeginFolderN(16);
                    NameObject('Inside AP Cable Folder');
                    BeginFolderN(16);
                    EndFolder;
                EndFolder;
            End;

            AlrtDialog(Concat(FolderHdl,'  ',Folder2Hdl));
        ok := SetParent(Folder2Hdl, FolderHdl);
        IF (NOT ok) THEN
            AlrtDialog('ok set parent is false');
        {InsertSymbolInFolder(FolderHdl, Folder2Hdl);}
    END;
    RUN(PutFolderInFolder);

     

  2. For your question on the schedule, Yes, you can modify what is said using an IF statement. Exactly how will depend on where you are storing the information on the operation. You may have to manually add that information to one of the user fields.

     

    Right now that column has a formula something like:

     

    ='Window'.'Operation'

     

    Change it to something like:

     

    =IF('Window'.'Operation'='Custom', 'Window'.'UserField1', 'Window'.'Operation')

     

    The above say if the Operation is reporting as Custom then fill the cell with the value of UserField1 otherwise fill the cell with the value of the Operation field.

     

    I don't have VW open right now to check exact record/field names. Hopefully this is close enough.

     

    @michaelk and I showed something almost exactly like this in our worksheet session at the 2019 Design Summit.

     

    Ask again if you need more assistance.

  3. What criteria are you using for the database row? How many subrows (3.1, 3.2, etc.) are showing in the database?

     

    It is possible that you have criteria that are not returning items that have a Lighting Device record so that would not provide any data. I am not certain why the Image and Count are not returning anything.

     

    Can you post a small sample file showing the problem?

  4. Any chance an internal (low power) graphics card is running instead of the GeForce?

     

    Have you created a new simple document and are you having the same problem there?

     

    Have done drivers I assume you have restarted the computer.

     

    Beyond that I can't help tonight.  Good luck.

  5. When you add thickness with Shell Solid, the created surface can not be self overlapping. i.e. If you have a 4" half tube and you tell it to have a thickness of 2" or more, then the created surfaces will overlap and it will fail.  

     

    Try with a very small value and see if it works from them and then work up from there.

  6. Create an extruded shape (probably a rectangle or polygon) that has a surface at the water level you want. Make sure the extrusion is deep enough so the bottom is below the lowest point on the DTM.

     

    Select the extrusion and the DTM and Subtract Solids. You should now have a Solid Subtraction equivalent to the volume of water being retained by the dam. 

     

    Volumetric Properties from the Model menu will give you the Volume of the solid.

     

    Extract Surface will give your a NURBS surface of the top of the water. Modify Menu:Convert:Convert to Polygon will give you a polygon which will show the area in the OIP.

    • Like 1
  7. The difference is that the first time you place a PIO in a specific document there Plug-in Parameter Record does not yet exist. When you place the PIO it is created.  When you delete the PIO the Parameter Record is not deleted, so the next time you place the same PIO the Parameter Record with the default data is still there to be used.

     

    You should be able to set reasonable default values in the Plug-in Editor so that on first insertion you get something reasonable. And these should be editable if you click the Preferences setting of the insertion tool (Pencil/wrench icon) to be used as the defaults for future insertions.

     

  8. Not possible using symbols by themselves. The only information that can be displayed singing the Link Text To Record command is data in a static record. You would have to change both the symbol and the record information as you are doing now.

     

    A couple of possibilities:

    1. Use a script to find all of the custom sized symbols and programmatically update the information in the Record which is linked to text in the symbol.

    2. Create a Plug-in Object (PIO) rather than static symbols. Then when you change the values in the OIP (Object Info Palette), the symbol and record would both be updated at the same time.

     

     

  9. I completely misunderstood what you are asking for. I thought you were asking for the ability to move settings between different fences.

     

    You might want to do a better explanation of what you really need. 

     

    It is also often better to explain the need and let VW figure out the how. Eyedropper does not work inside any object that I know of, only between objects. Perhaps a button in the OIP to Match Top Rail or something would be a better interface. (and probably much easier to get implemented.

  10. Vectorworks does not allow editing of EPS images. Perhaps your best bet would be to try and convert them to PDF. You MIGHT be able to ungroup the PDF and get vectors that you can edit.

     

    When you ungroup the PDF you will probably get a bad bitmap of the image, a blank rectangle representing the page, and then under both of them the vectors included in the PDF.

     

    Editing EPS is not a VW core competency.

  11. =CONCAT(('TrussItem'.'Width')*12, '" x ', 'TrussItem'.'Height'*12, '" x ', 'TrussItem'.'Length', '´')

     

    The *12 is to convert to inches.

     

    For the Inch mark I just included the double quotes inside the strings with the Xs.

    For the Foot mark I used the Accent Grave (Option-e on Mac) to simulate. Since the single quote is used for string delimiters, it is hard to force it to display properly in a worksheet formula.

     

    If you need to limit the decimal places you could use something like:

     

    INT(TrussItem.Width*100*12)/100 to round to two decimal places. Use 10 to round to one decimal place.

    • Like 1
  12. =CONCAT('TrussItem'.'Width', ' x ', 'TrussItem'.'Height', ' x ', 'TrussItem'.'Length')

     

    You had double quotes around the Xs and an extra single quote outside and after the Height close paren.

     

    Actually I had double quotes. I think that was an autocorrect problem, but maybe just my fuzzy brain.

    😉

    • Like 1
×
×
  • Create New...