Jump to content

iborisov

Vectorworks, Inc Employee
  • Posts

    39
  • Joined

  • Last visited

Posts posted by iborisov

  1. Hi @MarcelP102

     

    Yes, the number of features that can draw at one time from a hosted feature service is determined by setting the maximum number of records returned by the server, also known as the Max Record Count. The Max Record Count determines the number of features that can be returned from the service at one time.

     

    After C/L 661250 there is a dialog informing the user that features in the requested extent is more than the maximum allowed.

     

    You can see more info here: 
    https://support.esri.com/en/Technical-Article/000014750

    Max Record Count.jpg

  2. Hi @MarcelP102

     

    My plans are to add four vector script functions and it would be great to hear your opinion.

     

    The vector script functions are as follows:

     

    PROCEDURE BindLayerToArcGISFS(
                hLayer              :HANDLE;
                strURL              :STRING;
                strFeatureID     :STRING;
                bRequestAll     :BOOLEAN);
                
    PROCEDURE BindLayerToWFSFS(
                hLayer                  :HANDLE;
                strURL                  :STRING;
                strFeatureName  :STRING;
                bRequestAll         :BOOLEAN);

     

    PROCEDURE UpdateLayerFromFS(
                hLayer                 :HANDLE;
                bRequestAll        :BOOLEAN);


    PROCEDURE UpdateFeatureLayer(
                hLayer                 :HANDLE);
                

    You can use the "FOR" cycle and BindLayerToArcGISFS() to achieve your goal:

     

    PROCEDURE ArcGISFeatureService; 
    VAR
        id                         : INTEGER;
        url                        : STRING;
        featureId             : STRING;
        requestAll           : BOOLEAN;

    BEGIN
        url                        := 'https://basisregistraties.arcgisonline.nl/arcgis/rest/services/BGT/BGT_objecttypen/FeatureServer';
        requestAll           := TRUE;
        
        FOR id := 0 TO 50 DO
        BEGIN
            featureId         := Num2Str(0, id);
            BindLayerToArcGISFS( ActLayer, url, featureId, requestAll );
        END;
    END;

    RUN (ArcGISFeatureService);

  3. On 6/19/2022 at 3:16 PM, MarcelP102 said:

    I'm planning to make a script that sets the feature service of a layer. Get's the geometry and than changes to another feature service and repeat the process. Unfortunately I can't find a function to set feature service of a layer. It's a relative new function, available since 2022 so perhaps that's why it's not available at the Wiki?

     

    Hi @MarcelP102

     

    Could you give more details about the algorithm you want to follow when setting a feature service to a layer?

     

    I assume everything should be hidden with no popup dialogs? If this is desired, you will have to provide at least the URL address, Layer ID, Service Type(ESRI Feature or WFS), boolean for Request View Region features, and maybe more like that. Thanks.

     

  4. Hi Taproot,

     

    "After hitting this error, I did rename the Notes Database to a more current version ... just so I knew which version was most current.  I can rename it to "General Notes" again if that will help..."

     

    The Notes Database does not have a version. It is a TXT or XML file with a special structure inside. 

    Each Note on the drawing has information from which database it receives information. In other words each Note remembers the path and the name of the database.


    When an error pops it means that the Note cannot access/locate the database it remembers. This error message contains the path and the name of the database which cannot be accessed/located for any reason. Here is the point where you need to put the right database in the right folder, according to what the error message says.

     

    I do not know where to find the "Reconcile Notes" command. 

     

    Reconcile Notes.png

     

    To reconcile notes:
    Select Text > Reconcile Notes...


    What Reconcile Note will do if you just want to rename a database? 

     

    1. Let say you have working VWX file with Notes assigned to actual path and database - Vectorworks/2020/Libraries/Defaults/Notes/General Notes.txt
    2. If you change the name of the database to General Notes 2020.txt, the error message will start pops when you try to edit any of the Notes because it cannot find the database they remember.
    3. Executing Reconcile Notes... command will automatically find all Notes in the drawings that cannot locate their remembered databases.
    4. It will ask you to indicate the correct database. Select Browse and find General Notes 2020.txt.

    5. If selected database is the same (no changes inside, just other database name) no other action is needed.
    6. An informative message will be displayed to show how many Notes are updated to remember the new database.
    7. Save the VWX file.

    • Like 1
  5. Hi Taproot,

     

    "My Notes Database somehow disassociated from my template file during the 2020 upgrade"

     

    Would you explain what exactly happened to disassociated your database file TA 2014 General Notes.xml?

    If the file is in the correct place (/Common/Data/) with the correct name (TA 2014 General Notes.xml) it should be able to find it.
    If you changed the name of the database of course it won't find it.

     

    "I am now forced to go through every one of them individually and redirect the Note Manager to the correct database."

     

    Еach note is treated as a separate note that can point to a different database. Тhat's why it's necessary to go through every one of them individually and redirect the Note Manager to the correct database.
    It may be worth considering here if we can automate the process for all notes with the same database name...

     

    Did you try Reconcile Notes... command? With Reconciled Notes functionality you can fix your template file with few steps (if you just change the name your database).

     

    Thanks.

  6. Deleting Keynotes

    If you delete a keynote, the remaining keynotes are not renumbered. The keynote legend maintains a “gap” or placeholder displaying the custom text specified in Unused Position Text. However, if Re-use Unused Positions is selected and another keynote is placed in the drawing, the new keynote replaces the first “gap” keynote. Clicking Remove Gaps from the Object Info palette of a selected keynote legend also removes gaps; another way to remove gaps is to sort the keynotes in the Notes Manager: Keynote List dialog box.

  7. Hello,

    Would you give us more details about the problem? If it is possible to upload a test file and a video. It will also be helpful if we know which version of Vectorworks 2019SP2 you use.

    Thanks.

  8. Hello alfresco,

     

    Would you give us more details about the problem? If it is possible to upload a test file and a video. It will also be helpful if we know which version of Vectorworks you use.

     

    Thanks.

×
×
  • Create New...