Message 1 of 5
AcadX-DocumentIterator
Not applicable
11-27-2002
04:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi NG;
I've been trying the great plugin from Tony T AcadX.
The AcadXDynamicGraphics works perfect but I have
problem with the DocumentIterator.
What i want to accomplish is to change the font of a textstyle
within a large number of drawings but it doesn't seem to
save the changes.
Thisdrawing.Save doesn't return an error so i don't know
what it could be.
Any ideas? See code below.
Thanks
Private Sub Iterator_OpenDocument(Document As AXDB15Lib.IAxDbDocument)
Dim txtStyle As AcadTextStyle
ThisDrawing.Utility.Prompt vbCrLf & "Processing " & Document.Name
On Error GoTo Slutet
Set txtStyle = ThisDrawing.TextStyles.Item("Normal")
txtStyle.fontFile = "C:/AutoCAD/Fonts/iso.shx"
Err.Clear
ThisDrawing.Save
MsgBox Err.Description
Slutet:
Set txtStyle = Nothing
End Sub
I've been trying the great plugin from Tony T AcadX.
The AcadXDynamicGraphics works perfect but I have
problem with the DocumentIterator.
What i want to accomplish is to change the font of a textstyle
within a large number of drawings but it doesn't seem to
save the changes.
Thisdrawing.Save doesn't return an error so i don't know
what it could be.
Any ideas? See code below.
Thanks
Private Sub Iterator_OpenDocument(Document As AXDB15Lib.IAxDbDocument)
Dim txtStyle As AcadTextStyle
ThisDrawing.Utility.Prompt vbCrLf & "Processing " & Document.Name
On Error GoTo Slutet
Set txtStyle = ThisDrawing.TextStyles.Item("Normal")
txtStyle.fontFile = "C:/AutoCAD/Fonts/iso.shx"
Err.Clear
ThisDrawing.Save
MsgBox Err.Description
Slutet:
Set txtStyle = Nothing
End Sub