@Anonymous hi,
I use Property Set Data to define different objects properties, then using formulas generate different values and schedules.
I can show you how correctly get different object's properties. For example, AutoCAD solids, I want to generate volume value in Property Set Data:
In formula's field I need to get this:
RESULT="--"
On ERROR RESUME NEXT
Set oApp=GetObject(,"AutoCAD.Application")
Set obj=oApp.ActiveDocument.ObjectIDToObject("[ObjectID]")
RESULT=obj.Volume
First and second strings RESULT="--"
On ERROR RESUME NEXT are constant
Third string Set oApp=GetObject(,"AutoCAD.Application") is connection to AutoCAD .dll file (for Civil 3D you need to use different files)
Fourth string Set obj=oApp.ActiveDocument.ObjectIDToObject("[ObjectID]") defining object's ID (Handle for Civil 3D objects)
Fifth string RESULT=obj.Volume defining object's property you wanna see in Property Set Data (full list you can find in API manual)
Be aware: before creating this formula you need to define ObjectID (Handle for Civil 3D objects) as a property :smileyhappy