Jump to content

Pat Stanford

Moderator
  • Content Count

    6,876
  • Joined

  • Last visited

Everything posted by Pat Stanford

  1. And you also get the added complexity of all those modules and the "benefit" of nesting of code being determined by the number of space or tab characters. IMNSHO, I you only want to do things inside of Vectorworks, Vectorscript, especially if you have Pascal experience, is the better choice. Lots more code samples available to learn from. If you want to make something that is beyond the capabilities of Vectorworks, then you need to consider Python or the SDK. You can go a long way with any one of the options. Written by someone who had to try and debug Fortran 77 what was white space delimited and who can no understand why ANYONE would create a language where characters you can't see matter in how the code runs. ;-)
  2. @MullinRJ is correct as usual. The caveat I would make is that it is not an ELSE IF. It is an ELSE that uses and IF as the if condition. Subtle difference but important. There are languages which specifically have ELSEIF syntax. Vectorscript (and Pascal on which it is based) don't. Nested IFs can be very useful, but also very complicated to debug. Be careful with your parentheses, Begin/End statements, and indentation. I always use double indentation, one set for the nesting of a Begin/End pair and then the code inside the begin/end is indented again. That makes it easier for me to read the code.
  3. Instead of trying to get 6 to work at once, get one working to get the format then expand. The basic format is IF(some condition) THEN Do Something Else Do Different Thing; I often include Begin and End inside an If function even if I only have a single line of code in the thing I want to do so that if I need to add more code later the structure is already there. IF(Some Condition) Then Begin Do Something; End ELSE Being Do a Different Thing; End; Note that there is no semicolon after the end before the ELSE. If you are using a single line you must not have a semicolon before the ELSE either. IF COUNT((R IN ['Wohnung']) & ('Wohnung'.'Whg-Nr'=NR) & ('Wohnung'.'Zimmertyp'='Wohnen') | ('Wohnung'.'Zimmertyp'='Zimmer') | (('Wohnung'.'Zimmertyp'='Arbeitszimmer'))=1) THEN EINZW := EINZW+1; So this looks to be fine syntax as long as you don't need an Else. Are you sure that your conditions are being met? Try simplifying it and see if you can get EINZW to increment. Maybe just count the objects that have a Zimmertyp='Zimmer' The source for general syntax for Vectorscript is the Vectorscript Language Guide. It can be downloaded from this page of the Developer web site. https://developer.vectorworks.net/index.php/VectorScript
  4. Someone pointed out to me that the functionality pointed out by @markdd is called Select Coincident Objects. You can either do it Mark's way by holding down the "J" key while you select the top object or you can right click on the objects and choose Select Coincident Objects from the Object Context menu. Thanks Steve.
  5. What objects switch to rotated plan view when you double click them?
  6. Glad to help. Especially when a new version is just released it is easy to blame bugs. But there are enough beta testers that something like this would be (in my NSHO) unlikely to have never been reported before. That makes we want to take the "deep dive" and make sure you have checked everything else before claiming a bug. There most certainly are bugs that get through, but if there was really a font import problem I think someone would likely of have found it before release.
  7. Or you can use the Custom Selection menu command in combination with the following scripts. This first one is the most important as it restores the visibility of everything that you hide using the second script; Show(All); The second one here hides (makes invisible) all selected objects. Hide(SEL=TRUE); Create New Scripts from the Resource Manager with the text above. Then either select the objects you want to hide, or select the objects you want to show and then use Invert Selection from the Edit menu and run the second script. When you are done, run the first script and you will restore the visibility of everything you hid. Class and Layer visibilities will still apply.
  8. Opacity only applies to 2D objects. In 3D you would have to apply a transparent texture to the objects to get them to display like this. If you texture by Class, you should be able to override the texture in a viewport to get the image you want.
  9. Or change the stacking order of the objects. Select the one you can and then use Modify:Send:Send to Back. That object will now be at the back of the list and you should be able to select the other one which will not be on "top".
  10. Unlikely, but have you checked Font Mapping for the file?
  11. Thank you Josh. I read the question backwards, thinking that tismacfan2 was getting multiple lines of text when only one was desired, rather than the intended meaning of the multiple lines of text are overwriting ("on top of") each other.
  12. Can you post the file. It sounds like none of us has any idea of what we are talking about.
  13. The CHR(13) are Carriage Returns (CR) and move the text down to the next line. If you want it all on one line, take out the CRs.
  14. Tell us what you are really trying to do rather than asking cryptic questions. ;-)
  15. Did you use Rotated Plan View? Or did you actually select everything and manually rotate it? Oh, you said above that you don't know. If you go to the Design Layer(s) is everything square as you want it to be in the viewport? Or is everything rotated? You probably want to check the help for information on Rotated Plan View as it is specifically designed for this kind of situation.
  16. More information about what is not working please. Your screen show does not show the Styles.
  17. Why do you NEED to upgrade Big Sur when it comes out? Yes, VW2020 will most likely be made compatible with Big Sur, but Apple often throws things in at the last minute so 3rd party developers can not guarantee or even test for compatibility until Apple released the new OS. If you can wait a couple of weeks or months, you will have a much better chance of having full compatibility between MacOS and VW. I believe the service pack to provide full compatibility between VW2020 and Catalina took about 6 weeks to be released. I don't speak for VW. I am a volunteer moderator, long time user and VW fan. HTH
  18. If you make a viewport while your Design Layers are in a Rotated Plan View, the viewport will be at that angle. If you want/need to change it you can change the Rotation of the viewport in the OIP. But you will then have to edit he annotations and adjust the drawing labels (and anything else you want horizontal/vertical) back to square. It may be
  19. Sorry I misread your question. No you can't edit the dimension to change the size of the window. Since the Window is a Plugin Object you have to edit its size view the Object Info Palette or the Settings dialog box. You can use the Edit Design Layer option of the viewport to make it easy to get to the Window so you can select and edit it. Be careful with the Add Reference Crop Object. It will put a bright green poly the size of your Crop object on the design layer. Make sure you delete it when you are done or it will show in your other viewports as well.
  20. Yes. If you have both ends of the dimension associated, you can double click into the Dimension text string and edit the number. The "window" will move in the design layer (and therefore the viewport) to the revised dimension.
  21. Resetting to Top/Plan view should unrotated if you are in Rotated Plan View. Either Select Top/Plan from the View:Standard View menu (or use the keyboard shortcut). If you have a numeric keypad, the zero key will set the view to Top/Plan and rest Rotated Plan.
  22. With the Set Working Plane tool selected, look in the Mode Bar and make sure you have the second option Planar Face Mode selected.
  23. Vectorworks Prefereces: Interactive Pane: Click the Interactive Appearance Settings... button. Take a look at the setting for General - Background - 3D Views. Is that set to the Fuchsia color? If so, change it to something more to your liking.
  24. Yes, you can easily create viewports showing different layers. Select the Viewport. Click the Layers button in the OIP. Set the visibility of layers for that Viewport. Or even better, take a look at the VW Title Block Border object. It is designed to be placed on the Sheet Layer with the viewports but give you the ability to edit the project information across all the TBBs in the file or the Sheet information for just that single TBB.
  25. There are Wall Styles that are Bounded to Stories and Wall Styles that are unbounded. Probably best to redraw your walls using the unbounded Wall Styles rather than try to fix what you have.

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...