Jump to content

Pat Stanford

Moderator
  • Posts

    12,530
  • Joined

  • Last visited

Everything posted by Pat Stanford

  1. Clip cube settings are included in Saved Views. Not quite the same as multiple clip cubes on a single design layer, but useful.
  2. By SUMming a worksheet database (select a row in the database and then drag the SUM tile to the proper column header), you "collapse" all of the database items with the same value into a single row. If you then change that row, all of the items that have been SUMmmed together will change. Thinking about this you probably don't even need to use a PIO, but could use a symbol with Link Text to Record. Try this in a new blank file. Create a new record called MyRecord. Give it two fields Call them Tag and Note. Create a symbol consisting of just a loci. Create a block of text that will be the placeholder for your note. Select the symbol and the text. Choose Link Text to Record and then select your Record and the Note field. Put five instances of the symbol on the drawing. Select three of them and set the TAG field to A. Select the other two and set the TAG field to B. Create a worksheet with a database row. Use a criteria or Record = MyRecord. Columns should be set to MyRecord.TAG and MyRecord.Note. You should end up with 5 rows in the database. Select one of those rows and drag the SUM tile to the TAG column header. You should now have two rows, one showing a TAG of A and one showing a TAG of B. Select the NOTE cell in either row and enter some text. The text should appear on the drawing for all of the symbols with that TAG. See the manual on Link Text to Record for more information.
  3. You could do this fairly easily with a PIO with two fields and a worksheet. One field (the note) is displayed on the drawing as the body of the PIO. The second field is used for sorting/summing purposes in the worksheet. You could use any "tag" you wanted in this field. The Worksheet is set up to SUM on the Tag field. This will give you one row for each of the PIOs with that tag. When you edit the Note field in the worksheet all of the PIOS with that tag will update. If you need to change a note from one type to another, just use the OIP to change the TAG of the note to the one you need. Way less than 2 months of programming to make this work ;-)
  4. What would be great is the ability to show/hide objects on the design layer through the viewport and the changes only applied to that particular viewport. This ability would surely cut down on the number of classes required right? Doesn't work. Will never work. Don't even ask. Purist in a class. Sorry.
  5. Cross posting from the Classes... thread. Make two vectorscripts each with one simple line. The first is: Show(All); When you run this, all objects that have had their individual visibility set to hidden will reappear. The second is: Hide(SEL=True); This one will set the visibility state of all the selected objects to hidden. If you really want to get fancy you could make into menu commands and then add them to your workspace and given the keyboard shortcuts. I find this useful to get objects out of the way, especially when working in 3d. This is a global setting, so there is no way to do this for a single viewport. Additional comment. If you need to change the visibility in different viewports, you really need to think about how you are using classes and layers. Especially the use of sub-classes.
  6. Make two vectorscripts each with one simple line. The first is: Show(All); When you run this, all objects that have had their individual visibility set to hidden will reappear. The second is: Hide(SEL=True); This one will set the visibility state of all the selected objects to hidden. If you really want to get fancy you could make into menu commands and then add them to your workspace and given the keyboard shortcuts. I find this useful to get objects out of the way, especially when working in 3d. This is a global setting, so there is no way to do this for a single viewport.
  7. All of the MD tools have been roled into Designer. I believe some of them were also rolled into Architect and Spotlight. Market for MD was vanishingly small, something like 4000 copies a year. Impossible to justify the costs of a separate version.
  8. Dragging the Sort Acending (rising bar graph) or Sort Descending (decreasing bar graph) "tiles" to the header row is how to sort. You can actually have any row in the database area selected, it does not have to be the header row. The SUM tiles work similarly. If you put a single SUM tile it will condense all of the items with the same value (say door tag number), but the summerized row will then total the numeric values such as the door widths. Just drag another SUM tile to those columns to undo the totaling.
  9. I don't think Str2Num handles strings with unit marks. It will only handle pure numeric strings. If the data is consistent enough you could use the string manipulation functions to remove the unit marks. Check the reference at developer.vectorworks.net for Str2Num for more information.
  10. Make sure you check out the difference between the Read and StdRead procedures. StdRead was added to make it easier to bring in the entire line of data to parse.
  11. It only looks like Excel, not acts like Excel. The other "similar" function to Excel that I miss/use is Fill Down/Paste. With Fill Down in Excel you can copy data and/or formulas from the first selected cell to all the ones below it. (There are also Fill Up, Fill Right, Fill Left, but they don't have default keyboard shortcuts). You can get a similar function in Worksheets by Copying the data and then selecting the range and pasting. VW will fill every selected cell with the data where Excel would give you a warning that copy and paste area are different sizes. If you Copy more than one cell, it will paste the entire group (repeating as necessary) into the selected area.
  12. In the quote above you are missing a right Parenthesis. That might be part of the problem. Also I have found that Vectorscript and Worksheet functions seem to like an extra level a parens. Try: =IF((('Lighting Device'.'Position')=''), 'BLANK', 'NOT BLANK')
  13. VW Walls are always the same thickness and rectangular. If you want something that is like a wall but not rectangular use your polygon and convert it to a pillar. (AEC Menu, Pillar). You can then use the Wall Join tool to connect your other walls to the Pillar.
  14. Look at the GetPickObjectInfo function. This should let you get a handle to the symbol rather than the wall.
  15. Closed does mean with all the lines connected. But it is possible to draw a poly and not quite get the start point and end point to be exactly coincident. If that happens, even though it looks closed to your eye, the computer does not realize it is closed. The closed button fixes this by drawing an extra line between the first and last vertices.
  16. If you get the value from the cell, you will get exactly that, the value that is in the cell. If you are trying to use this value (that you know is cm) someplace where VW is expecting a dimension in another unit (like a PIO that was written in inches), you will get strange results when you paste the value in. Four possible options: 1. Make sure that where you are using the dimension is set to use dimensions rather than just straight numbers. This only works if it is all in your script. 2. Manually do the conversion in your script to the units the PIO is expecting. 3. Convert the value to a string and append the 'cm' to the end prior to using the value. 4. If you can live with the cm showing on every row in the worksheet just edit the format of the cells to include cm in the trailer and then use GetWSCellString.
  17. What about adding a record to the symbols that should be numbered and using Link Text to Record. That way each symbol instance can be numbered separately even if they are contained in a master symbol.
  18. There is an option in the DXF/DWG import dialog settings to import as all 2D, all 3D or as drawn. Just pick to 2D option and reimport.
  19. Check the Class Visibility of the viewports. Normally viewports are set to not show classes that are added to the file after the viewport is created. You can adjust this in either the OIP from the viewport or from the Organization palette.
  20. Rectangles, Rounded Rects, Ovals, Worksheets, Bitmaps are controlled by their bounding boxes. Check out the GetBBox and SetBBox commands to change the size of your Rounded Rects.
  21. I just tried the script (copied and pasted from above) in VW2013 SP2 and it worked fine. Can you try it in a new blank file with a single wall and see what happens?
  22. Mike, You skipped 5 versions. Many of the changes you are complaining about occurred gradually over that period. Many things are different in 2013 than in VW12.5. It wil take time and effort to learn the new ways, but I think most of us would be loath to go back to VW12.5 after getting used to VW2013. For your texture adjustment check out the Attribute Mapping tool from the Basic tool set.
  23. Check the Snap Grid constraint in the Snaps Palette. If it is not on turn it on. Also check that you have not "Suspended" snapping. This is the tilde key in the standard workspace.
  24. Yes, I did misunderstand. If it won't let you directly add the script to an existing palette, let it make a new one then use the Resource Browser to copy/move the script to the palette you want. Or I think you can even use Copy/Paste to move scripts between palettes. And the first visibility script I always make is Show All.
  25. Just do multiple sorts. Start with the least important (most sub criteria) and work out to the most important. So sort on Street Number, then Street, then City, then State to get a list of addresses sorted by state.
×
×
  • Create New...