Visio Guy

Visio Discussions => General Visio => Topic started by: jfvert on June 14, 2016, 05:45:52 PM

Title: Line patterns transfer
Post by: jfvert on June 14, 2016, 05:45:52 PM
Hi I am currently trying to import/export a line pattern that I create. But i don't know how... is it possible using stencils to move my line from a visio folder to an other? I have many projects so it is impossible to copy/paste from one to an other it would be too long

Thanks again,

jfvert
Title: Re: Line patterns transfer
Post by: JuneTheSecond on June 16, 2016, 08:47:28 AM
Really, I cannot understand your wish yet.
But it is easy to copy custom line pattern to another drawing,
Simply drag and drop one shape of your line pattern into any page of another Visio drawing.
Or in VBA, next code exports line pattern named "test" to another drawing that is open just now. 


Option Explicit

Sub test()
    Dim mst As Visio.Master

    Set mst = ThisDocument.Masters("test")
   
    ActivePage.Document.Masters.Drop mst, 0, 0
End Sub


Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 44 (show)
Files included: 25 - 925KB. (show)
Memory used: 772KB.
Tokens: post-login.
Cache hits: 7: 0.00102s for 22,302 bytes (show)
Cache misses: 1: (show)
Queries used: 9.

[Show Queries]