Jump to content

stevenmorgan94

Member
  • Content Count

    36
  • Joined

  • Last visited

Community Reputation

10 Good

About stevenmorgan94

  • Rank
    Greenhorn

Personal Information

  • Location
    United States

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hey Pat, 1. Do the 12mm symbols already exist or do you need to create them? All symbols already exist. 2. Are the symbol names all completely consistent? ie. does the 12mm part always occur in the same location (number of character or number of spaces from the beginning of the name)? Naming conventions are the same across all pixel pitches. Video Tile 9mm 2x1 Video Tile 12mm 2x1 Video Tile 6mm 2x1, etc 3. Are you always going to go from the 9mm to the 12mm? Or are there times you would want to go from 12 to 9? That makes it more complicated as you will need to do more work figuring our how to munge the string as the lengths will change. It will change, my plan was to do a PullDownMenu with all of the options that store it to a String. The clunky idea I had was to substring out the original symbol name ([1]Video [2]Tile [3]9mm [4]2x1) and swap the [3] string for the new pixel pitch. Then Concat them all back together. 4. Would you be willing to consider renaming all of the 9mm symbols to 09mm so that the changing part of the string is always the same length? That would not be a problem. Clearly very new to scripting so if changing the entire approach would be a better option and you'd have a direction to point me in I can do some digging. Maybe storing all sets of options to different arrays and swapping between those? array06[Video Tile 6mm 2x1, Video Tile 6mm 2x2] array09[Video Tile 9mm 2x1, Video Tile 9mm 2x2] array12[Video Tile 12mm 2x1, Video Tile 12mm 2x2] swap(array06[1], array09[1]) ? Thanks so much.
  2. Yes Batch Rename works great, I just need to replicate it via script as part of a larger project (plugin) I'm working on. Edit: Actually I lied, I think Batch Rename just renames the symbols in the Resource Browser. I need it to actually replace the symbols and their attached records.
  3. Been digging around but haven't found the best way to accomplish this, wondering if anybody has an idea. Basic goal: Find a replace style symbol swap, but only swapping part of the symbol name. i.e: OriginalSymbol = Video Tile 9mm 2x3 NewSymbol = Video Tile 12mm 2x3 However the "2x3" could be any range of variables, I just need to swap the "mm" type (which are all symbols in the resource browser). My original thought was to SubString each symbol and then Concat them back together but am having trouble with the exact syntax. Working off the script below. Thanks! PROCEDURE ReplaceSymbols; { 03 Jun 2017 - Raymond J Mullin. } CONST NewSymName = '9mm'; VAR NewSymDefH :Handle; function SwapSym(H :Handle) :Boolean; { swap symbol instance H with NewSymDefH } Begin if (GetTypeN(H) = 15) then SetHDef(H, NewSymDefH); { swap Symbol Definitions } End; BEGIN NewSymDefH := GetObject(NewSymName); { Handle to new symbol name } if (NewSymDefH <> nil) then ForEachObjectInLayer(SwapSym, 2, 0, 4) { Selected, Shallow, Editable Layers } else AlrtDialog(concat('Symbol "', NewSymName, '" does not exist. Check spelling.')); END; Run(ReplaceSymbols);
  4. Using Data Tags. Formula would be: #Light Position Obj#.#TotalHungWeight#
  5. Anybody had the attached issue when committing & releasing? I am unable to commit or release any layers I've edited. "Operating could not be completed because of the Priject File in the local Dropbox folder is not up to date". I've tried restarting and re-syncing dropbox. As well as creating new working files and committing them with no luck.
  6. Brilliant, thanks. Would there be anyway to select a Saved Preset Unit Setting? I don't see that anywhere in the VS Docs. If not this is plenty to get the job done. Thanks!
  7. @michaelk digging up an old one here... I don't see that attachment anywhere. Any chance somebody has a units switcher script?
  8. Ah, that sorta actually makes sense. Thanks as always Pat!
  9. For some reason simple math isn't working in my worksheets when referencing database values. If I try to manually add cells together it works fine. Example attached, issue is on the "Sub-Total" column (F3). WorksheetMath.vwx
  10. Good work so far, worksheets will change your life. You can reference other cells with =A2 or =Value(A2) "Grouping fields" would be called "Summarize Items". There isn't a great way to change a name. You could do a replace string, but I don't think that's a good approach. Typically what I do on fields that I don't like the name of is copy them all over to a "User Field" record and change them there. So copy over "Stock169' 'Dress Kit" to User Field 1 and change them all to something nicer "9'x 16' Truss Screen with Dress Kit". I always have to do that with lighting fixture modes since VWX pulls in the GDTF files with the stupid .lit extension. So I'll change "m1_48ch.lit" to "Mode 1 (48CH)".
  11. Bumping this. Higher res images would be a game changer.
  12. I believe you are looking for what are now called "Schematic Views"
  13. Looking for a solution when in Top/Plan view. I would like to be able to have different 2D geometry for a fixture that is yoke down vs yoke or a batten that is horizontal vs vertical. Right now I do this with separate symbols for each 2D orientation. Obviously 3D is simple because I can just rotate the fixture. I was hoping to accomplish this using Low, Medium, and High Level of detail in the Component Edit dialog while editing a symbol. Just make each level of detail a different orientation. This idea works except the only place I can choose which detail to see is in Sheet Layers. I would like to be able to choose this in my Design Layer as well. Is that an option at all? I may be missing something. Open to other ideas if anybody has a nifty way of solving this. Thanks!

 

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