---------------------------❓ 질문---------------------------
I was able to execute the macro written in module1.bas attached by Excel VBA using Autocad.
I want to know if it can be used in the Cadian as well.
Or, I would like to know if there is a way to connect to the cadian from Excel VBA.
---------------------------🎓 답변---------------------------
Sir/Madam,
It is judged that the content of the question is about how to use the CADian Application object in EXCEL VBA.
It is the same as the general usage of loading third-party application objects based on EXCEL VBA.
CADian must be running for the method below.
1. Load CADian Application object
:
:
Set CADianApp = GetObject(, "ICAD.Application")
If Err Then
Err.Clear
MsgBox "Please run CADian first before using it!"
Exit Sub
End If
:
:
2. Load other objects to use with the loaded CADianApp
:
:
Set icadDoc = CADianApp.ActiveDocument
Set icadutil = icadDoc.Utility
Set icadLib = icadApp.Library
Set mSpace = icadDoc.ModelSpace
:
:
Refer to the above information and modify module1.bas.
For additional CADian VBA related information, please refer to the CADian Developer Help.
Thank you!
IntelliKorea,
Technical Support Team