Jump to content

Jesse Cogswell

  • Content Count

  • Joined

  • Last visited

Community Reputation

9 Neutral

About Jesse Cogswell

  • Rank

Personal Information

  • Location
    United States

Recent Profile Visitors

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

  1. You should be able to set the "Adjust Flipped Text" setting using SetObjectVariableBoolean(viewportHandle,1029,TRUE/FALSE). No worries about the function reference, it's a tricky thing to navigate. There's so many things you can do using object variables, but it involves poring through the appendices. I've gotten pretty good at using Ctrl+F to find what I'm looking for.
  2. Peter is quite correct in that BuildResourceList will do the trick. 47 appears to be the Object Type for Record Formats. The one downside is that it will list the records for all plug-in objects in the drawing as well as the Record Formats in the Resource Manager, which can become a bit much if you have a lot of plug-in objects or different types in a drawing. Sample code I used to test is below. PROCEDURE GetRecordList; VAR recList,numRecords:LONGINT; i:INTEGER; test:STRING; BEGIN recList:=BuildResourceList(47,0,'',numRecords); FOR i:= 1 TO numRecords DO BEGIN test:=Concat(test,' | ',GetActualNameFromResourceList(recList,i)); END; Message('Num Records: ',numRecords,' ',test); END; Run(GetRecordList);
  3. @line-weight , ask and you shall receive. The script will now save the choice from the Attributes to Copy drop-down as well as the Update Viewports checkbox to a resource file and will recall those settings the next time you run the command. This is set globally, so these settings will be recalled regardless of which drawing you have open. Update Viewports will be unchecked by default the first time you run the tool. Copy Viewport Settings.vsm
  4. I had a problem with this in Vision 2021 as well. I ran the Update Dongle command in the Help menu and restarted Vision and it seemed to take care of the problem.
  5. @SamIWas , @line-weight mentioned in the original post that they have been using the eyedropper tool to do this, but it becomes very tedious if you have a large number of viewports spread across multiple sheet layers, the tool I wrote and posted above allows you to do it all in one go, and has the ability to force the viewports to run an update as well. @VectorGeek , The only thing that it does above and beyond the eyedropper tool is that it can apply to any number of viewports all at once. If you're copying settings from one viewport to, let's say, 10 other viewports spread across multiple sheet layers, that can take a little time. It also is a hair faster choosing between copying layer visibilities, class visibilities, or both since it's built into the dialog box, no need to open up the tool's settings menu and tick/untick a bunch of boxes.
  6. @Joan67 Not so fast! Designer is the full-featured version of VW, so it includes Landmark and Spotlight. So you should be covered as far as that is concerned. It also explains why you have the Spotlight menu commands. Did you check your Class Options? I'm trying to think if there are any other things that might cause this issue...could you try opening a new file and testing it there? Or you could upload a file and we could take a look at it.
  7. Is there a chance that the version of VW2020 that you are using is just the Fundamentals or Landmark version and doesn't have the Spotlight module installed? To quickly check, click on Help - About Vectorworks (on Windows), or About Vectorworks under the Apple menu on Mac (I believe, don't have an Apple machine in front of me). There is a category for "Licensed Products" and should include Spotlight. If Spotlight isn't there, then VW might not have the Lighting Device plug-in object necessary to handle the lighting fixture, though it's odd that you have the Spotlight menu options.... The other thing to look at is that your Class Options under the View menu is set to Show/Snap/Modify Others. There's a chance that you're on Active Only, so the different classes that make up the fixture symbols aren't visible.
  8. @line-weight That's interesting. When I run the command on 2019, it does not take me to a sheet layer (even if the command is run from a design layer) and renders the viewports one at a time. This is also consistent with selecting multiple viewports and pressing Update, VW does them one at a time for me. I had originally placed the UpdateVP command in the same procedure as applying the visibility changes, but now gave the update process a dedicated procedure so that all of the viewports update at once to see if it cleans up the process for you. Let me know if you see a change. Copy Viewport Settings.vsm
  9. @line-weight Good catch on the error if there are no viewports in the drawing. The command will now throw a notification if no viewports are detected. The dialog box will populate based on the viewport name (set in the Create Viewport dialog box, or edited in the "Name" field at the bottom of the Object Info Palette). If you're as lax as I am about naming viewports, this can be a bit confusing. The Drawing Title is not tied to Title Blocks, but is a separate field for all viewports in the Object Info Palette, which things like Drawing Label objects use when automatic drawing coordination is turned on. I added an "On Layer" column and "Drawing #" column to the list browser to aid in helping distinguish which viewport is which. The list browser will sort the viewports by layer, then drawing number automatically. I also added an "Update Viewports" checkbox, checked on by default. As for your idea of "presets" of visibilities similar to the publish command, it is certainly possible but that's getting into the point where I start billing you hourly. Vectorscript doesn't really have a way of doing drawing specific resource files, so I would have to store each "preset" as a worksheet and code in Classes and Layers visibility menus from scratch. It's certainly possible, but not really something I want to do on a tool I barely use without getting paid for it. Anyhow, updated file is attached. Just replace the file in the Plug-ins folder with this one and restart Vectorworks. Copy Viewport Settings.vsm
  10. @line-weight I just installed it on 2018 and ran a quick test without any problems. You should be good to go!
  11. @line-weight As Pat mentioned, translating things from saved views is really difficult as VW basically treats saved views as scripts, so pulling info can be difficult. As far as I know, there are no Vectorscript commands that will do the job. As for the viewport visibility option, I wrote up a script to do exactly that for a friend of mine. It opens a dialog box with a drop-down to select the viewport to copy, whether to copy layer settings, class settings, or both, and a list browser allowing you to select which viewports to copy the settings to. It will copy visibility as well as class overrides. I could not for the life of me get it to copy layer overrides, so if you need to do that, it would be best to use the eyedropper tool. It was written in Vectorscript in VW2019 and I've loosely tested it in 2021 (it's not one of my main plug-ins and isn't one I use too often myself, so I haven't done a full feature-by-feature test). It is attached to this message as "Copy Viewport Settings.vsm". The install process is a bit convoluted if you haven't done it before. Download the .vsm file. In Vectorworks, go to your Vectorworks Preferences, select the User Folder tab, and click the button labeled "Explore" (on Windows) or "Open in Finder" (on Mac). Copy the downloaded .vsm file and paste it in the folder named "Plug-ins". Restart Vectorworks. In Vectorworks, open Tools-Workspaces-Edit Current Workspace. Select the Menus tab, and find the category labeled "JNC" in the left list box and expand it. Click and drag the Copy Viewport Settings menu command over to the target menu in the right list box. Click OK. The menu command should now be in the designated menu. Let me know if something breaks or if you have any questions. The scripting itself isn't terribly complicated, but some of the components of the dialog box (IE, the List Browser) are terribly documented by VW and take a lot of trial and error to get right. If you would like, I can share the source code but would rather not on the public forum. - Jesse Copy Viewport Settings.vsm
  12. I've seen this more than a few times. According to support, this is caused by having a show file with more lights than your computer specs can render. The only solution I have found that seems to be reliable is to only export a movie IMMEDIATELY after opening the show file in Vision. Don't turn on any lights, make sure your console DMX is disconnected, don't render out a still before hand. Start Vision, open the file, load the DMX stream into the DMX Recorder, render video. I have found that if I turn on any lights before rendering, the export won't have the full compliment of fixtures. Which is super frustrating after spending an hour to export a movie.
  13. @A.D.K. Did you attach the Parts record to the clamp? It should be set as a Base. If a base object is already part of the fixture symbol, it usually works best to be in the same part (usually a group) as whatever is currently set as the base. I haven't done a ton of experimenting with this, but I think only one object wants to be assigned as a Base Part.
  14. Aha! Quite right. My muscle memory is stuck to using Ctrl+Alt+Shift+F to select a focus point, I'll just have to get used to double-clicking the selection instead. Actually, after playing with this for a bit, I think I discovered a bug with the Edit Lighting Device dialog. If only one fixture is selected, the dialog is shifted to one side, hiding the OK and Cancel buttons. It looks like they offset the elements of the dialog for having the Lighting Devices list browser (which doesn't appear if only one fixture is selected), but set the window dimension without it.
  15. Good morning. Just downloaded the new 2021 and am playing around with the Spotlight features. When I tried to focus the lighting fixtures, I discovered the new dialog box. Unless I'm missing something, there's not a way to select existing Focus Point objects in this window. While I certainly appreciate being able to focus a light without having to need a focus point, a big part of my design process is laying out my focus points first and using their location to place my lighting fixtures. I understand that I can still enter the information in manually in the Focus field of the Object Info Palette, I miss being able to set it from a list. Am I missing something with the new tool or has this functionality been removed? If it's been removed, could we file a feature request to add either a list box or pop-up menu to the Focus Lighting Devices dialog box? In the meantime, I've copied the original Focus Instruments plug-in from VW2020 as a workaround, but it would be lovely to be able to quickly focus fixtures with existing points without needing a second menu command. - Jesse


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