Jump to content

The Hamma

Member
  • Posts

    336
  • Joined

  • Last visited

Everything posted by The Hamma

  1. Here’s a file with a bunch of AWI Millwork profiles DETAILS_AWI-Millwork-Profiles.vwx
  2. It appears to work fine in 2018. 2018 version is attached. Brick Arch.vso Classes.sta
  3. Here is a Brick Arch Tool that I made. Parameters are as follows. Script will import Class1 and Class2 from the Class.sta file that needs to be located in your user or workgroup folder at "...\Libraries\Defaults\Standards" These classes have the textures assigned. The script creates a symbol for each arch with different parameters. BrickArch.mp4 Brick Arch.vwx Brick Arch.vso Classes.sta
  4. It did have a command that was new and did not work but it was not necessary for the fence to work. It also appears that 2017 is plagued with the same document units bug that affects 2023. This file works in 2017 but it set to use "Feet" or "Feet and Inches". If you change the document units the fence will create the wrong number of pickets. If you use another Document Unit let me know and I can convert one of the "picket and post" files above to 2017. Pickets Fence V2017 V2.zip
  5. Until the bug is corrected I have attached the unit coverted files in case anyone else uses other unit standards. Pickets and Posts Yards cm.vwx Pickets and Posts Yards km.vwx Pickets and Posts Yards Meters.vwx Pickets and Posts Yards Microns.vwx Pickets and Posts Miles.vwx Pickets and Posts MM.vwx Pickets and Posts Inch.vwx
  6. @Tom W. It appears to be a bug with Vectorworks. But for the meantime you can replace the Picket and Post file with the attached MM converted one attached. Pickets and Posts MM.vwx
  7. It appears that the records in the symbols are not converting the units correctly when the drawing is converted to mm. I have to multiply every unit by 304.8 which is feet to mm factor. Let me see what I can do.
  8. Updated 07-17-2023: One of the rails was not using the class attributes. This error has been corrected. If you downloaded it prior please download it again. Only "Picket Fence.vso" has changed. Attached is a Picket Fence Tool that I created for Vectorworks. Read the readme files for placing the files in the correct location. Most variables are controled by the picket record which is attached to the picket symbol and the post record that is attached to the post. important: it only reads the record that is attached to the symbol as it appears in the resource manager. It does not read the record of symbol as it appears in the drawing. You can edit those records from the Resource Manger or by going into the symbol to edit it. Note that you must not have anything selected to edit the record when inside the symbol. Picket appearance is controlled by class settings L-FENC-PCKT Post appearance is controlled by class settings L-FENC-POST Plug-in has no warranty use at your own risk. David Hamer 2023-07-12 When adding new picket and post styles I recommend duplicating a similar symbol. Edge pickets are centered on the back edge of the picket where centered pickets are centered on the center of the picket. The post symbol is declared by the picket record. Post symbols can be modified to extend below the ground plane if needed to be. Picket record Post Record Wood picket fences Metal Picket fences Chain Link Fences Pickets Fence V2023 V2.zip
  9. @C Beard glad it’s working and glad to be of service!
  10. Thanks for the help. Final tool here.
  11. Got it, Thanks. It would have been easier to find if it were Num2StrValid, LOL!
  12. I have a Number(Dimension) record attached to a symbol. When I use GetRField to get the value of that dimension it returns a STRING. The value is ( 4" ). When I use Str2Num that value becomes 0. Is there a way to convert STRING Dimensions into REAL numbers? If I use General Number format it works fine but then I have to keep all my units in inches rather than feet and inches. Also I would like to let it use Document Units so I don't think looking for the ' or " unit mark would be helpful.
  13. @C Beard I have a Synology Diskstation and I found that it not wise to link Vectorworks to the Workgroup folder on a shared synology drive. There are some issues with adding resources to the files when they are being linked this way. The best way to do this is to use Synology Drive and create a synced copy of the workgroup folder on your local computer. You can also put uncategorized files in the Synced copy of the workgroup {Favorites} folder. I store everything in our workgroup folder. I also store my keynote libraries and some other settings in the workgroup folder but Vectorworks only looks in the user folder for these items so I create a sybmolic link to those folders to my user folder. Below are the command lines that create them. I have my User directory located in my "Documents" folder rather than my %appdata% folder. The " The {C:\Users\David Hamer\Documents\VWUser} need to be edited to the path of the local user's VW User directory and the {D:\VWWorkgroup\} need to be edited to the Synology Drive synced directory. These commands need to be executed at the CMD prompt with Adminstrator rights. rmdir "C:\Users\David Hamer\Documents\VWUser\2023\Libraries\Defaults\Notes" mklink /D "C:\Users\David Hamer\Documents\VWUser\2023\Libraries\Defaults\Notes" "D:\VWWorkgroup\2023\Libraries\Defaults\Notes" mkdir "C:\Users\David Hamer\Documents\VWUser\2023\Settings\Select Similar" mklink /D "C:\Users\David Hamer\Documents\VWUser\2023\Settings\Select Similar\Saved Settings" "D:\VWWorkgroup\2023\Settings\Select Similar\Saved Settings" del "C:\Users\David Hamer\Documents\VWUser\2023\Settings\Eyedropper Tool" mklink /D "C:\Users\David Hamer\Documents\VWUser\2023\Settings\Eyedropper Tool" "D:\VWWorkgroup\2023\Settings\Eyedropper Tool" Copy "D:\VWWorkgroup\2023\Plug-ins\Common\Data\PubliemNames.xml" "C:\Users\David Hamer\Documents\VWUser\2023\Plug-ins\Common\Data\PubliemNames.xml" mklink /d "C:\Users\David Hamer\Documents\VWUser\2023\Settings\DWG_DXF\Export" "D:\VWWorkgroup\2023\Settings\DWG_DXF\Export" Also looking at your path it seems very long. Windows has a file name and path limit of ~256 characters. So if the file name and path exceed this limit Windows cannot write to that file.
  14. I added the "Pickets" folder to my library. I have a resource library file that needs to be added to that directory for my script to pull symbols from. For experimental purposes I changed it to 'Defaults:Railing Fence' and it worked. Strange!
  15. Sorry, yes it is a Plug-in Object and the parameters are defined. It's very odd. Never had that happen before I was working with the three samples attached to this thread.
  16. When I edit line 106 resList:=BuildResourceList(nResType,13,'Defaults:Railing Fence:Pickets',numItems); AlrtDialog(concat(numItems)); The numItems = 43 but only one symbol shows up in the picker. Not sure what you are doing with the parents but is it restricting the view to only the root of the current drawing? Also get this error almost everytime I edit the script. I have to restart Vectorworks everytime I get the error.
  17. Jesse: Thanks, I do want to see the current drawing as well as the symbols at 'Defaults:Railing Fence:Pickets'. I am only trying to filter out the rest. I am able to build the resource list. Would there be another way to just pick a symbol from the resource list? Currently in my scripts OIP I am just typing in the name of the symbol I would like to use. I'm trying to add a symbol picker.
  18. Trying to filter the resource browser but I am having trouble. result:=vsoButtonGetResource('SymbolName', kSymbol, 13, '') Doesn't filter anything. but: result:=vsoButtonGetResource('SymbolName', kSymbol, 13, 'Defaults:Railing Fence:Pickets') is filtering everthing but open drawings and favorites. How can I get this to filter everthing but symbols in the current drawing and symbols in my Workgroup Folder at 'Defaults:Railing Fence:Pickets'?
  19. Is there a simple example of the code to create the dialog to pick a symbol from a script?
  20. I am creating a 2D path object and I would like to duplicate an extrude along the path (Like the "Duplicate along path" command). How is this accomplished in Vectorscript?
×
×
  • Create New...