VbaCallCPG.bas 956 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Attribute VB_Name = "VbaCallCPG"
  2. Private Declare PtrSafe Function vbadll Lib "lycpg64.cpg" (ByVal code As Long, ByVal x As Double) As Long
  3. Sub VBA调用CPG_CDR复制物件到AI()
  4. ret = vbadll(2, 0)
  5. MsgBox "CDR复制物件到AI 功能 " & ret
  6. End Sub
  7. Sub AI复制物件到CDR()
  8. ret = vbadll(1, 0)
  9. MsgBox "AI复制物件到CDR 功能 " & ret
  10. End Sub
  11. Sub Clear_Fill()
  12. ret = vbadll(3, 0)
  13. MsgBox "Clear_Fill功能 " & ret
  14. End Sub
  15. Sub cql_FillColor()
  16. ret = vbadll(5, 0)
  17. End Sub
  18. Sub Shapes_Filp()
  19. ret = vbadll(4, 0)
  20. End Sub
  21. Sub cql_OutlineColor()
  22. ret = vbadll(6, 0)
  23. End Sub
  24. Sub cql_SameSize()
  25. ret = vbadll(7, 0)
  26. End Sub
  27. Sub fill_red()
  28. ret = vbadll(8, 0)
  29. End Sub
  30. '// 第9号功能: 按边界批量绘制矩形 参数:正数向外,负数向内
  31. Sub BBox_DrawRectangle()
  32. ret = vbadll(9, -2#)
  33. End Sub
  34. '// 第10号功能: 智能群组功能 参数:正数 向外容差 负数 向内容差
  35. Sub Box_AutoGroup()
  36. ret = vbadll(10, -2#)
  37. End Sub