Jump to content

Musisback

Member
  • Posts

    154
  • Joined

  • Last visited

Posts posted by Musisback

  1. Hello,

    I develop plug-ins for a butch of Interior architect from my company. I know how to encrypt the scripts, but I would like to prevent the users of using the plug-ins outside of the firms purpose. (Especialy for the employees that could leave the company...)

    It thought about checking if the currents serial number is in the list of the company ones but it is not very handy.

    the list would need to be encrypted with the plug-ins and those would need to be reencrypted each time the company buys a new VW licence...

    Anyone has an idea?

  2. Sorry, but I don't understand at all what you mean with the messages.

    My pio is a kind of 3D (vertical) associate dimension. It's position and place are depending of other of my PIO's. I need the PIO to be 2D because I need the control points to be available in a vertical plane. (to change the shape of the dimension)

    I use a other tool to create the PIO and define on which objects the "associate dimension PIO" must be locked.

    Vectorscript seem to be unable to create and move on a vertical plane the 2D PIO in the same script. (my insertion tool)

  3. I would like to connect symbols to a record kept up to date with ODBC.

    To connect a symbol definition to a record. I need to enter the definition, deselect everything and choose the record.

    If I want to set a database line for this symbol :

    Tools > Database > Object connection. Well there is a problem, Nothing is selected, so it doesn't work...

    So, how can we connect a symbol definition to a database line??

    Thanks,

  4. The PIO code is indeed run after the SetEntityMatrix function.

    Here is what i think happens :

    For more efficiency, the pio codes are run at the end and once only.

    This has 2 consequences :

    - Resetobject has not effect.

    - VW does not know what kind of PIO it is dealing with (3D only, hybrid or 2D only) in doubt the developers block the 3D rotations.

    this is something new, I just tried in VW2010 and it works fine for 3D only PIO...

    Well if someone can help me finding a works around, I would really appreciate it.

    Thanks,

  5. The weird think is that it works fine except during the script of creation of the PIO.

    It tried but it doesn't rotate because hybrid object are forbidden to rotate in 3D.

    It tried a 3D only PIO and it does not rotate.

    I tried setting a working plane by script.

    It really seems like it is impossible to create and rotate in a PIO from the same script...

  6. Well, in the script above, I use SetEntityMatrix

    VS:SetEntityMatrix

    Description :

    Sets the matrix of the plane for a planar object. If there is already a plane in the document with that matrix, the object will be set to be in that plane. Otherwise a new plane will be added to the document.

    FUNCTION SetEntityMatrix(
                objectHandle     :HANDLE;
                offsetX          :REAL;
                offsetY          :REAL;
                offsetZ          :REAL;
                rotationXAngle   :REAL;
                rotationYAngle   :REAL;
                rotationZAngle   :REAL) : BOOLEAN;
    

    This function was made to place a planar object on a 3D plane. And it works fine EXCEPT in my case where I create AND MOVE the object (POI) in the SAME script.

    Does anyone know how to do it?

  7. I am unable to create and 3Drotate a 2D PIO in the same script.

    Procedure NewPIORect;
    
    VAR
    PIORect 			: handle;
    OK				: boolean;
    
    BEGIN
    PIORect :=createcustomobjectN('PIORect', 0,0,0,FALSE);
    {setrot3D(PIORect ,90,0,0,0,0,0);}
    OK := SetEntityMatrix(PIORect ,0,0,0,90,0,0);
    END;
    run(NewPIORect);
    

    I tried booth the SetEntityMatrix function and the setrot3D.

    If I try to rotate it later with another script, it works fine

    ex:

    {setrot3D(LSactlayer,90,0,0,0,0,0);}
    message(SetEntityMatrix(LSactlayer,0,0,0,90,0,0));
    

    Is this another bug, or am I doing something wrong?

    PS: -This is just an example. My PIO is complex and I really need to insert and rotate it from another script. I cannot insert it directly

    -I need the control points in 3D, that is why I need a 2D PIO and not A 3D PIO with 2D objects in it.

    Thanks

  8. I use the dialog builder DB5 in order to create complex dialogs.

    The big issue is that it generates functions and procedure that are now obsolete and throw warnings in VW2012.

    Does anyone know a more recent Dialog builder and how to get it?

    Thanks,

  9. The default values of the parameters of a PIO are defined by the plug-ins editor.

    The first time the PIO is used in an file, we get the opportunity to set other values ( Object Properties dialog).

    If the same files is used as template, the Object Properties dialog will not appear at the first use of the PIO because the default value are stored in the template.

    We can still change those values by clicking on the Object Properties button of the PIO.

    So far, everything is OK.

    Now here is my questions :

    Can we change those values from script ?

    I actually would want the users of my plug-ins to be able to set different defaults to draw different type of things within the same template.

×
×
  • Create New...