Hi there,
I am using VB Script in Formula Property Definition to add more data for an object.
As the image below, I could get some information such as Inner Structure Width, Inner Structure Length, and Structure Height with these codes.
I would like to get more information in Table 1 such as Wall Thickness, Floor Thickness.
How can I get it by editing my command code?
These are the command codes that I used in the project.
RESULT="--"
On Error Resume Next
Set oApp=GetObject(, "AutoCAD.Application")
Set oCivilApp=oApp.GetInterfaceObject("AeccXUiLand.AeccApplication.13.6")
Set obj=oCivilApp.ActiveDocument.ObjectIDToObject([ObjectID])
If obj.BoundingShape = 1 Then
Result = CStr(obj.StructureInnerDiameterOrWidth*1000)
Else
Result = Cstr(obj.StructureInnerLength*1000) + " x " + CStr(obj.StructureInnerDiameterOrWidth*1000)
End If
Thank you for your attention and have a good day.
Solved! Go to Solution.