Jump to content

Pat Stanford

Moderator
  • Posts

    12,705
  • Joined

  • Last visited

Everything posted by Pat Stanford

  1. http://developer.vectorworks.net/index.php?title=SDK:Dialog_Builder It looks like dialog builder has now been built into VW. Run a script containing EnableDialogBuilder; and restart VW and it will add the dialog builder commands to the Tools/Third-Party menu.
  2. Art is correct. On the Mac, the em-dash is created using Option-Dash. the en-dash, just the dash or minus sign with no modifier.
  3. Still not seeing it. I created all of the classes in your list by copy/paste into new classes. In the Navigation Palette, Organization Dialog Box, and the Viewport Class Properties dialog box, the EL always are separated from the E. BUT, if I change the en-dash in E-Outlets and E-Switches to an em-dash, then I get what you are seeing.
  4. I don't think so. Too many people complain about extra clicks required. If you had to click to uncheck one type of resource, click to check another and then click OK there would be wailing and gnashing of teeth. I have another program that does something similar, but using it is completely painful. And unfortunately it is for a function I need regularly. The only thing I can possibly think of would be to expand the resource manager and displays the types of resources at all times with check boxes. Probably an All and None option. And probably modifier key option to select single that would deselect anything that is already selected.
  5. I can't duplicate your Els sorting into the middle of the Es. Can you post a small file with those classes so we can take a look? Many years ago (perhaps Minicad 7 or VW8), the idea of hierarchical classes was added. At that time the design decision was that to create a hierarchical class you would use a dash to separate the different parts. Not the best design decision, but a reasonable one 15 years ago. Not so reasonable today. BUT, this is so ingrained in so many drawings around the world, that it will be difficult to change the behavior and use of the dash. Work around: only the use of the en-dash (short) - caused the hierarchical display. For most uses you can use the em-dash (long) – as a separator and you will not get the hierarchical display. Now, I know what comes next "But my customer has specified the names and I have to use them." OK, then do as Art suggests and turn off Hierarchical. Or use em-dashes and I will write you a script that you can use to rename all the classes to en-dashes for export and then rename back to em-dashes for in-house use. I agree there should be a better way, but it has to be a way that does not screw all the people who using the existing functionality.
  6. Do you not get the drop down showing the different resource types? I think it only shows types that are present in the file or in the resource locations chosen by the buttons on the left. V is the default VW libraries in the Application folder. 3 people is the workgroup folder. Single person is the User folder. Star is Favorites files. Cloud is Subscription libraries. Between these options and the chose to choose just the resource type you want you get pretty good control. It would be nice to be able to choose multiple resource types to display at once, but I can't think of what kind of user interface that would make that useable.
  7. The CallTool command is used in many of the sample scripts. It is used to activate a specific tool. As Raymond says, it is available in the Vectorworks Appendix. But those might not be the best scripts to be learning from. I am not certain, but I have probably only used CallTool in a couple of the 1000+ scripts I have written over the years. Unless you really want to write extremely simple scripts that do things like set layers, classes and attributes and then activate a given tool, you might be better off telling us what kinds of things you want to do and we can point you to more appropriate samples.
  8. I think you need to move this to the Wish List or Bug Submit. Probably Wish List as it was probably by design. Since all objects in a group must be on the same layer, if you change the layer of the object it falls out of the group, which is probably why it was changed. Two possible work arounds: 1. Instead of using a group, use a Custom Visibility. This is available from the Legacy tools in the Workspace Editor. Just make sure you create a Show All script so you can turn everything back on. Select the object and set the Custom Visibility to Selected Only. All the other objects will disappear. Change the layers on the objects you need to adjust and then run the Show All script to bring back the other objects. 2. It should be possible to write a script that will allow you to change the layer of objects regardless of their being in a group or not. The hardest part of this is having to make a custom dialog box to give the list of layers. If you think you would use this enough to ask a stranger to spend 5-10 hours to help you, then we can talk about exactly what you want it to do.
  9. Conditional formatting in the traditional Excel version is nor available in VW Worksheets. I thought I had worked out a way to put colors in a single cell of a row based on a value, but I can't find that example right now.In my most recent attempt, it appears that you can not use an Image function inside an IF function in a worksheet. There does not appear to be a way to format a single subrow of a database differently than all of the other rows. I do have a way using a customer WSScript procedure to set a cell in a database row to a color based on some value directly accessible from the object. In my test, I used a record format attached to the object. If the first record attached to the object was named "A" it would put in an image of a rectangle in the drawing named 'Red'. If the first record was named "B" it would return and image of an object in the drawing named 'Blue'. If this would be of any interest to you, I can try to polish it up. Tell me more about what type of conditional formatting you are trying to do and why and I will see what I can do to help.
  10. Yes, it appears the IF function is wonky, but you can make it work. One column =VALUE(F4)=0 One column =IF(H4, '0', G4) Then hide the columns you don't want. Your edited original file attached. worksheet_database_row_calc-PTS.vwx
  11. You mean like under Renderworks Styles, Render Style White Model?
  12. Vectorworks Preferences, Session Tab, second check box down, Log time in program. The log file is named Vectorworks Log and is stored in the your home folder:Library:Application Support:Vectorworks:2018
  13. Take a look at the following thread. It should help with what you want. Does not let you edit the description, but at least it will let you see it.
  14. the if is being very strange here. I enter the formula and it simplifies to something very different. As a work around break it into two columns and hide one. Set one column with a formula of =Value(F4)=0 (I am going to say this is in Column G. Set the formula in Column F to =IF(G4,0,D4/Value(F4)) Set the Column width of G to zero and you should be good to go.
  15. Unfortunately I think this is a limitation with the tool. I believe a bug/enhancement request has been filed for this, but another one will never hurt.
  16. Claes, Does TouchCAD offer the features you are saying VW is missing?
  17. No it does not work on Light objects. Apparently, lights are not PIOs. There are no data records attached to lights. Even though from how they interact with the OIP they look like it, they are not PIOs. What do you want to do with the lights? I might still be able to help.
  18. Yes, that is where you want to put your new custom files. Look in the same relative path in the Applications:Vectorworks:Libraries:Defaults for the factory loaded Default Content
  19. David, You are correct. The User Fields in the PIOs are defined as Text type fields, not Numbers. Change your formula to =D4/Value(F4) and you should get what you need. The only thing to be careful of there is that only numbers or things that can be converted to numbers (i.e. 12" or 17mm) are stored in the User Field or the Value function will not be able to properly convert it to a number.
  20. Yes, Marionette Objects can be included in symbols. In fact, the recommended way to make a Marionette reusable between files is to make it into a symbol with the "convert to group" option selected. This will have it be stored as a symbol (Resource), but inserted into the drawing as an individual object. But you can leave it as part of a symbol also. But it will have to be the same Marionette for all instances of the symbol. You can't edit the parameters for just some of the instances.
  21. Are you successfully quitting VW? Or are you crashing on quit? The preference file is only written when you successfully quit. A crash prevent the file from being written. Art's idea of forcing VW to recreate the preferences is good.
  22. Take a look at this movie and see if that helps. You sometimes need to jiggle the cursor around a little to get it in the right position to get the cursor you need to move instead of resize. VW_Selection_Box.mp4
  23. Take a look in your VW Folder:Libraries:Defaults:Railing Fence. There should be several files there that have the Default Content for the profiles. I don't know exactly which file, so you will need to open up the files and figure it out. If you put a Vectorworks file using the same relative path in your User folder (or Workgroup Folder if you use workgroups), you should be able to put whatever profiles you want into the file and have them show up. You probably need to Restart VW after creating the new files in the User Folder to make them visible. It is recommended that you put your custom stuff in the User or Workgroup folder so that you don't have to recreate the information if you have to reinstall VW or if those files are updated in a future service pack. If you don't need the metric or imperial versions, you can either delete the appropriate files, or (my favorite) is to zip/compress the file and then delete it. That makes it easy to get back if you need it (as the compressed version is still in the right location) but not showing you unneeded default content.
  24. Classes are supposed to be set based on the classes visible when the worksheet is recalculated. It is currently broken in VW2018. Works properly in VW2017. If you are really on VW2016, it should work. Try changing the class visibilities and recalculating the worksheet.
  25. Alternatively, and I don't know if this can be done in Marionette, would be to convert the object to Plane objects instead of Screen Plane objects. There is a Set Plane node in Marionette, but I don't have time to play with it right now. There are also a number of ObjectVariables that control screen plane / layer plane, but again I don't know if those are directly accessible through Marionette and don't have time to check right now.
×
×
  • Create New...