Jump to content

Sir_Dan_Fortesque

Member
  • Posts

    34
  • Joined

  • Last visited

    Never

Posts posted by Sir_Dan_Fortesque

  1. Hello,

    As promised I did the translation of the VW 7 to VW 9 files. I succeeded almost completely except for one thing.

    First you are asked to select a folder where the VW 7 files are located. After that the AppleScript create a folder OriginalsV7. Then the VW 7 files are converted from VW 7 to VW 8 and the originals are moved inside the Originals V7 folder. When the VW7 to VW8 translation is completed, another folder is created named Originals V8. Then the translation process start over again but this time from VW8 to VW9.

    When the AppleScript ends everything seems normal. The original VW8 files are moved inside the Original V8 folder. Also the files left have Type MC9d and Creator CDP3 I checked that with ResEdit. Now comes the problem. When you try to open the documents in VW9 you get an error telling you that the document is damaged or very old.

    I will copy the AppleScript here below the text. Do you know what is the cause of the error of what is wrong?

    To try out the AppleScript you need VW8 and VW9 both installed on your computer. Also you need AppleScript to run or edit the Script.

    In case you do not know how use AppleScript. Double click on the AppleSCript symbol on your computer. In the file menu choose New Script. A new script window will open. Paste the scriptcode below in the bottom textfield and in the top textfield write a description. Now click on run and your script will running.

    I will appreciate your help very much and maybe someone from Nemetschek can put us on the right way.

    Thank you very much for your help and I wish you a nice day.

    With friendly greetings,

    ChrissyDesselBelgiumEurope

    tell application "Finder" set sampleFolder to folder ((choose folder with prompt "Select folder of MiniCAD files:") as string) set translateTargetV7 to ((sampleFolder as string) & "OriginalsV7") make new folder at sampleFolder with properties {name:"OriginalsV7"} set MCFileListV7 to every file of entire contents of sampleFolder ? whose ((creator type is "CDP3") and (file type obsolete is "MC+4"))end tell

    tell application "VectorWorks 8.5.2 NL" activate repeat with fileAlias in MCFileListV7 with timeout of 1200 seconds translate fileAlias as alias tell application "Finder" move fileAlias to (translateTargetV7 as alias) end tell end timeout end repeatend tell

    tell application "Finder" set translateTargetV9 to ((sampleFolder as string) & "OriginalsV8") -- display dialog ? -- translateTarget buttons {"OK"} default button 1 make new folder at sampleFolder with properties {name:"OriginalsV8"} set MCFileListV8 to every file of entire contents of sampleFolder ? whose ((creator type is "CDP3") and (file type obsolete is "MC8d"))end tell

    tell application "VectorWorks 9.0.1 NL" activate repeat with fileAlias in MCFileListV8 with timeout of 1200 seconds translate fileAlias as alias tell application "Finder" move fileAlias to (translateTargetV9 as alias) end tell end timeout end repeatend tell

  2. Hello Dave,

    Thank you for your help and your advice. I did not know that VectorScript supported AppleScript. I did a couple tests to open a document (record the actions with ScriptEditor) but they failed.

    I will take a look on the script who convert V6 to V7 files. If I can adapt it to translate V7 to V9 files, I will put the code here on the message board.

    Thank you very much for your advice. It is not the first time you helped me and I am very gratefull for that. If I ever can help you or do something in return, let me know.

    I wish you a very nice day and all the best!

    With friendly greetings,

    ChrissyDesselBelgium

  3. Hello Everyone,

    I have a question and I will appreciate your help very much.

    Is it possible to automate some tasks in VectorWorks with AppleScript? The tasks are in the following sequence :

    1. Open VectorWorks 7 document on CD with VectorWorks 82. Push "OK" button to close conversion warning dialog.3. Save document in VectorWorks 8 format with "Save As..." specifying automaticly the path and the name.4. Open this document again in VectorWorks 9.5. Push "OK" button to close conversion warning dialog.6. Save document again in VectorWorks 9 format specifying automaticly the path and name.7. Repeat at step 1 to convert the other documents.

    Can you tell me if it is possible? I think if VectorWorks is AppleScript "Recordable" it is possible, but I am not sure. On this moment I am learning AppleScript because I still have to translate between 1000 and 2000 VW7 documents and I like to accomplish this automaticly.

    When we find a solution, I like to share this AppleScript with other people freely.

    I realise that I ask regularly for help and therefore I appreciate your efforts to help myself and other people very much.

    I thank you very much in advance and I wish you a very nice day.

    Friendly greetings,

    Chrissy smile.gif" border="0

  4. Hello VulcanGrip,

    It seems that I am not alone who like StarGate very much. Thanks for mention the DVD edition, I will take a look after it. Regretfully I did not see Super Nova.

    Indeed there are a lot of translations to do. But maybe I found another way to translate them. We have also VW 8.5.2 which can read VW 7 files. I think I will try to read them in 8.5.2 and save them. Then I will read those VW 8.5.2 files into VW 9.0.1 where I will save them. I think it will be quicker because I omit one step. I found out that trying to translate more than one file, still gives regular errors.

    Thank you very much for your reaction and very much VectorWorks pleasure.

    Friendly greetings,

    Chrissy smile.gif" border="0tongue.gif" border="0grin.gif" border="0wink.gif" border="0

  5. Hello,

    Can you help us with the following question. I have convert between 1000 and 2000 MiniCad 7 documents to VectorWorks 9. I know there is a utility called Translator (we have that).

    Now my question. Do you know how we can automaticly convert those documents. Also when using Translator we got a lot of type 1 errors. I assigned 5000 MB to Translator itself and 50000 MB to MiniCad 7 (we use our own old copy). The system we are running on is Mac OS 9.2.2 Dutch. Do you have an idea what causes those errors?

    I thank you very much in advance and I wish you a very nice day.

    Friendly greetings,

    Chrissy

  6. Hi,

    As promised in my former reply, I let you know the results.

    Instead of using the worksheet, I gather all information of the objects in the drawing and save them to a text file.

    So immediatelly after my script receives information (by a handle to an object), it writes a line which contains all informations. In this way I can ommit two steps, firstly get all information in the worksheet, second browse through the worksheet and put all information again in the text file.

    I thank you very much for your help and wish you a very nice weekend.

    Friendly greetings,

    Chrissy smile.gif" border="0tongue.gif" border="0wink.gif" border="0

  7. Hi,

    I agree with Dave except on one thing. There is still a Vectorscript limit of 32 K when creating scripts in the VectorScript editor (scripts who run inside the document itself, ie in a script pallet). I have to warn you that there is a bug in VectorScript editor 9.0.1 which let you work on above those 32K, so it seems there is no limit. However once you close the VectorScript editor you will find out that you loosed the code which exceeds those 32 K limit. So be warned about this because I experienced the nasty results itself.

    But there is another way. Use Plug In Objects (PIO) which do not have that limit. You can use the PIO in the Organise menu and choose Create Plug In. You will see that you use the same VectorScript editor but this time without the 32 K limit. You can access your PIO by adding it to your work environment. Once you are accustomed with this, it is very easy. And one big advantage, your PIO's can be accessed in every VectorWorks document.

    Have a nice day.

    Chrissy

  8. Hello Katie,

    Thank you very much for your advice, I appreciate it very much.

    I forgot the export feature you mentioned. In fact I was concentrating totally to the worksheet itself. But now I am thinking further. I think that I also can create a textfile in VectorScript. When my script gets the values (expressions and formulas are not used in the worksheet) out of the worksheet and export them in a delimited textfile I think 4D can import my file.

    It is really great to have the ability of a programming language inside a CAD program. I always remembered a phrase Chakotay once said in the very first episode of Star Trek Voyager; "BE CREATIVE". Its that what let a person stand out of the crowd.

    I will let you know my results and again I thank you very much. I wish you a very nice day and very much succes in everything you do. And remember; be creative (its true).

    Friendly greetings,

    Chrissy

  9. Hello,

    Can you help me with the following question.

    Is it possible to access a VectorWorks worksheet with 4th Dimension or any other database program? Also is it possible to use RealBasic to get access to a VectorWorks worksheet?

    When it is possible, can you tell me how and what I need to accomplish this?

    I thank you very much for your help and I will appreciate it very much.

    Friendly greetings,

    Chrissy smile.gif" border="0tongue.gif" border="0grin.gif" border="0

  10. tongue.gif" border="0

    Hello,

    I ultimatelly found the cause of my problems with those PIO objects. With the PIO is everything fine, it is Nemetschek which made a terrible fault.

    When you modify your work environment and add a menu and menu items to your menu bar, VectorWorks assigns a menu-ID number to each menu item to identify them.

    Before I explain further note that the menu ID's for the pattern pallet are situated between 70 and 75. I checked my own menu entries and not surprisingly they are in this same range. When I change (with ResEdit) the numbers of my own menu entries so they are outside this range, the pattern pallet does work again. Regretfully by doing so I have to change the complete added menu items as well.

    About the cause of this problem. It is obviously a very serious programming error. There is nothing a normal user can do to solve this problem. The error can made in two places : or all versions have that and Nemetschek is at stake here, or only the Dutch version have that and the cause is by the people who translated VectorWorks.

    In either way despite the responsibility matters, it is an error which may not occur in any circumstances. It proves that VectorWorks has very serious flaws.

    And when you read the above carefully you realise why there is no problem on the PC version (because the menu system is very different).

    Maybe Nemetschek can pay me for my hard work. In the end I am solving their problem. I get a very good idea why people contact me so much to help them solve a problem.

    Any reaction of Nemetschek would be welcome.

    In the meantime, I wish you a very nice day and very much pleasure with VectorWorks.

    Friendly greetings,

    Chrissy grin.gif" border="0

  11. mad.gif" border="0

    Hello,

    I ultimatelly found the cause of my problems with those PIO objects. With the PIO is everything fine, it is Nemetschek which made a terrible fault.

    When you modify your work environment and add a menu and menu items to your menu bar, VectorWorks assigns a menu-ID number to each menu item to identify them.

    Before I explain further note that the menu ID's for the pattern pallet are situated between 70 and 75. I checked my own menu entries and not surprisingly they are in this same range. When I change (with ResEdit) the numbers of my own menu entries so they are outside this range, the pattern pallet does work again. Regretfully by doing so I have to change the complete added menu items as well.

    About the cause of this problem. It is obviously a very serious programming error. There is nothing a normal user can do to solve this problem. The error can made in two places : or all versions have that and Nemetschek is at stake here, or only the Dutch version have that and the cause is by the people who translated VectorWorks.

    In either way despite the responsibility matters, it is an error which may not occur in any circumstances. It proves that VectorWorks has very serious flaws.

    And when you read the above carefully you realise why there is no problem on the PC version (because the menu system is very different).

    Maybe Nemetschek can pay me for my hard work. In the end I am solving their problem. I get a very good idea why people contact me so much to help them solve a problem.

    Any reaction of Nemetschek would be welcome.

    In the meantime, I wish you a very nice day and very much pleasure with VectorWorks.

    Friendly greetings,

    Chrissy

  12. Hello,

    Can you help me with the following problem. I made a lot of Plug In Objects (PIO). I access them from the menubar. I created a menu entry in the present environment.

    Sometimes, when I adjust the menubar, I get the message that a particular PIO is not present in the Plug In Folder. Nevertheless when I check, it is still present and its name is not changed or different. Also when I change or delete PIO's I do that in the PIO editor. I think this behaviour is the cause of the following problem.

    With the above menubar active, when I draw a rectangle (for example); choose "Pattern" in the fill pallet; and want to select a pattern in de listbox, I see some of my own PIO's in the pattern pallet instead of the patterns. This also is true for the pen pattern combobox.

    I was told that the cause of this error was overwritten VectorWorks code or Palm software. However I installed VectorWorks again, I checked for Palm software (but is not present on any of the computers here). I also reinstalled a whole computer (our operating system is Mac OS 9.2.2 Dutch). Also we use a PC here which uses the same PIO's and there the problem does not occur.

    Can you tell me what I have to do to solve this problem? I will appreciate your help very much and I thank you in advance.

    I wish you a very nice day.

    Friendly greetings,

    Sir Dan Fortesque(Chrissy)Email : kristiaan.verberne@skynet.be

    [ 03-06-2002: Message edited by: Sir_Dan_Fortesque ]

  13. Hello,

    Can you help me with the following problem. I made a lot of Plug In Objects (PIO). I access them from the menubar. I created a menu entry in the present environment.

    Sometimes, when I adjust the menubar, I get the message that a particular PIO is not present in the Plug In Folder. Nevertheless when I check, he is still present and its name is not changed or different. Also when I change or delete PIO's I do that in the PIO editor. I think this behaviour is the cause of the following problem.

    With the above menubar active, when I select a pattern fill in the 'Properties' pallet, I see some of my own PIO's in the pattern pallet instead of the patterns. This also is true for the pen pattern combobox.

    I was told that the cause of this error was overwritten Vectorscript code to Palm software. However I installed VectorWorks again, I checked for Palm software (but is not present on any of the computers here). I also reinstalled a whole computer (our operating system is Mac OS 9.2.2 Dutch). Also we use a PC here which uses the same PIO's and there the problem does not occur.

    Can you tell us what we have to do to solve this problem? I will appreciate your help very much and I thank you in advance.

    I wish you a very nice day.

    Friendly greetings,

    Sir Dan Fortesque(Chrissy)Email : kristiaan.verberne@skynet.be

  14. Hello,

    You can browse through all used classes in your document with a VectorScript. It is very easy. Firstly used NumClass to determine the total amount of classes. Thereafter us something like this :

    strName := ClassList(intIndex);

    where strName contains the name stored at intIndex position within the Class tree. You can also get other properties of the classes.

    In the meantime Nemetschek will add it to VectorWorks, maybe this can help. If you need help coding this, tell me and I will help you.

    Friendly greetings,

    StarGateDesselBelgiumEurope

  15. Hello,

    When there are several worksheets in your document, a VectorScript cannot tell how many or cannot browse through the worksheets. Is it possible to add a worksheet collection object so we can ask how many worksheets are in the document or browse (like NextSobj) through them?

    Also a working replacement for DoMenu(1500) (entire recalculation of worksheets) while all worksheets are closed should be very fine.

    Thank you very much.

    With friendly greetings,

    StarGate

  16. Hello,

    We are using on this moment VW 9.0.1. In my experience with the system here, set your memory settings to at least 150 MB for minimum and preferred. Turn Virtual Memory off and also take a good look at your processor cache. Those 3 options play a very important role in the speed you are working with all your programs.

    I hope this will improve your speed because I know it can be very frustrating waiting on your computer.

    Have a nice day.

    Friendly greetings,

    StarGate(Chrissy)

  17. Hello Everyone,

    Because DoMenuTextByName does not work on recalculate your invisible worksheets (it does not work at all with WSrecalculate), I found finally a workaround for this problem.

    You will find the code below this message. I am sure you can adapt it easily to your own situation.

    But I have to be honest, it was Fuge who brought me on this idea. Without his help I would never have found it.

    However Nemetschek should be very serious fixing this problem in future versions of VectorWorks (I am now using 9.0.1) or even better, tell us how we can use this function to work even with international language versions of VectorWorks. I am sure many users are puzzled with this.

    Have a nice day.

    With friendly greetings,

    StarGate

    procedure ReCalc; { Recalculate every worksheet in drawing } const intTotWorksheets=18; { Total (exact) worksheets in document }

    procedure Calc; { This procedure recalculate every worksheet in your drawing. } { No worksheet has to be visible or open to get this work. } { The only important matter is that you specify all your worksheets } { in array strWS. Also make sure that intTotWorksheets contain the correct total worksheets. } { Thanks Dave (Fuge), your solution brought me on this idea. } var hndWS:handle; { Handle to worksheet to be calculated } strWS:ARRAY[1..intTotWorksheets] OF STRING; intIndex:integer; begin { Specifying worksheets in array } { New worksheets can be added at any position in this list } strWS[1] := 'A1. Afwerking'; strWS[2] := 'C1. Chappe en Vloer'; strWS[3] := 'D1. Binnendeuren'; strWS[4] := 'F1. Betonplaat'; strWS[5] := 'F2. Kruipkelder'; strWS[6] := 'F3. Kelder'; strWS[7] := 'G1. Gyproc'; strWS[8] := 'H1. Houten structuur'; strWS[9] := 'L1. Sanitair'; strWS[10] := 'M1. Metselwerken'; strWS[11] := 'P1. Pannen en goten'; strWS[12] := 'T1. Trappen'; strWS[13] := 'Y0. Basisprijzen'; strWS[14] := 'Y1. Forfaits'; strWS[15] := 'Y2. Kermit'; strWS[16] := 'Y3. Co?fficienten'; strWS[17] := 'Y4. Informatie'; strWS[18] := 'Y5. Fozzie'; { Recalculate every specified worksheet } For intIndex := 1 To intTotWorksheets do begin hndWS := GetObject(strWS[intIndex]); RecalculateWS(hndWS); end; end; { End of procedure Calc }

    begin { Start Main Program } Calc; end; { End of script ReCalc }run(ReCalc);

  18. Hello Dave,

    Finally I found the solution for this problem. I reduced the codelines from 78 to 43.

    First I create a constant where I specify the total worksheets that has to be calculated.

    Then I create an array (of type string) with the size equal to the total worksheets.

    I filled all the array indexes with the names of the worksheets.

    Then it is simple, I use a For loop for browsing throught the complete array and with each step a handle to the specified worksheet is connected and the second instruction recalculate the specified worksheet.

    Despite we created a very nice workaround together, it should be Nemetschek who has to solve the final problem. All those lines could be replaced by one instruction "DoMenuTextByName". There is only one problem, this instruction doesn't work. Whatever you tried WSRecalculate to the local language translations, nothing works. Maybe someone of Nemetschek can explain why this is not working.

    I am sure we helped a lot of other users too, who will find this technique very usefull. In the meantime, we have to wait until Nemetschek solves this problem.

    I thank you very much and I wish you a nice day.

    With friendly greetings,

    StarGate(Chrissy)

    FINAL CODE :

    procedure ReCalc; { Recalculate every worksheet in drawing } const intTotWorksheets=18; { Total (exact) worksheets in document }

    procedure Calc; { This procedure recalculate every worksheet in your drawing. } { No worksheet has to be visible or open to get this work. } { The only important matter is that you specify all your worksheets } { in array strWS. Also make sure that intTotWorksheets contain the correct total worksheets. } { Thanks Dave (Fuge), your solution brought me on this idea. } var hndWS:handle; { Handle to worksheet to be calculated } strWS:ARRAY[1..intTotWorksheets] OF STRING; intIndex:integer; begin { Specifying worksheets in array } { New worksheets can be added at any position in this list } strWS[1] := 'A1. Afwerking'; strWS[2] := 'C1. Chappe en Vloer'; strWS[3] := 'D1. Binnendeuren'; strWS[4] := 'F1. Betonplaat'; strWS[5] := 'F2. Kruipkelder'; strWS[6] := 'F3. Kelder'; strWS[7] := 'G1. Gyproc'; strWS[8] := 'H1. Houten structuur'; strWS[9] := 'L1. Sanitair'; strWS[10] := 'M1. Metselwerken'; strWS[11] := 'P1. Pannen en goten'; strWS[12] := 'T1. Trappen'; strWS[13] := 'Y0. Basisprijzen'; strWS[14] := 'Y1. Forfaits'; strWS[15] := 'Y2. Kermit'; strWS[16] := 'Y3. Co?fficienten'; strWS[17] := 'Y4. Informatie'; strWS[18] := 'Y5. Fozzie'; { Recalculate every specified worksheet } For intIndex := 1 To intTotWorksheets do begin hndWS := GetObject(strWS[intIndex]); RecalculateWS(hndWS); end; end; { End of procedure Calc }

    begin { Start Main Program } Calc; end; { End of script ReCalc }run(ReCalc);

  19. Hello Dave,

    As promised in my former post, I give you here the code of my procedure. For every worksheet in the drawing you will find a handle. It is a little stupid.

    On this moment I am thinking to use your procedure specifying the names of the worksheets in constants. However I have to find a way to find out how many constants are present and use one handle to calculate every worksheet in those constants. I do not know if an array can be used as a constant. I will try. In the meantime I put my script code here.

    With friendly greetings,

    StarGate

    Code :

    procedure ReCalc; { Recalculate every worksheet in drawing }

    procedure Calc; { This procedure recalculate every worksheet in your drawing. } { No worksheet has to be visible or open to get this work. } { The only important matter is that you specify all your worksheets } { in your document, otherwise two things can happen; } { 1. in case the forgotten worksheet is open you have the chance } { that it still will be calculated; } { 2. when the forgotten worksheet is not open it will not calculate } { Care has to be taken to that you include all your worksheets } var hndWsA1:handle; hndWsC1:handle; hndWsD1:handle; hndWsF1:handle; hndWsF2:handle; hndWsF3:Handle; hndWsG1:handle; hndWsH1:handle; hndWsL1:handle; hndWsM1:handle; hndWsP1:handle; hndWsT1:handle; hndWsY0:handle; hndWsY1:handle; hndWsY2:handle; hndWsY3:handle; hndWsY4:handle; hndWsY5:handle; begin { Establish link to all your worksheets } hndWsA1 := GetObject('A1. Afwerking'); hndWsC1 := GetObject('C1. Chappe en Vloer'); hndWsD1 := GetObject('D1. Binnendeuren'); hndWsF1 := GetObject('F1. Betonplaat'); hndWsF2 := GetObject('F2. Kruipkelder'); hndWsF3 := GetObject('F3. Kelder'); hndWsG1 := GetObject('G1. Gyproc'); hndWsH1 := GetObject('H1. Houten structuur'); hndWsL1 := GetObject('L1. Sanitair'); hndWsM1 := GetObject('M1. Metselwerken'); hndWsP1 := GetObject('P1. Pannen en goten'); hndWsT1 := GetObject('T1. Trappen'); hndWsY0 := GetObject('Y0. Basisprijzen'); hndWsY1 := GetObject('Y1. Forfaits'); hndWsY2 := GetObject('Y2. Kermit'); hndWsY3 := GetObject('Y3. Co?fficienten'); hndWsY4 := GetObject('Y4. Informatie'); hndWsY5 := GetObject('Y5. Fozzie'); { Recalculate all connected worksheets } RecalculateWS(hndWsA1); RecalculateWS(hndWsC1); RecalculateWS(hndWsD1); RecalculateWS(hndWsF1); RecalculateWS(hndWsF2); RecalculateWS(hndWsF3); RecalculateWS(hndWsG1); RecalculateWS(hndWsH1); RecalculateWS(hndWsL1); RecalculateWS(hndWsM1); RecalculateWS(hndWsP1); RecalculateWS(hndWsT1); RecalculateWS(hndWsY0); RecalculateWS(hndWsY1); RecalculateWS(hndWsY2); RecalculateWS(hndWsY3); RecalculateWS(hndWsY4); RecalculateWS(hndWsY5); end; { End of procedure Calc }

    begin { Start Main Program } Calc;end; { End of script ReCalc }run(ReCalc);

  20. Hello Dave,

    Thank you for your reply and your solution. Indeed it works that way in VectorWorks. However as you said you have to build a worksheet list to automatic calculate every worksheet. The problem to build such a list is that VectorScript has no way of knowing what worksheets are present in your drawing. I have such a procedure which I use.

    At the start of the script I connect a handle variable to every worksheet in the drawing. For every worksheet I have to establish a handle manually. Then I can recalculate all those worksheets without opening them first. I will give you the code later today. But when I add a new worksheet, I also have to add a new handle. When I forget, that worksheet will not be calculated.

    So I like to find out how I can add those new worksheets automatic. Chances are high that it is impossible.

    Your code is very usefull to me because it shows me a different approach from which I was thinking. Maybe when you see the procedure I used, you also see a possible solution.

    In anyway I thank you very much for your help. I appreciate that very much. I wish you a very nice day and many success with VectorScript.

    Friendly greetings,

    StarGate(Chrissy)

  21. Hi Everyone , tongue.gif" border="0

    I need to recalculate all present worksheets with VectorScript. I do know that the command for this operation is DoMenuTextByName. However I tried all combinations but still that command does not work.

    Can you give me the exact syntax for recalculating every worksheet in a document? We use VectorWorks 9.0.1 Dutch edition. According to the reference manual of VectorScript, the language does not matter.

    Thank you very much for your help and I wish you a nice day.

    Friendly greetings,

    StarGate

  22. Hello Everyone,

    Yesterday I posted this problem. In the meantime I found the solution. You will find the code below this text.

    First create a record called recTest. Then create 2 fields called width and height. Then create a PIO or a Vectorscript and past the code below. You are ready to run now.

    The code draws a rectangle and connect record recTest to it. Also it fills the fields with some example values.

    Hope you find some use for it. Have a nice day.

    Friendly greetings,

    StarGate

    procedure Test; var hndLayer:handle; hndObject:handle; hndRecord:handle; LntPosX:longint; LntPosY:longint; BEGIN { Start main program } hndLayer := ActLayer; hndRecord := GetObject('recTest'); GetVCenter(LntPosX,LntPosY); SetRField(hndRecord,'recTest','width','150'); SetRField(hndRecord,'recTest','height','250'); rect(LntPosX-100,LntPosY-100,LntPosX+100,LntPosY+100); hndObject := LnewObj; { This code does the trick } SetRecord(hndObject,'recTest'); END; { End of script Test } run(Test);

  23. Hello,

    Can someone help me with the following problem.

    I have a PIO (Plug In Object) which draws a rectangle on the drawing. The rectangle appears in the drawing AFTER the end of the PIO. This is a problem for me because I have to attach a record on the rectangle during execution of the PIO.

    How can I draw my rectangle during the execution of the PIO?

    I will appreciate your help very much and I wish you a very nice day.

    Friendly greetings,

    StarGate

×
×
  • Create New...