Jump to content

Musisback

Member
  • Posts

    154
  • Joined

  • Last visited

Everything 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. Ok thanks, But is possible to match the record attached to this symbol with a ODBC database line?
  3. No one has an idea of how to link a symbol definition to a DB?
  4. 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)
  5. 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,
  6. Yep, it doesn't work. I am pretty sure it is a bug...
  7. Well I don't know how to run a script from another script... is there a function for that? Anyway my script is actually a tool that involves clicks, but it would worth a try...
  8. 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,
  9. 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...
  10. Sadly, I also tried ResetObj. It doesn't work...
  11. Yes, The PIO moves, but stays in its original plane. (either screen or layer) I 've done tests with A PIO that only contain rect(0,0,100,200). It does't works... Have you tried Maarten? Does it works for you? Thanks,
  12. Well, in the script above, I use SetEntityMatrix 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?
  13. Actually, we now can place 2D objects on any 3D plane. That was the big step forward brought by the 2011 version of Vectorworks. However, it's seem to be bugging a little in some cases...
  14. I'm not sure I understand you right. I need my PIO to be created neither in the layer plane nor the screen plane but on a 3D plane. (For example the XZ plane) Do you know the code to do that? Thanks,
  15. 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
  16. Thanks a lot, It is of a big help...
  17. I got the Dialog Builder 5 from there. It is not up to date. It generates obsolete functions. It would be great if you could make a more recent version available. Thanks,
  18. 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,
  19. Is is possible to choose when a plug-in-command is available in the object context menu. Example for build-in command : Add surface is available only when polygon-like objects are selected. Thanks,
  20. Too bad, it would really be useful for the people (like me) that make PIO's that are to be compatible with older versions...
  21. I need to create PIOs and other VW scripts that are compatible on VW2011 & VW2010. I am working on VW2011, so, to make sure I won't get bad surprises, I added the compiler directives : {$STRICT 15} {$NAME 15} at the begining of my script. It seem totally useless, so how am I supposed to use those?
  22. 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...