Jump to content

Pat Stanford

Moderator
  • Posts

    12,662
  • Joined

  • Last visited

Everything posted by Pat Stanford

  1. The following script will update all objects in the drawing. If this is too slow in your drawing, it can be modified to only reset solids. This should to the same as your manually editing and exiting the solids. Procedure ResetAll; {March 1, 2018} {© 2018 Patrick Stanford pat@coviana.com} {Licensed under the GNU Lesser General Public License} {Resets All Objects in the drawing.} Var H1:Handle; N1:Integer; B1:Boolean; Function PTSReset(H2:Handle):Boolean; Begin ResetObject(H2); N1:=N1+1; Message(N1); End; Begin N1:=0; ForEachObjectInList(PTSReset,0,2,FObject); RedrawAll; End; Run(ResetAll);
  2. If it has not been fixed yet, the fix will be available soonish. ;-)
  3. As a mentor of mine once told me, "Running a project is easy. People are a bitch."
  4. Please explain more what you mean. You can reference PDFs into a drawing. Is that what you mean by attaching? Is the display just missing? Or is the PDF not still referenced into the drawing?
  5. Rather that joining the walls, you could create a pillar by drawing the correctly sized rectangle and choosing the Pillar menu item from the AEC menu. You can then join all of the walls separately to the pillar.
  6. GetCurrentLocalization(Language,subLanguage);
  7. Change the resolution of your monitor down to something small like 1080 x 1920. This should force all the windows to redraw in the current screen area. Once you are able to access the windows, set the resolution back up to what you are happy with.
  8. You could us the Door and make a symbol. Then use the use the Use Symbol Geometry option in the General pane of the Window settings to bring it in as a Window. With the On Schedule checked you would be able to have a "door" that shows up on the Window schedule as you desire.
  9. Using the object Name has an additional benefit. The Name is required by VW to be unique and VW enforces that. If you duplicate a named object, the Name of the duplicate will be cleared. I would love to have that capability in a hidden, scriptable field as well.
  10. How thick are your lines and what is the resolution of your printer? It almost sounds like a very old problem where a line location fell between printer pixels and only got partially printed. Or where you tried to print a line that was finer than the resolution of the printer. Sometimes it would print too thick (one pixel wide) and other times it would not print at all (zero pixels) depending on exactly where on the page it was placed. Can you try and print directly instead of the PDF and see if the same lines react the same way? Just a single page if you need to tile multiple pages due to your printer size. What is your PDF export resolution set to?
  11. The biggest reason would be someone who was not using components. Or someone who is using components, but doesn't want to take the time to set up all the class textures right now but needs a quick render.
  12. Check the settings for those columns. If the Sum Values check box is checked, uncheck it. The values should not be summed unless that box is checked.
  13. I just put in a presentation abstract to talk about this at the Design Summit in November. Basically if you duplicate the folder structure in the Libraries:Defaults in the Application Folder in either the Workgroup or User folder, you can control the Default Content that will show. To add additional content add a VW file containing the Resources you want to see with a different file name. To replace the existing content, put a file with the same name as what exists in the Application folder and remove the items you don't want.
  14. Select all and Fit to Objects. Make sure in Page Setup that you have the Drawing Boarder set to display. Start to zoom out until you can see the selected objects and also the page boarder.
  15. In your database header for each column, there is a little disclosure triangle (downward pointing triangle).Click it and you will get the following dialog box. If you click the Summarize Items check box, it will compress all of the items with the same value into a single row. If you click the Sum Values button, it will then add up all of the values for each of the compressed items. As @Markvl says, add a column with a formula of =count, figure our what column you want to summarize on and you should be set to go. Ask again if you need more help.
  16. You can't set overrides in multiple viewports at the same time, but from the Visibilities tab of the Organization palette, you can change the layers and classes visible in multiple viewports at once. That combined with the Viewports settings of the Eyedropper tool to move the overrides betweens viewports should give you a reasonable workflow.
  17. I am not sure you can use RunScript to set a formula into the cell. The RunScript IS the formula. Do all the calculations in the script and then use WSScript_SetResXXX functions to return the proper value. I suppose RunScript could be used to set a formula in a DIFFERENT cell, but I don't think it will work to change the formula in the cell the script is in. I don't think there is any way to extend the functions available in the worksheet. If RunScript is not enough you need to submit an Enhancement Request and hope the VW gets around to adding it.
  18. More details on what you want please. Are you looking for just a count of the total number of doors? Or are you looking to have doors of the same "type" summarized in the schedule with a count for the number of each type?
  19. Just to expand on what @Hippocode says, you can use the GetCustomObjectInfo to get a handle to the current object. From there you can use GetSymLoc3D to get the insertion point of the PIO. From there just do the math to calculate the necessary offset to get the second parts in the absolute position you want. Be careful with this, as you may end up with very big objects and have a problem with them selecting when you try to select other objects that happen to overlap the very large bounding box.
  20. You could write a script (or set of scripts) that would save and restore different sets of layer/class visibilities and overrides in a viewport. But I think the overhead of making that system work reliably (the saved sets would need to me updated every time you added/deleted a layer or class) would be worse than just having the extra sheet layers and manually manipulating them. If you give your sheet layers appropriate prefixes, they will sort into the different groups you are looking for.
  21. The warning dialog when you first run a worksheet script has a Don't Ask Again option. Could those users have clicked No about running scripts and had the Don't Ask option set? The only way to reset it is to go to VW Preferences, Session Tab and click the Reset Saved Setting button. Make sure the "Always do the selected action choices" check box is liked and click OK. This will reset ALL of the Always do options, so they will see some extra dialogs for a while, but it should not take very long to get them reset to the way they like their system.
  22. At least in 2016 when worksheet scripts were introduced, they were available in Fundamentals. I would assume that they are still available in 2018, but I have not tested. You could test using a simple script using the DisableModules VS command to temporarily change the version you have to Fundamentals. If you test, please report back on your results.
  23. If you need accurate scale be careful. That option will scale things down so that everything in the printable area fits within the page margins. For scale where borders don't matter, it is often better to just force to one page and allow the little bits that run onto pages 2-4 to be ignored.
  24. The pseudo code as you describe it is correct. It just becomes a couple of While Not loops or Repeat Until loops to compare the passed parameters to the read data. If you are going to to the trouble of writing it, I would also pass the name of the worksheet to lookup in and possible the range (row and column) to compare. Also note that as of 2018 SP3, there is no was to get a reference to a database subrow, so this is only possible in actual spreadsheet rows, not in a database.
  25. It is probably as Art says, that the margins are forcing part of the drawing onto the edge of additional pages. You could also "fix' this by just changing the settings in the left hand side of Page Setup to 1 page horizontal x 1 page vertical. You might lose a little bit of the drawing the would extend onto the other pages.
×
×
  • Create New...