Jump to content

Sir_Dan_Fortesque

Member
  • Posts

    34
  • Joined

  • Last visited

    Never

Everything posted by Sir_Dan_Fortesque

  1. Hello Ray, Thank you very much for your explanation and your code. I will try it and give you a message about my successes. I am very glad that you do know the answer to my problem. On this moment I can go 10 nested groups deep, thereafter it stops. Because I never know how much nested groups and objects inside, the code has to check itself. I did not know about the For-Each-object in VectorWorks. Thank you very much for your help. I really appreciate it because I searched for hours without finding a solution. Now the sun shines again a little brighter. I wish you a very nice day and very much success with VectorScript programming. Friendly greetings, StarGate(Chrissy)
  2. Hi, In the past we had the same problem as your script. Firstly, maybe it is a good idea to use SetTool instead of CallTool (at least this solved the problem for us). Secondly the number to use is -208 for the wall tool not -128. I will take a closer look at your code in the weekend, and I will try it. In the meantime have a nice weekend. Friendly greetings, StarGate
  3. What answer are you searching for? The only reason a problem excist is to be solved, sooner or later. Nice greetings, StarGate
  4. Hi Everyone, I do write a lot of scripts in VectorScript. In 8.5.2 there is a limit of 32 K of the size of a VectorScript. Vectorworks always warned when the exceeded the limit. Since a couple of weeks we updated to VectorWorks 9.0.1. I thaught that the limit of the size of a VectorScript was removed. But regretfully for me it is not. And to make things more worse, also the warning is removed with it. Now VectorWorks does not warn you, you can type as much you want exceeding the limit. But when you close your scripteditor and try to run the script, you will soon find out that you loosed all the last code which exceeded the limit. VERY NICE WORK NEMETSCHEK, VERY NICE! I did remove all unnecessary spaces, all comments but my script still exceeded the limit. It is not possible to break it further in pieces until it fits. I tried the #include files but it does for some reason not work even when I install those include files in the Plug In map. I think the size limit of a VectorScript is removed in version 9.5 but I am not sure. Can anyone tell me if this is true? I hope that Nemetschek consider this as very important, because that limit is a severe restriction. VectorWorks and VectorScript is a very good combination which even let Auto-Cad far behind, but please remove that limit. I am sure many people will be very thankfull for that. I thank you very much and I wish you a very nice day. With friendly greetings, StarGateDesselBelgiumEurope
  5. Hello Everyone, I have a very nasty problem which until now nobody could solve. This is the problem. I have a layer called laySupport. On that layer there can be an unlimited number of objects, groups and even nested groups inside other groups. The level of nested groups are unknown (can be 1, 10, infinite...). In short it cannot be predicted how many groups and especially nested groups there will be on the laySupport layer. I have to disconnect all the records from every individual group member. I do that with a DelRecord(hndObject,1) instruction. My problem.I cannot determine how many groups and escpecially nested groups there are present on the layer laySupport or inside another group. I need to access every individual group member. Do you know how I can access every individual object inside an unknown number of nested groups? I will appreciate your help very much. I am sure the one who can solve this problem, is very good indeed. If you need the example document, send me an email and I will send you the document with everything in it. The script is calling ResetGroup. We are using Vectorworks Architect 9.1 Dutch version for Mac. I thank you very much and I wish you a nice day. With friendly greetings, StarGateEmail : woods@skynet.be
  6. Hello Everyone, I have a very nasty problem which until now nobody could solve. This is the problem. I have a layer called laySupport. On that layer there can be an unlimited number of objects, groups and even nested groups inside other groups. The level of nested groups are unknown (can be 1, 10, infinite...). In short it cannot be predicted how many groups and especially nested groups there will be on the laySupport layer. I have to disconnect all the records from every individual group member. I do that with a DelRecord(hndObject,1) instruction. My problem.I cannot determine how many groups and escpecially nested groups there are present on the layer laySupport or inside another group. I need to access every individual group member. Do you know how I can access every individual object inside an unknown number of nested groups? I will appreciate your help very much. I am sure the one who can solve this problem, is very good indeed. If you need the example document, send me an email and I will send you the document with everything in it. The script is calling ResetGroup. We are using Vectorworks Architect 9.1 Dutch version for Mac. I thank you very much and I wish you a nice day. With friendly greetings, StarGateEmail : woods@skynet.be
  7. Hi Klinzey, This morning I tried your solution but regretfully it did not work. I am sure that the answer you gave me is correct. But we use a Dutch version of VectorWorks where the Plug-in directory is called "Insteekmodules". Maybe this is the reason this did not work. We decided to go on the old way (like we did in 8.5.2) and story our common procedures and functions in a library script. I thank you very much for your help and your advice. I wish you a very nice day and much success in VectorWorks. Friendly greetings, StarGate(Chrissy)
  8. Hi, Does anyone have a solution of the following problem. I have to recalculate all the present worksheets in a VectorWorks 9.1 document. The problem is that the script has to scroll through ALL worksheets from the first to the last. When a new worksheet is added, the script has to detect this when it is run and calculate the new worksheet without changing the code. Is there a collection of worksheets present which we can browse one by one? Can you give me the necessary VectorScript commands and how can I do this. I thank you very much in advance. I wish you a very nice day and much VectorWorks fun. Friendly greetings, Sir Dan Fortesque(Chrissy)
  9. Hello, I like to place my common used scripts inside an INCLUDE file. The Include file has to be used by Macintosh and Windows version of VectorWorks 9.1. I made an include file in Microsoft Word named ExternScripts.vss. The directory structure is :F:\StarGate_2002\Include_Files\ExternScripts.vss I checked the names, the directory structure but I always get the error "Could not open include file". The F: drive calls PC-MAC(F when you view it in My Computer. The code in the INCLUDE file :procedure Remote_Sub;var i:integer;beginAlrtDialog('This is the remote function');end; { End of Remote_Sub } Code in the calling script :procedure Test_Rem;varj:integer;j:string;{$INCLUDE F:\StarGate_2002\Include_Files\ExternScripts.vss}beginRemote_Sub;end; { End of Test_Rem }run(Test_Rem); Please note that I typed the text over from the screen near me. In the original code, I checked spelling and everything seems correct. However I think that the problem is located in specifying the drive and its name. Can you help me solving this problem. I will appreciate your help and I thank you in advance. I wish you all a Merry Xmas and a happy New Year. And I hope you will enjoy your well deserved holiday. For the others who have to work (like me) during this period, I wish you every success and I hope you will enjoy your work. Friendly greetings, Chrissy
×
×
  • Create New...