Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Fuge

  1. If have posted the first of two plug-ins needed to dump window records into a worksheet andthen put the the information back on my ftp site. Macftp://ftp.nimlokdesigners.com/windowplug-in.sitWindowsftp://ftp.nimlokdesigners.com/windowplug-in.zip Let me know if this does what you intended.Be sure to check out the notes. Dave
  2. Try using "Custom Selection..." or "Custom Visibility" to search for and select or show the objects that meet the criteria of empty "ID number" fields. You can do the same for finding objects that have door ID's but are not door objects. "Custom Selection" and "Custom Visiblity" willwrite the the vectorscript for you based uponthe criteria you choose. You could then modify the find objects with door ID attached script and have it remove that record by adding Delrecord(); command. HTHFuge
  3. If you have 20 windows that are the sameplaced through out your document and you later need to go back and add additionalinformation that is the same for all thosewindows. You can select all the windows at once and enter the additional informationone time across every window . If the windows are all a little differentyou could create a script to dump record infofor each window into a worksheet row. Enterthe additional info for each and have a second script update each placed window. You could also create a script that would cyclethrough each window one at a time and give you a dialog box to set the fields with. HTHDave
  4. I tried the same thing and it worked on objectscreated before the script was first ran. I don't know how your setting the "Position" field, but if you were to type Destination with an accidental space before or after it your vectorscript won't select that object. Just a thought...Good Luck Fuge
  5. You can write a vectorscript to count the number of worksheets in a document (Worksheets are object type 18.)and recalculate all of them. With Vectorscript, you would have to open each worksheet, recalulate it and then close it. Fuge
  6. No way to do it. Sorry Fuge
  7. There is no way to trigger a script simplyby clicking on a tool icon. Your only choice is to put the scripton a script palette or create a customsheets command. Fuge
  8. I'm pretty sure that dimensions are hard coded so that the dimension class is constant. The only way around that would be write yourown dimensioning tool from scratch as a PIO.It wouldn't be too difficult to do. HTHDave
  9. HI, You can call a PIO from within another scriptusing the CreateCustomObject (); The goofy thing is if the object your callinghas never been used in your documentthen your going to get the pref dialogfor the called object the first time you use it. Dave
  10. Here's a snippet from something I use to look up part information. Create a text file namedpartinfo.txt and place it in the Plug-ins folderwith the following in that file.----below here----L90 5 0.5---above here-----It's critical that the text file contains the fields in the exact right format. - IMPORTANTPartName<tab> partprice <tab>partweight<cr>You can add as many parts lines to this file as needed. HTHFuge Procedure lookupinfo;CONST ktype = 'L90'; kFileName = 'Plug-ins\partinfo.txt';VAR Price,wt: REAL; P : REAL; PartFound : BOOLEAN; Procedure LookUpPart; { * Looks up part * } VAR PartName : STRING; PartPrice ,Partweight : REAL; BEGIN Open ( kFileName ); REPEAT; Readln ( PartName , PartPrice , Partweight );IF PartName = ktype THEN BEGIN P:= PartPrice; wt := Partweight; PartFound := TRUE; END; UNTIL ( PartFound = TRUE ) OR ( EOF ( kFileName ) = TRUE ); Close( kFileName );END; BEGIN {* Main * } LookUpPart;AlrtDialog( Concat('Part#',ktype,', Part Price = $',P, ', Weight =',Num2str ( 2, wt ) ) ); END;Run (lookupinfo);
  11. I took a peak at that example.What your missing is the placedsymbol's name must be "Deciduous Tree"or "Conifer Tree" or the field information is not set. You can remove the IF (GetSymName(h) =""from the script and then it will work on any placed symbol. You can also remove the Gettype(H) function and the record will be attached and set to anything selected. HTH Fuge [ 01-12-2002: Message edited by: Fuge ]
  12. Try something like this. You'llhave to add worksheet name constand handle for each worksheet in yourfile or more advanced create a worksheetlist and have the procedure repeat foreach worksheet. HTHDave PROCEDURE WS; CONST WksName = 'worksheet name here';VAR WksH : HANDLE;BEGIN WksH := Getobject ( WksName ); ShowWS(WksH,True); RecalculateWS(WksH);END;RUN ( WS );
  13. see "Using VectorScript Include Files" http://www.nemetschek.net/support/custom/vscript/docs.html
  14. Fuge

    z value

    If you are trying to get the height of a 3d symbol try using Get3DInfo(); If you are trying to get how far a symbol is offset from zero then you need to use Get3DInfo(); and Get3DCntr(); and do a subtraction to find the bottom of the 3d symbol. HTH
  15. Juan, You now need to use "Menu Chucks" { To Group } Domenutextbyname('Group Chunk',1); { To Ungroup } Domenutextbyname('Group Chunk',2); See Appendix H - DoMenuTextByName Constants http://www.nemetschek.net/support/vscript/vs_function_ref/VSFunctionReference.html HTH [This message has been edited by Fuge (edited 08-14-2001).]
  16. Sam, I gave this a try and it worked for me? It assumes the Fixture Data record format already exists. ------------------------------ Procedure Test; Var TypeString,WattageString:STRING; SymbolHandle:HANDLE; begin TypeString := StrDialog('Fixture Default Type',''); WattageString := StrDialog('Fixture Default Wattage',''); DoMenuTextByName('Create Symbol',0); SymbolHandle := ActSymDef; SetRecord(SymbolHandle, 'Fixture Data'); SetRField(SymbolHandle, 'Fixture Data','Type',TypeString); SetRField(SymbolHandle, 'Fixture Data','Wattage',WattageString); end; run(Test);
  17. I wish I had an easy answer for this one. I am not a programmer, so I can tell you it can be learned. The best advise I can give is to look at what examples there are with VW 8.5. VectorScript is an off shoot of pascal so a book on pascal is a good start because there are no books to my knowlegde on Vectorscript. Your best bet is trial and error and and posting to the VS list server. Just know if you buy VectorWorks 9 there are NO examples of scripts that are unlocked, so things are not easy to learn from.
  18. I have not used these two commands as of late, but are you forcing a screen redraw in your script to make sure your seeing what's actually happening? Just a thought.
  19. Fuge


    Funny you ask that. I have used Vectorscript for years, and as far as this board is concerned, I just found it by accident looking at what's new on the NNA site. NNA didn't bother telling anyone this board existed. I have been subscribed to the VS list server for years and it wasn't even announced there of all places. My impression is this board isn't monitored very well by NNA. I'm curious to see if my post gets looked at.
  • Create New...