![]() PosY = vsoSelection(bottomShape).CellsU("PinY").ResultIU PosX = vsoSelection(bottomShape).CellsU("PinX").ResultIU 'Fix up position of selection by offsetting from the bottom shape If vsoSelection.Count > 0 And gCopyPageID activePageID Then If nScopeID = 1022 And = ThenĪctivePageID = (Visio.visGetOrMakeGUID) 'Check for Paste action in a drawing window Private Sub vsoApp_ExitScope(ByVal app As IVApplication, ByVal nScopeID As Long, ByVal bstrDescription As String, ByVal bErrOrCancelled As Boolean) GCopyPageID = (Visio.visGetOrMakeGUID)ĭShapePosX = vsoSelection(bottomShape).CellsU("PinX").ResultIUĭShapePosY = vsoSelection(bottomShape).CellsU("PinY").ResultIU 'Record scope ID and selection information 'Find the shape in the selection at the bottom of the z-orderīottomShape = GetBottomShape(vsoSelection) 'Check for Copy action in a drawing window Private Sub vsoApp_EnterScope(ByVal app As IVApplication, ByVal nScopeID As Long, ByVal bstrDescription As String) If the copy and paste actions occur on different pages, the code moves the selection back to its previous coordinates following the paste action. The current page is recorded during each action as well. The new position of the selection (which will be placed in the center of the window) is read during the paste action. The position of the selection is read during the copy action. This method uses an event handler to detect copy and paste actions. VsoSelection.Copy Visio.visCopyPasteNoTranslateĪ Visio.visCopyPasteNoTranslate 'If there is no selection, select all shapes on the page If the real goal is to support copying to a new page, this macro will perform the necessary steps: In fact you can assign Ctrl-C and Ctrl-V as the accelerator keys for these macros to override Visio’s copy / paste. Thus you can create your own macros that do copy and paste:Ī (visCopyPasteNoTranslate)Ī (visCopyPasteNoTranslate) When invoking Visio’s Copy and Paste command through automation, Visio allows you to specify whether the position of the selection on the page should be preserved using the visCopyPasteNoTranslate flag. The attached Visio document has VBA code to illustrate both methods. Alternatively, you could handle the event notifications from Visio when copy and paste occur and fix up the positioning after the fact. You could write your own procedures to perform copy and paste with better logic for positioning. Actually, there are two ways to solve the problem. ![]() Visio needs a smarter paste behavior.Ī little bit of code can solve the problem for Visio. In Visio objects are pasted to the center of the screen making repositioning a chore. One of the nicer touches in PowerPoint is that objects copied from one page (slide) to another are pasted in exactly the same position. In these types of documents, each page is almost identical to the one before it. One common request is to make copying between pages work better. Visio is a pretty good tool for mocking up application or web interfaces. It seems that quite a few people use Visio for this sort of task. Then the entire document is shown as a presentation to replay the construction of the diagram. Each step the user takes is captured on a separate page in a Visio drawing. If you’ve ever seen one of those “behind the scenes” documentaries for a movie, you’ve seen the storyboarding process. A common task is creating storyboards to show how a user might construct a diagram. I believe this will give you the desired results of a completely separate 'branch' in a new area of your Brain.The Visio Product Team uses Visio for a number of tasks. For Thoughts, you'll copy, for Thought Types and Tags, select Skip and for Links, select Replace. If this is the second time you have pasted, the Existing Objects Detected will appear. In your Master Brain, navigate to the desired area, right click in the plex and select Paste # of Thoughts. Place the desired group of Thoughts in your selection box, right click and Copy # of Thoughts. For this process, I would recommend that you create a separate "Template Brain" Again, you can specify your Types and Tags in this new Brain. Now, the same process can be done and still preserve your Thought Types, tag, notes, etc. For this scenario, I select copy and get and new, clean outline in different areas of my Brain every time. TheBrain will recognize that the names are duplicates and ask if you want to Replace/Copy/Skip. This way, I can open them, copy the tab delineated outline and paste, over and over again when needed. I even keep some templates attached as a. First, let's give the example of copying the Text Outline: Yes, this is a great process for replicating common processes that need to be visualized in different areas of your Brain. PersonalBrain 4.3 Experimental Release Archive TheBrain for iOS 1.0 Beta - Password required
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |