Jump to content

JBenghiat

Member
  • Content Count

    1,108
  • Joined

  • Last visited

Community Reputation

204 Spectacular

About JBenghiat

  • Rank
    1000 Club

Personal Information

  • Homepage
    https://www.benghiatlighting.com
  • Location
    United States

Recent Profile Visitors

3,165 profile views
  1. You may want to try File>Export>Script. This will show you what data gets set via direct function call verses object variables. For most Set... commands there is a corresponding Get... command. Typically you want to look at the function reference first, and only look at object variables when they are not otherwise obtainable with a command. This is a little less obvious with an arc. You can use Get2DPt to get the center (index 1) and a point on the arc (index 2) and calculate the radius. http://developer.vectorworks.net/index.php/VS:Get2DPt
  2. If you’re looking for a rectangular boundary, you can just get the min of left bounds, the max of top bounds, etc. This would be the same as the bounding box of the grouped elements. looking at a boundary that conforms to the shape a bit better, you can compute the convex hull. For your L shape, this would draw a line across the crook of the L — not exactly what you want, but a more efficient shape than a rectangle. You can find comp sci algorithms for this — if you’re willing to use some python, you may even find one off the shelf. The input data set would be the four vertices of every object. Concave hull algorithms exist, however the analysis is a lot more complex and I believe work better when your data is more akin to a point cloud representing a contiguous object.
  3. The simplest thing is to check the class options of your viewport to make sure that some of the units aren’t in a class that is invisible. What version of Vectorworks are you using? There have been some issues with lighting devices drawing, particularly if the symbol on which it is based is 2D only or the 3D component has planar elements. I believe these are resolved by 2019, though. One last thing to check is your graphics card settings. Open the Displays tab of VW preferences and change the graphics option to Best Compatibility, and see if that makes a difference.
  4. Because NURBS curves can intersect at from zero to an infinite number of points, I don’t think VectorScript is equipped to automate this.
  5. If you're just looking at solid and none, you can use http://developer.vectorworks.net/index.php/VS:SetFPat with 1 and 0 respectively
  6. You can probably sleuth out the decimal indicator by parsing the result of a Num2Str conversion. In the case of a worksheet formula however, this is a proprietary syntax and I’m fairly sure it doesn’t get localized.
  7. Try this: http://developer.vectorworks.net/index.php/VS:GetHole
  8. Dialog Builder will only create the layout for your dialog. Most of your questions pertain to the dialog handler, which you still have to hand code. (Dialog Builder lets you set presentation options that let you fill lists with placeholder values, but I don’t think that’s what you’re asking) The exception is #2. If you want additional strings, you can add them to the vwr string tables in the dialog’s settings. You can also access any vwr file via script. Search the forum for dialog handlers, and look at http://developer.vectorworks.net/index.php/VS:RunLayoutDialog for examples, then loop back with more questions
  9. The difficulty here is the way that Vectorworks does summary calculations for database rows. Any formula evaluate per row, and then VW will summarize all the combined rows to calculate the summary value. You can see this if you take away the summation on the type column. =COUNT essentially puts a "1" in each cell, and then when you summarize, you get all those 1's added together. So "=COUNT + 1" basically puts a "2" in every cell. Rounding will first round the value for each row, and then add them together. Multiplying will give you the correct result because multiplication is associative: (a * b) + (a * b) = (a + a) * b If you want to do this with a formula, I think the only option is to use DataBaseByScript. You would write a script that takes the unit type as an input, uses the Count() vs function to return the unit count, multiply it by your spares factor, and then round the total. You would then divide the value by the count, and return it to the worksheet. Essentially, you calculate your desired quantity outside of the worksheet context using vs, and return a fraction of the total count, such that when all those fractions add together the worksheet returns the correct value.
  10. The Truss Insertion tool is actually a custom tool designed specifically to insert truss in an intelligent way. You would have to code or commission the creation of a tool to do something similar. @Pat Stanford's suggestion of using 3D loci is a good starting place, though. If you insert a locus point (2D or 3D) while editing a symbol definition, you can designate it a Master Snap in the OIP. This will give it precedence over all other snaps, allowing you to easily align one framing element to another at the correct connection point.
  11. It looks like the last version to include the Curtain Object was 2014. I don't believe that there was a conversion routine as part of Softgoods, but @C. Andrew Dunning may know. Otherwise, you have three options: - Find the Curtain Object.vso file in your old Vectorworks application plug-ins folder and copy it to your 2019 user plug-ins folder and restart. The plug-in may work, or it may generate errors. It all depends on if some of the underlying code is deprecated. - Convert to group. You lose the ability to change attributes via the OIP, but if your doing something simple, like changing length, that saves you from rebuilding. - Remake the objects with the new Softgoods tool
  12. Can you provide a screen shot of the top of the OIP for a SG object in 2019? If you are able to insert a SG in 2019, I suspect that your old objects were not created with the built-in tool
  13. This may be one of the rare instance where re-installing will help. Vectorworks appears not to be loading the Softgoods plug-in.
  14. This is what you see when a plug-in based object is not installed. Dood you possibly use Landru Design’s third party Soft Goods tool to create the 2016 objects?
  15. The Summary matches instrument type and wattage for counting . The model name determines the text that displays in the Summary.

 

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...