1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- Option Explicit
- Sub PStoCurve()
- If ActiveShape Is Nothing Then MsgBox "Nothing selected", vbExclamation, "PStoCurve": Exit Sub
- Dim OrigSelection As ShapeRange
- Dim impflt As ImportFilter
- Dim impopt As StructImportOptions
- Set OrigSelection = ActiveSelectionRange
- Dim expflt As ExportFilter
- Dim expopt As StructExportOptions
- Set expopt = New StructExportOptions
- Dim ptt As String
- expopt.UseColorProfile = False
- ptt = Environ$("TEMP") & "\PStoCurve.ai"
-
-
- Set expflt = ActiveDocument.ExportEx(ptt, cdrAI, cdrSelection, expopt)
- With expflt
- .Version = 6
- .TextAsCurves = True
- .ConvertSpotColors = False
- .UseColorProfile = False
- .SimulateOutlines = False
- .SimulateFills = False
- .IncludePlacedImages = False
- .IncludePreview = False
- .Finish
- End With
-
- Set impopt = New StructImportOptions
- impopt.MaintainLayers = False
- Set impflt = ActiveLayer.ImportEx(ptt, cdrAI, impopt)
- impflt.Finish
-
-
-
-
- OrigSelection.Delete
- CorelScriptTools.Kill ptt
-
- End Sub
|