Is it possible to grab a dimension from a selected line? I have been trying to use the API to get a dimension off of the bounding box line but have been unable to.
I have this line where I am grabbing one of the bounding box lines.
boolStatus = swModel.Extension.SelectByID2("Line2@Bounding-Box2", "EXTSKETCHSEGMENT", 0, 0, 0, False, 0, Nothing, 0)
I have tried to measure it using the swModel.Extension.CreateMeasure code but it doesn't give me a value for some reason.
Any help would be greatly appreciated.
Thanks in advance,
Trevor
SolidworksApi macros