Jump to content

Pat Stanford

Moderator
  • Posts

    12,617
  • Joined

  • Last visited

Everything posted by Pat Stanford

  1. I was just about to post the same as Andy. You only get lines where there are corner points.
  2. Change your Smoothing Angle (Angolo stondamento). 0,10 is a very low value. I would try 10 and then 70 and see if either of those works better for you.
  3. I believe the only way to get these back is to reset ALL of the Always Do options in Vectorworks Preferences:Session tab:Reset Saved Setting button. :-(
  4. I just named an object Siding in the OIP without a problem. Try your scripts on a new blank file? Could you have a problem with your template file that has a corrupt Siding object? How about creating a worksheet database with a criteria of All Objects & In Symbol & In PIO. Use a column label of =N to display the name. If that does not show an object named Siding perhaps place an instance of every symbol in the drawing and try again as the worksheet can only see objects that are in the drawing, not resources.
  5. Please double check that VW is actually running o the RTX video card and not on an internal graphics on the motherboard. If it is running on the RTX card, check and make sure you have the most current drivers. HTH
  6. @MullinRJI think @Paolo is probably right. I think it is possible that something is used in the NameList of the file but attached to an object that will get a handle. Like a component of a wall. I think you will have to write a routine to manually parse the Name list. NameNum will get you the number of items in the NameList. NameList(X) will return the string value of the name. What I don't know is how fast the NameList commands are. If they are slow it might be better to read the entire NameList into an array of strings and then compare each potential import value to the array. You could sort the array to possibly make it faster. If they are fast you could just step through the NameList each time before importing. But you still have the three cases to consider what you are doing. (Psudocode) NameFound:=False; For X := 1 to NameNum do Begin If NameList(X) = NameToTest then NameFound:=True; End; If NameFound then Begin Check type of object with the name End Else Create Folder {Since name does not exist} EndIf;
  7. Try this script it sets the Class of the crop objects and the Pen and Opacity settings to By Class. Procedure Crop_to_By_Class; {September 3, 2020} {©2020 Patrick Stanford pat@coviana.com} {Licensed under the GNU Lesser General Public License} {No Warranty Expressed of Implied. Use at your own risk.} Procedure Execute(H2:Handle); Begin SetClass(H2,'PTS Crop Objects'); SetLSByClass(H2); SetLWByClass(H2); SetPenColorByClass(H2); SetOpacityByClassN(H2, True, True); End; Begin ForEachObject(Execute,((INGROUP & INVIEWPORT & ((T=RECT)|(T=POLY)) & (LW=100) & (PF=1265)))); End; Run(Crop_to_By_Class);
  8. 1. Locate your user folder (Finder:Go menu. Hold down the Option key and select Library. Navigate to Application Support, Vectorworks.) Drag the 2020 folder to your desktop. Restart VW. If it starts there is a problem in your user folder. 2. Create a new User on the Mac (System Preferences:Users & Groups) Switch to the new user account and see if you can open VW. If this works then there is a problem with your User account on the Mac. 3. Make sure you don't have any anti-virus running on the Mac and restart and reinstall VW. HTH
  9. Use GetObject('Name") It it returns anything other than a Nil handle then an object with that name exists.
  10. I don't think the "record is present" criteria is necessary to edit data in records from a worksheet. Any column in a worksheet that has the form of =Record.Field is editable and if you edit the data in the worksheet the data in the record will change. If you have a bunch of objects you want to change the data in, you can edit one of them and COPY that data. Then select the range of cells you want to change and PASTE. This is different than Excel (or at least how Excel used to be). But worksheets can only access objects that are inserted in the drawing. There is no (easy/semi-automatic) way to edit the records attached to symbol definitions. @DaviesTheChair am I misreading your post above?
  11. @michaelk Do you want to jump in here? I think a PIO to insert truss with all of the issues of connections, etc. is more that you want to jump into for a first Vectorscript project. Perhaps a better project would be a script that would step through all the truss on the drawing and add a Data Tag that displays the length. I recommend that you look at the data tag and see if you get get it to display what you want. If you can, then we can probably help you with a script to place the tags.
  12. You probably need to contact your local distributor to determine the problem with you license.
  13. Unless this is time critical right now, you might want to put this on the back burner for a few weeks.
  14. I like the weight and feel of the Logitech G602, but I admit that I very rarely use any of the extra buttons. The scroll wheel is click which I like.
  15. Alternatively, if the IDs overlap and you want them mixed is to use a bunch of IF statements. Something like: IF(ObjectTypeName='Window', window.width, door.width)' For this to work well you need to make sure the criteria for the report is only returning doors and windows. @Taproot's suggestion of having the doors listed at the end as a separate database is cleaner if it will work for you.
  16. There was a thread on this posted a couple of days ago. The best option if you need both versions appears to be to create two user accounts on your machine and install a different serial number in each users.
  17. If you are a Service Select member, you can log on and get your serial numbers there from the My Licenses menu item. If you are not a Service Select member and you truly do not have the serial number you will need to contact VW or your local distributor directly. The Version (the first part of the serial number) and customer ID (the last part of the serial number) can be seen when you go to About Vectorworks. That should be enough for VW to help you with the rest.
  18. Another way around this is to build the entire criteria string as a single variable. They you can use vs.ForEachObject ( ExplodeSymbols , "Your_Criteria_String " ).
  19. Are you able to get the quantity of skiing boards in the entire drawing? Are they isolated in a class? Do they have a record attached? What makes then unique? Once you can get all of them, then you only need to make sure your Space has a name and add a Location is "name of your space" Ask again if you need more help. Or post a small sample file so we can look at what you have.
  20. I am not really a Marionette or Python specialist. I am just an old time Vectorscript programmer. I am going to wait and see if any of the Marionette gurus will chime in.
  21. Data Tags are in the Dims/Notes palette. In the US version the icon is a ruler and pencil. Basically a Data Tag is a symbol where the text blocks in the symbol can be automagically replaced with either manually entered or calculated text. In addition, if you use data from a Record (either a Plugin Object parameter record or a custom record), the data tag will only be able to be placed for objects that have that record. So if you have different IFC records, you could end up with data tags that will only work on one type of wall. I recommend playing a little with the stock data tags in a new blank file before you jump in to generate your own. The two basic tricks are: 1. While you are editing a Data Tag Layout, select a text block and at the bottom of the Object Info Palette there is a check box for Use Dynamic Text and a button to Define Text Field. Those are your entry point to being able to define the dynamic text. 2. Click the Define Text Field button and you get a Define Tag Field dialog box. The box at the top center shows the "current" tag definition, but if you have edited the definition it is not applied and remembered until you press the Add to Definition button near the bottom. If you don't you will lose all of your changes. There are several threads about Data Tags. In at least one fo them I wrote a more specific set of instructions for data tags. Ask again if you need more help.
  22. In the real world it is always the person who does not follow the herd mentality who is wrong. ;-) VW, Never heard of it. You must be wrong! It can't be me.
  23. The basic camera is only effected by the Perspective settings. If you need more control you will have to set up a Renderworks camera.
  24. Scripts in VW are basically linear. The script runs and creates or changes objects, bu the drawing code is blocked until script execution completes. Even though you edited. the object (to turn off the label), the only version of the object that you can access is the unedited version that was available prior to the script running. Reset Object, Redraw, and Redraw All can sometimes rest things enough to be able to be able to do what you need to in the middle of a script, but you can't depend on being able to change an object and get the new values until the next run of the script after the drawing routines have run. We have all chased this before.I think the time this hit e hardest was wanting to duplicate a PIO and change the values. If I remember correctly this was not possible and the work around was to create a new custom object and set all the parameters. Maybe someday VW will be multi-threaded enough that the "model" can update in parallel with script execution.
  25. If you use the Create Section Viewport tool, you will always get a Section Line with the marker on the end. You can select the Section Marker and change the Configuration in the OIP from Section to Elevation and you will get the marker in the middle. If you use the Section-Elevation Marker Tool, you can click on the settings (button with wrench and pencil in the mode bar) and set the Configuration to elevation before you draw the Marker and get what you want.
×
×
  • Create New...