Jump to content

matteoluigi

Member
  • Posts

    179
  • Joined

  • Last visited

Posts posted by matteoluigi

  1. 28 minutes ago, elepp said:

    Revit now supports both

    the last time I worked with revit, it was server based. There now exists also the option of shadowing a project between two offices in two different cities/buildings... so you always work with your "local" server. We had the technical-engineer-files (heating, air, electro sanitary and the according wall openings) directly linked together, too, working from two locations, connected via vpn

  2. Hi

    i still got a few ps-server questions:

    1) the shared folder accessed by the psserver is the place where all project files, managed through the running server app are stored in, right? (i think YES)

    2) is it possible to run more server-app instances on one server machine

    3) do you maybe recommend running psserverd on more machines maybe? Or is one server for more projects ok? (mainly for load balancing and reliability issues)

    4) how many projects are possible on one server-app? we have more server-computers: a mac mini and a cylindric mac pro.

    5) if another colleague wants to participate he first has to open the vwxp-file on the shared folder, right?

     

    6) why didn't you set up a REAL SERVER WITH USER MANAGEMENT, PROJECT MANAGEMENT... like the hungarians did, too. Revit does it for example as well... so sad 😉

  3. Just another idea:

    priority levels from 1 to x, which set the importance of the chosen criteria.

    level 2 criteria are set in one bracket, level 3 in 2 brackets... I think, this could be a way, to solve that issue in a rather simple and comprehensive way. More complicated criteria sets so still have to be written in "manual-code".

    what do you think?

     

    (2 options...)

    @elepp @Hugues

     

    tabelle-filter.thumb.jpg.bbe4056c1b3e63ee29497dc66ecc9a8b.jpg

    tabelle-filter_2.jpg

  4. 14 hours ago, Pat Stanford said:

    The Message command "stopped working" a few versions ago

    btw, the first in the introduction of vector script is basing mainly on the Message-command. I'm sure, the page hasn't been touched for a rather long time, however, a quite unsatisfying "first script" for beginners ;-).

  5. Hi,

    I try to put out some Info via the message bar. (i actually am thinking about some kind of progress bar)

    Unfortuntately their doesn't appear any text in the message bar...

    any ideas?

    (it's the first example script from the developer-page) 😉

     

    Quote

    PROCEDURE FirstExample;
    CONST
       kGREETING = 'Hello ';
    VAR
       MyMessage : STRING;
    BEGIN
       myMessage:='Script';

       Message(kGREETING);
       Wait(5);
       SysBeep;
       ClrMessage;
    END;
    RUN(FirstExample);

     

  6. 12 hours ago, Hugues said:

    I would be interested to know if there is an interface out there that does this type of AND/ OR queries and that you consider elegant, intuitive and easy to use. 

    I could imagine like in the following screenshot. Maybe with a checkbox to enable or disable the functionality, so, users who don't care about "&" and "|" don't have to think about it. However, if you already start to use worksheets with criteria filters setting logical links is an elementary thing.

     

    1196539065_Bildschirmfoto2020-10-21um10_38.51_2.thumb.png.10d07bd3847258c97ca5fc811f31dc72.png

  7. 27 minutes ago, Pat Stanford said:

    Edit Database Formula

    @Pat Stanford I know about the Database Formula. I can edit it also in former Vectorworks-Versions, immediately after having left the dialogue.

     

     

    31 minutes ago, Pat Stanford said:

    it would be nice to have more control over the & and | options through the dialog box

    in my opinion, worksheets are a rather good feature in Vectorworks. However, not being able to edit & and | is quite a limitation for getting deeper in good worksheets. I think their should already exist an Enhancement Request...

  8. Hi,

     

    I like working on worksheets in Vectorworks, however, Vectorworks tends to set "&" and "|" connections for Database-criteria rather randomly. (with a logic behind it, but, not always matching my aims)

     

    As you can see in the screenshot, i want to filter all Rooms which are bathrooms from Building nr. 1

     

    However, everytime I try to set these criteria, Vectorworks writes: "=DATENBANK(((R IN ['Wohnung']) & (('Wohnung'.'Zimmertyp'='Bad') | ('Wohnung'.'Haus-Nr'=1))))"

    I always have to switch in "=DATENBANK(((R IN ['Wohnung']) & (('Wohnung'.'Zimmertyp'='Bad') & ('Wohnung'.'Haus-Nr'=1))))"

     

    Can't you implement the option of setting the logical connection for "And" "Or" or "not" directly in criteria dialogue? That would be quite, recommended (not great)

    (like in the second screenshot)

     

    1267120258_Bildschirmfoto2020-10-21um10_38_51.thumb.png.109e4ded7ac80c61b6a73170f159ef47.png

    Bildschirmfoto 2020-10-21 um 10.38.51_2.png

  9. @JBenghiat @Pat Stanford

    I finally made it 😄 (with a week off vacation inbetween 😉 )  

     

    It works. I hope there is nothing strange in that script. I decided not to use the critstring. I didn't get it working, now without critstring the script works fine.

     

    Thanks a lot for your help!

     

    Quote

    PROCEDURE DB;

    VAR

    HNR:            INTEGER;    {House-Number}
    WHGNR:            INTEGER;    {Apartment-Number}
    ZNR:            INTEGER;
    ZANZAHL:        REAL;        {Number of Rooms from the actually looped apartment}
    WKANZAHL:        REAL;        {Number of half-rooms from the actually looped apartment}
    WHGSCL:            REAL;        {Type of apartment (= one-room two-room,...}
    WHGFL:            REAL;        {Apartment aera}
    WHGSCLSTR:        STRING;        {String of Type of apartment (= one-room two-room,...} 
    WHGFLSTR:        STRING;        {String of Apartment aera}

    PROCEDURE CalledProc(HNDL:Handle);
    Begin
        {SetRField(HNDL,'Wohnung','Whg-Typ', Concat('TEST'));}
        {AlrtDialog(Concat('Handle: ',(Concat(HNDL))));}
        SetRField(HNDL,'Wohnung','Whg-Typ', Concat(WHGSCLSTR,'-Zi-Whg'));
        SetRField(HNDL,'Wohnung','Whg-Flaeche', Concat(WHGFLSTR,' m2'));
    End;

    BEGIN

    FOR HNR:=1 TO 6 DO
    BEGIN


    FOR WHGNR:=10 TO 50 DO
    BEGIN

    ZANZAHL := COUNT((('Wohnung'.'Haus-Nr'=HNR) & ('Wohnung'.'Whg-Nr'=WHGNR)) & (('Wohnung'.'Zimmertyp'='Zimmer') | ('Wohnung'.'Zimmertyp'='Arbeitszimmer') | ('Wohnung'.'Zimmertyp'='Wohnen')));
        {Zählt, wieviele Zimmer in der Wohnung mit der Wohnungsnummer NR sind.}
    WKANZAHL := COUNT(('Wohnung'.'Haus-Nr'=HNR) & ('Wohnung'.'Whg-Nr'=WHGNR) & ('Wohnung'.'Zimmertyp'='Wohnküche'));
    WHGSCL:= ZANZAHL+WKANZAHL/2;
    WHGFL:=AREA(('Wohnung'.'Haus-Nr'=HNR) & ('Wohnung'.'Whg-Nr'=WHGNR));

    WHGSCLSTR := Num2Str(1, WHGSCL);  {i needed to set the rounding for half rooms,...}

    WHGFLSTR := Num2Str(2, WHGFL); {i needed to set the rounding for the apartment-area}


    {AlrtDialog(Concat('Haus: ',HNR, ' ; Wohnung: ',WHGNR, ' ; ZI-NR: ',WHGSCL,';',WHGSCLSTR, ' ; Fläche: ',WHGFLSTR, ' m2: '));}


                ForEachObject(CalledProc, (('Wohnung'.'Haus-Nr'=HNR) & ('Wohnung'.'Whg-Nr'=WHGNR)));


    END;

    END;

    END;

    RUN(DB);

     

    • Like 1
  10. 26 minutes ago, JBenghiat said:

    SetRField will only accept field values as strings.

    Yes, I‘ve already solved that problem with three variables for one issue, the first is REAL or INTEGER, the second one is a STRING and the third one a ...CHAR variable, num2str converts my REAL or INTEGER into a STRING... works fine 

    thanks a lot 

    I will check out the rest tomorrow 🤗

  11. Did I understand right, that I have to pack two procedures in one script?

     

    like that:

     

    Quote

    PROCEDURE DB;

     

    VAR

     

    Variables: *****

     

    PROCEDURE CalledProc(HNDL:Handle);

    Begin

    SetRField(HNDL,'Wohnung','Whg-Typ’,’myvalue’);

    End;

     

    BEGIN

    FOR HNR:=1 TO 6 DO

    BEGIN

    FOR WHGNR:=10 TO 15 DO

    BEGIN

    ZANZAHL := COUNT((('Wohnung'.'Haus-Nr'=HNR) & ('Wohnung'.'Whg-Nr'=AptNr)) ;

    ForEachObject(CalledProc, (('Wohnung'.'Haus-Nr'=HNR) & ('Wohnung'.'Whg-Nr'=WHGNR));

    END;

    END;

    END;

    RUN(DB);

     

  12. 15 hours ago, Pat Stanford said:

    Since you said you want to use "database attributes" I think you mean Criteria

    oh, excuse me, I have been translating directly from german.

    I want to select objects by record fields and not by their names and assign new data to other record fields.

     

    Let's say, "get me all geometry(=rectangles, polygons,...)" who match "(('Apartment',Housing'=HNr) &('Apartment',Apartmentnumber'=ANr)) and assign the values for total-nr of rooms and total area to a record field in every room-geometry of this apartment...

     

    Somehow it seems to me, that it isn't possible to assign an object to a handle which is chosen by a record field and not by its name... (and now I try to limit myself to assigning single objects to that handle 😉 ) sorry for bothering

     

×
×
  • Create New...