Lanya CPG Plug-In For Coreldraw X4-2023
CorelDRAW VBA GMS Call: Lanya CPG Open API Function Setting Tutorial
💯 CorelDRAW VBA 调用 CPG 开放API 功能源码
#If VBA7 Then
Private Declare PtrSafe Function vbadll Lib "lycpg64.cpg" (ByVal code As Long, ByVal x As Double) As Long
#Else
Private Declare Function vbadll Lib "lycpg32.cpg" (ByVal code As Long, ByVal x As Double) As Long
#End If
Sub VBA调用CPG_CDR复制物件到AI()
ret = vbadll(2, 0)
MsgBox "CDR复制物件到AI 功能 " & ret
End Sub
Sub AI复制物件到CDR()
ret = vbadll(1, 0)
MsgBox "AI复制物件到CDR 功能 " & ret
End Sub
Sub Clear_Fill()
ret = vbadll(3, 0)
MsgBox "Clear_Fill功能 " & ret
End Sub
Sub cql_FillColor()
ret = vbadll(5, 0)
End Sub
Sub Shapes_Filp()
ret = vbadll(4, 0)
End Sub
Sub cql_OutlineColor()
ret = vbadll(6, 0)
End Sub
Sub cql_SameSize()
ret = vbadll(7, 0)
End Sub
Sub fill_red()
ret = vbadll(8, 0)
End Sub
Sub BBox_DrawRectangle()
ret = vbadll(9, 0#)
End Sub
Sub Box_AutoGroup()
ret = vbadll(10, 1#)
End Sub
Sub BoundaryGroup()
ret = vbadll(11, 0)
End Sub
Sub Open_LYCPG()
ret = vbadll(888, 8)
End Sub