Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I've been trying to make this work with 3 digits but it seems not to be working by adding a round() into it but the information contains only 2 decimals ...
How can we format this line so it outputs 3 decimals ?
spos = aec.ActiveDocument.Utility.ConvertToVariantArray(obj.PointAtParam(1))
FYI here's the VB scripts :
Property set data VB script for Inlet Invert (Return 2 decimals) :
RESULT = "--"
On Error Resume Next
Set oApp = GetObject(, "AutoCAD.Application")
Set oCivilApp = oApp.GetInterfaceObject("AeccXUiPipe.AeccPipeApplication.13.5")
Set aec = oApp.GetInterfaceObject("AecX.AecBaseApplication.8.5")
aec.Init oApp
Set obj = oCivilApp.ActiveDocument.HandleToObject("[Handle]")
spos = aec.ActiveDocument.Utility.ConvertToVariantArray(obj.PointAtParam(0))
RESULT = round(spos(2),3)
Property set data for Oulet Invert (Return 2 decimals) :
RESULT = "--"
On Error Resume Next
Set oApp = GetObject(, "AutoCAD.Application")
Set oCivilApp = oApp.GetInterfaceObject("AeccXUiPipe.AeccPipeApplication.13.5")
Set aec = oApp.GetInterfaceObject("AecX.AecBaseApplication.8.5")
aec.Init oApp
Set obj = oCivilApp.ActiveDocument.HandleToObject("[Handle]")
spos = aec.ActiveDocument.Utility.ConvertToVariantArray(obj.PointAtParam(1))
RESULT = spos(2)
Solved! Go to Solution.



