I am having trouble referencing AecScheduleApplication. I can work dimensioning schedApp as and Object, but then i do not have access to Intellisense in Visual Studio.
I have tried to reference AecXSchedule, but that leads to an error: The referenced component 'AecXSchedule' could not be found.
But I know for certain that the AecXSchedule.dll exists. I browsed for it and found it along the other dll's
What am I doing wrong?
Additional information:
Some screen dumps attached.
A part of my code (using the unmanaged objects):
Dim AcadApp As AcadApplication = Application.AcadApplication
Dim AcadDoc As AcadDocument = AcadApp.ActiveDocument
Dim schedApp As Object (THIS SHOULD BE DIMENSIONED AS AN AecScheduleApplication OBJECT)
SelectCase True
Case AcadApp.Version.StartsWith("19.0")
schedApp = AcadApp.GetInterfaceObject("AecX.AecScheduleApplication.7.0") 'AecScheduleApplication
Case AcadApp.Version.StartsWith("19.1")
schedApp = AcadApp.GetInterfaceObject("AecX.AecScheduleApplication.7.5") 'AecScheduleApplication
Case AcadApp.Version.StartsWith("20.0")
schedApp = AcadApp.GetInterfaceObject("AecX.AecScheduleApplication.7.7") 'AecScheduleApplication
Case Else
MsgBox("Function does not work in this AutoCAD version!", MsgBoxStyle.Critical, "Error")
Exit Sub
EndSelect
Etc...
Regards
Jan Grenov
Solved! Go to Solution.
Solved by Keith.Brown. Go to Solution.
Why do you need to access that module? Those are really for VBA but i guess you could use com for it. .Net has its own api that has pretty much everything that you need. So back to my original question, what are you trying to do with the Schedule module? More than likely there is a .net api that will handle your needs.
Well actually I am trying to make use of some old mixed code that I made when transitioning from VBA to VB.NET some years ago.
... seems to be a bad idea to build even more new code on bad old code. So I decided to rewrite the unmanaged parts of the code and do it all in managed code.
Any hints on which mgd-dll's to reference?
You still didnt mention what you are trying to accomplish so I will take a stab at it. I am guessing that you need scheduling functionality along with property sets. The api for those items can be found in the AECPropDataMgd.dll which is located in the ACA directory.
If you are using Visual Studio, I would recomend going into the acad, aca, and mep directories and loading up all dlls with *mgd.dll in the name. Then you can use the object browser to view the classes that are in each dll. To make it easy, i have a dummy project that just references all of those dll's in my main solution that I use. The project doesnt actually do anything, its just a test bed for browsing the classes.
HTH.
Dear jan ,
Could you share your source code here? I want to read property set value from civil 3d with COM API ,and can not find any useful information.
I attach my code.
It is a long time since I made it, so I may not be able to answer all questions.
...hope this helps ...
Regards Jan