Jump to content

Rick Francken

Member
  • Posts

    68
  • Joined

  • Last visited

Everything posted by Rick Francken

  1. That code worked fine for me as a script. I did not try it as a plugin tool script. What happens if you comment out the "DelObject(hd[2])" statement?
  2. I had the same problem. I had to call Tamara and have her email me the link to the download file. Which operating system and web browser are you running on? I had this problem when 11.5.0 was released also. I started wondering if perhaps Internet Explorer and Windows Firewall are blocking some piece of communication with the Vectorworks server, but have been unable to discover which setting that might be. -Rick
  3. Bill, I just noticed a comment in one of the source code files in the VW SDK. It says that the Image control does not generate events. So it looks like that's by design. Unfortunately not what you wanted to hear... -Rick
  4. Yes I know rsAvailable is a BOOLEAN. What is its value? True or False?
  5. Bill, What is the value of rsAvailable right after you call SetVSResourceFile?
  6. You are welcome. Glad I was able to help.
  7. Luiso, you have to implement a callback procedure for driving the dialog. Then, when you call RunLayoutDialog, pass the callback procedure for the second argument. Your callback has to have the following syntax... PROCEDURE Drive_MyDialog(VAR item:LONGINT; data:LONGINT); begin {code goes here} end; Then, instead of calling RunLayoutDialog like this: result := RunLayoutDialog(id,NIL); call it like this: result := RunLayoutDialog(id,Drive_MyDialog); You should find the information under "Vectorscript Guide...User Interface...Creating a Custom Dialog...Handling Events" in the VW Help. The procedure shown on that page is how the dialog callback procedure is implemented. In the "SetupDialogC" case, you would set the initial state and value of each control. Using your example above, the skeleton of your case statement might look like this: case item of SetupDialogC: Begin {set up your controls here} End; { user selected OK button } 1: BEGIN {...} END; { user selected Cancel button } 2: BEGIN {...} END; {user selected pulldown menu} 5: begin {...} end; {user selected "Link object is locked" checkbox} 7: begin {...} end; {user selected "Name Link" checkbox} 8: begin {...} end; End; {case} Good luck, -Rick Francken
  8. luiso, In the line below, change "NULL" to NIL. result := RunLayoutDialog(id,NULL); -Rick Francken
  9. Larry, Try this: In the Vectorscript Plug-in Editor, create a new Tool Plug-in named "Multiple Line Draw", open the Vectorscript Editor, and copy the following code into it... procedure DrawMultipleLines; begin CallTool(-204); DoMenuTextByName('Convert To Lines', 0); end; Run(DrawMultipleLines); Then add this Tool to one of your palettes with the Workspace Editor. The code above simply calls the Polyline tool, and when you are done creating the polyline segments, it converts them to lines. Cheers, -Rick Francken
  10. Bill, You are right. I wasn't thinking in the context of a plug-in object, but in a command or script. Changing views definitely would not be safe. One thing you might try is go through the steps manually to create the Extrude. Create 2 new documents, in each one create the Extrude using a different view setting, then export both documents as Vectorscript. Now compare the 2 Vectorscript files to see what differences show up, and to see how the generated code differs from your plug-in code. Good luck, -Rick Francken
  11. Bill, This may be a crude hack, but if you are depending on the result based on "Top/Plan" view, you could call the DoMenuTextByName function before you call CreateExtrudeAlongPath, like this: DoMenuTextByName('Standard Views',1); Maybe take it a step further by saving your current view first ad restoring it after you create the Extrusion. Cheers, -Rick Francken
  12. Do you want to reference the X and Y coordinates of the currently selected object? Or one specific object? Elaborate a bit more on what you want it to do.
  13. the problem: im using to parameters that are multiplied: e.g i want to draw a grid using the parameter PNCOLUMN and PNROW (number of columns , number of rows) PNCOLUMN = 10; PNROW = 1000; (now i draw 10000 polygons) if i change PNCOLUMN = 100; PNROW = 100; the object has also 10 000 polygons but if i change PNCOLUMN first vectorworks updates the object with 100 000 polygons, an my old computer gives me a coffee-break. - even if i don?t need them ?? ---> i dont?t want vectorworks to update my object. i want a botton in the obj info palette, a menu-command or something like this called maybe update_vectorscript_object(); Hi Tom, You could create a Command or Tool plug-in that updates the polygon grid. This new plug-in's script would: 1. Get the handle of the polygon grid object 2. Get the values of PNCOLUMN and PNROW 3. Prompt the user for new Row and Column values 4. Update the polygon grid object's parameter record with the new values 5. Update the object Regards, -Rick Francken
  14. Hi Eddie, You could speak to me. I develop custom tools and scripts in Vectorworks (and other CAD apps), have been developing software with Delphi (Object Pascal) for several years, and have some CAD experience in the playground industry. Could I contact you privately by email? Regards, -Rick Francken
  15. Ummmm, isn't this a Windows 2000 issue? The fact that double-clicking a file on the local hard drive does launch Vectorworks and opens the file points to something that has to do with Windows 2000 and the way it manages network security.
  16. Viper x, I read a few of the SP2 postings. Most of the problems seemed to be resulting from the drivers for the Aladdin hardlock or video card driver. That's just to be expected. My previous employer used dongles for their software, and it was a nightmare when Windows XP came out, for the same reason. And I remember that drivers were also a problem when XP SP1 was released. Windows treats drivers a lot more strictly than regular program modules. Since I don't have a fancy video card and my Vectorworks license does not require a hardware dongle, I have not been exposed to the driver problems. Aside from those driver issues, most of the problems I observed while doing tech support were because the person who was updating to SP2 or installing a major application was also downloading stuff, surfing the WEB, defragging the hard drive, running virus scans, playing music, and clicking frantically on the Installer window buttons when nothing appeared to be happening. If you don't have the hardlock or fancy video card, you probably will not have any problems. But here's what I did as a safeguard: I made sure that "System Restore" was turned on. You can find that setting by going into the Control Panel, open the "System" applet, and going to the "System Restore" tab. I created a restore point before running the Windows Update for SP2. You can get there by going to "Help and Support" in your Start menu and look in the "Pick a Task" section. Now you can update to SP2, and if you have any problems after you install Vectorworks, run System Restore and restore your computer to what it was before you updated. Good luck, -Rick Francken
  17. Assuming you mean Windows XP SP2, what problems are you refering to? I'm running VW on WinXP SP2 and have had no problems, except for the inside radius dimension function. Should you update to SP2? That's up to you. You could continue to work just fine on SP1. The update is big, even across a DSL connection. I've never been a fan of installing an OS as an update. You're usually better off starting with a clean install of the operating system, followed by a clean install of each application. That said, I upgraded Windows to SP2 in August, and it did not break any applications. The only thing that really had to be fixed was my wireless network. If you want to play it safe, back up your Vectorworks drawings, then uninstall Vectorworks, then update your operating system. When your system is updated, then do a clean install of Vectorworks, and you should be good to go. Good luck, -Rick Francken
×
×
  • Create New...