HowTo: convert Visio font to AutoCAD font

VISIO

    Sponsored Links

    Next

  • 1. Macro to list/select layers
    I'd like to extend the View>Layer command to display all the layers for all the sheets in a Visio project, and allow the user to enable/ disable layers across the project. I have a little familiarity with Visio and VBA, so I'm hoping for some example code to get me started in the correct direction. I've found VBA to turn on a partcular layer across all sheets in a project, but not anything that would build a list of all the layers present and allow the user to choose.
  • 2. How do you set Target Monitor programatically in C#?
    Hi all, I have a visio file which contains multiple pages with multiple shapes. For each page I call Page.Export(page_name) and for each shape on that page I first change the background color, make another call to Page.Export(shape_name) and then undo the background color change. I've already set the Target Monitor on the visio file to 1024x768 and the exported pictures for the calls to Page.Export(page_name) all comply to this setting. But the files I get from calling Page.Export(shape_name) do not follow the Target Monitor setting at all. Is it possible to set the Target Monitor before each call to Page.Export()? Does anyone have any kind of guess as to why this might happen?
  • 3. Rich text in a Visio shape
    I need to place RTF text in a Visio shape from a .Net application. The Visio SDK documentation says that the Shape.PasteSpecial(visPasteRichText) method on a group shape should do the trick, but I get a COM exception: "Requested operation presently disabled." I can't find an example anywhere in this forum on anywhere else on the internet. Can anyone post an example of putting rich text in a Visio shape? Here's my code: using System.Windows.Forms; using Visio = Microsoft.Office.Interop.Visio; public void Draw() { // Get some rich text. RichTextBox rtfBox = new RichTextBox(); rtfBox.Text = "This is some rich text."; rtfBox.SelectAll(); rtfBox.SelectionColor = System.Drawing.Color.Blue; // Copy the rich text into the clipboard. Clipboard.SetText(rtfBox.SelectedRtf, TextDataFormat.Rtf); // Paste the rich text into a shape. Visio.Shape visioShape = VisioInfo.Page.DrawRectangle(2, 2, 4, 4); visioShape.ConvertToGroup(); // This avoids "Inappropriate target object for this action" exception. visioShape.PasteSpecial((int) (Visio.VisPasteSpecialCodes.visPasteRichText), false, false); // This line throws "Requested operation presently disabled" COM exception. } The exception is thrown whether or not the new shape is selected. Thanks for any help you can give me.
  • 4. Which SDK should I use?
    I have an Excel add-in (COM), and I want to take the output from it and generate Visio diagrams. Ideally I would like to support older versions of Visio. I have the Visio 2002 SDK, but I don't have a feel for the Visio market. - Is Visio 2002 still widely used? - Given that I just want to generate basic diagrams such as flowcharts, are there any compelling reasons to use a newer SDK? Thanks, Nick
  • 5. Manipulating sequence diagram in Visio
    I am using Microsoft Visio 2003 to define static classes with operations/methods and a sequence diagrams referring to these classes. The sequence diagram is almost done, but i realized that i missed one operation in middle of the diagram. When i try to move rest of the sequences down by selecting it as a block, all the operations in the block loose link with static diagrams. ( Methods which were referred to static classes that appeared as fun() in sequence diagram, after movement appear as fun in sequence diagram, which means that now they no longer refer to static diagrams and any future changes would not be reflected in dynamic sequence diagrams automatically.) The sequence diagrams have grown to A3 size paper and i have many of such diagrams which needs correction. Manually moving the operations one by one would involve lots of effort. Could someone kindly suggest a way to overcome this problem?

HowTo: convert Visio font to AutoCAD font

Postby UXVvIFZhZGlz » Sat, 23 Oct 2004 11:25:04 GMT

Using Visio Automation, would it be possible to convert Visio font such as 
Arial to AutoCAD font such as ROMANT when saving a file in Visio 2003?

Re: HowTo: convert Visio font to AutoCAD font

Postby Chris Roth [ Visio MVP ] » Fri, 29 Oct 2004 05:33:04 GMT

I'm no ACAD expert, so....

Is the AutoCAD font available to the system (ie: in the Visio drop-down 
list?)

Or is an AutoCAD font a thing that is only available to AutoCAD.

If the first case, then you can change the font for each shape, or change 
the font for the Text style used by each shape (hopefully affecting more 
than one shape at a time) -- or change the font for the Master object behind 
each shape instance, while we're thinking inheritance.

-- 

Hope this helps,

Chris Roth
Visio MVP









Similar Threads:

1.HowTo: fix incorrect placement of Text after converting to AutoCAD

As AutoCAD DWG, I saved Page which has Callout-straight master with 
left-aligned text of Annotations stencil in Visio 2003. When I open the file 
in Visio and AutoCAD, the text is incorrectly placed upside down. Does anyone 
know how to fix this problem?

2.Visio font tracking problem when converted to .png or .vsd

I have been editing a document which contains a large number (1000+) Visio 
flow charts.
Many text boxes contain normal text, followed by a word in bold then 
followed by normal text. When I convert the .vsd file to .png or .gif the 
white space between the bold text and accompanying normal is often (but not 
always) compressed, sometimes to zero.
The converted .vsd files are imported into FrameMaker which is then 
converted to an XML file for web distribution, so I need a web-friendly 
format rather than .emf, which normally produces satisfactory results when 
imported into FrameMaker.
My program is Visio 2000.
The font used is Arial. I tried changing the font to Verdana and got the 
same result.
I have also tried changing the resolution from the default (screen) to 300 
pels and even 600 pels, which results in a fuzzy and hard to read screen 
display.
The problem does definitely seem to be with the Visio program rather than 
FrameMaker as the .pngs viewed in a graphics program such as Paint Shop Pro 
look the same as they do in FrameMaker, with uneven spacing. 
-- 
Tony Maries

3.Visio Changes Font when edited in PowerPoint

Help!
I copied a Visio org chart into a PowerPoint 
presentation.  When I open the object in PowerPoint to 
edit all of the fonts change!

Please help!
Thanks!
Andrea

4.Visio 2003 Font Issues

Hi,

I've installed Visio 2003 for Enterprise Architects and the fonts on every 
stencil, describing the shapes, are all garbled and overlapped.  I've 
uninstalled and reinstalled, service packed it...done everything I can think 
of.  I've installed it from two different disks.  Problem persists.

Any help on how to correct this would be greately apprecated.  I can't find 
anything in the KnowledgeBase which would lead me to a fix.

Thanks.

-s

5.Visio default font

How can I determine the default font of a document in visio programatically?

6. Visio 2007 Font

7. Font Missing - Visio Only

8. font printing problem of imported visio file inside power point file



Return to VISIO

 

Who is online

Users browsing this forum: No registered users and 13 guest