Jump to content

Pat Stanford

Moderator
  • Posts

    8,176
  • Joined

  • Last visited

Everything posted by Pat Stanford

  1. This sounds like a job for Subdivision Modeling. I haven't used it enough to explain it, but there are a number of videos on YouTube. Search Vectorworks Subdivision and you should find what you need.
  2. I only gave us VS because I have not take then time to learn Python (and probably won't unless I have to as "me hates white space delimiting"). But if it works for you more power to you. Glad to help.
  3. Design Layers are effectively multiple Model Spaces and you can use as many as you want with different Z values to allow easier model creation. To simulate a workflow closer to what you want, turn on the Design Layer(s) you want for your first Model Space and create a Saved View. Repeat for the other "model spaces". Now to switch between, just click on the saved view you want and it will change all of the Layer (and class) visibilities) to match what you saved. Or if you only need a single design layer at a time, just set the layer visibilities of all layers to Invisible. The Active Layer is always visible, so when you make a layer active that "model space" will become active.
  4. I don't know how to exclude the backup files from Syncing on One Drive, but I would guess there is a way. Alternatively, just set (in VW Preferences, Autosave pane) a custom location for all of the backup files to be stored and put that location on the local hard drive somewhere that is not part of One Drive.
  5. Just an angle is not enough information. You need to have some other piece of information to calculate where the center of rotation should be. What about putting a Control Point that the user can move to define the center of rotation?
  6. I don't think there is a way to report the (possibly multiple) LOCs that an object is within. If you can use architectural Spaces, there is a function for GetSpaceNameForObj that might work for what you want. It might also be possible to create a Worksheet script that would return what you want, but that will depend at least partially on how many different LOCs you will have and if you are willing to have some other identifier (probably a single class or record or field) that identifies all of the LOC objects.
  7. ZCoordinate is returning the Z for every 3DLocus so you are actually doing the criteria search N+1 times. Also, it is probably faster to do the delete once rather than in the loop. The following will deselect everything in the drawing and then select jus the 3DLoci that are below the MyZ constant value. I will leave the conversion from Vectorscript to Python and adding the delete step to you. Something like vs.deleteobjs Procedure Test; Const MyZ=-2; Procedure Execute(Hd1:Handle); Var X1,Y1,Z1:Real; Begin GetLocus3D(Hd1,X1,Y1,Z1); If Z1 < MyZ then SetSelect(Hd1); End; Begin DSelectAll; ForEachObject(Execute, ((T=LOCUS3D))); End; Run(Test);
  8. Can you post or DM me the file to take a look at. I can't make that happen on my test file.
  9. Viewport or Sheet Layers? View ports do not have a page size. their size is based on the scale of the viewport and the crop area. Sheet Layers have page sizes. You can go to the Organization dialog box, select all the Sheet Layer tab, select all the Sheet Layers you want to change and click the Edit button. From the Edit Sheet Layers dialog box, click the Page Setup... button to get the Page Setup dialog box. Set that to what you need and click OK to exit all three dialog boxes and you should have what you need.
  10. It could be in presences, but then it would not be part of a given print set. I think the idea is to let the user set the options for each print set individually. And then when you recall a print set it will remember all of the settings. Not certain I can explain WHY someone might want different greys on different sheets or different print sets, but I am sure there are people who do.
  11. In the Publish dialog box there is a button labeled Options... next to the publish file format. Click that and you get the same dialog box as you show above excel the button is OK instead of Export. From there you can set the Grey level for the published files.
  12. No there is no way to alternate colors in a database. Every subrow will have the same colors/patterns as the header row.
  13. If you copied items from the shared file into the one that it is happening on, it is likely a corrupted file. I recommend that you send both files to VW Tech Support and ask them to take a look.
  14. Is that a database or a worksheet? Assuming it is a worksheet, Command Click to select every other row, Format:Cells:Patterns and set it to Solid and the color you want.
  15. Database subrows are special. There is no way outside of that specific row to grab the data that is in the subrow. If you put your formula in column B of the database header row (B2, not B2.1, 2.2, etc). then you should get the value for each subrow displayed. Ask again if you need more help.
  16. In my opinion, (and I have been a Mac guy since 1985), iCloud is really a personal service where DropBox, Box, etc. are intended to be group/company services. DropBox automatically does versioning (kind of like Time Machine) of everything that is stored. Dropbox also allows you to select folders to not automatically sync but rather be "Cloud Only" and have to be downloaded if you need to open/work on them. I have both open every day and I use Dropbox much more frequently. The other benefit of DropBox is that you can sync it to your VW Cloud Services account so you don't have to upload jobs, just set them to run.
  17. If it is just a worksheet then yes. You can use the Worksheet Format menu:Cells:Pattern tab. If it is for a set of database subrows, then no. All of the subrows take their setting from whatever you set the Database Header row to.
  18. What you are doing sounds correct. Do you have the Use at Creation button (upper left of the Class edit window from the Organization Palette) checked for the class(es)? Take a close look at how I have the class setup and make sure yours are set that way also. Actually it looks like you can't just set the class of the Device. You need to Edit the Device and set the class of the rectangle inside the device. I thought there was a popup dialog box that asked if you wanted to apply the class change to objects inside containers, but maybe that does not impact Plug-in Objects (or at least not Devices).
  19. I agree with Art V the best way (most robust and least likely to break later) would be to have a record/field (either one of the fields that are part of the space or a custom record/field attached to the space) that would indicate which spaces are Living areas. You should then be able to use a formula like (not test and done from memory): =Area('KKRecord'.'LiveArea'='True') to get the summed area. There is no way to pick just selected subrows out of a database. VW thinks of subrows as dynamic. Someone could change the sort order, or add or delete an item, so that the next time the worksheet recalculates, the data could be in different subrows. So rather than try to figure out which new subrow matches with with old one, they just protect you from yourself (and themself from you) by not allowing subrows to be directly accessed. Ask again if you need more help.
  20. Show us the criteria you are using. In the Criteria dialog box there is a check box for Show Objects in Symbol. You will definitely need to check that. You will probably also need to assign those dimensions to a special class. There is not easy way to get a single database row to display information about a symbol and about the items inside that symbol in a single database row. It would be possible to write a worksheet script that will report the information you want.
  21. I think Rotated Plan View coupled with saved views is probably your best bet if you are georeferenced.
  22. Sorry, I don't know enough about Spaces to know. Based on a 3 minute look, it certainly appears that all of the spaces will use the same numbering range. Could you put the different floors in different files and then reference them into a single file? Perhaps that would allow you to number by floor?
  23. Take a look in the VW Help for Worksheet Functions. That will show you the basics that are available. If you hit a wall and the basic functions will not give you what you need, it is possible to script custom worksheet functions, but that is a much bigger project.
  24. I need a better description of what the problem is. The Marionette is complicated enough that I don't understand what you are trying to do and what the script is not doing that you want it to do.
  25. For a relatively high level explanation of Vectorscript, see this thread in the Resource Share - Vectorscript forum. Resource Share is mostly information carried forward from the older version of the forum, but there are a lot of good scripts there. I try to comment most of the scripts I post to make them understandable and as a learning tool. @Jesse Cogswell@michaelk and many others are all too willing to help with the learning process. My personal opinion is that Marionette is the best tool to make a parameterized object in VW if you don't have scripting experience. and Vector(Python)script is best if you want to do data manipulation on existing objects. Marionette takes away all of the complexity of getting and using data entered in the OIP that ends up being a lot of the script in most Vectorscript Parameterized objects. @Arielusfor yoru object above if you are always making a rectangle, you really only need three points. Bottom Left, Top Right, and the center point. I would probably start with a really simple version that is a fixed size rectangle and only work on the code to make the internal polygon. Once I got that working I would then go back and add the code to allow the change in the rectangle size. Ask again when you need more help.
×
×
  • Create New...