-
1
- #1
RichiePete
Marine/Ocean
- Jul 8, 2001
- 2
I have developed a program in visual basic which draws a cross sectional area using values supplied by a user, a region is then created using this profile. The purpose of this is for autocad to automatically return the area of the region, and place it back into my program for it to be analysed. However this is not the case, as it returns a value of zero. I have used the following code for this:
Dim retArea As Double
retArea = region.Area
txtOutput = retArea
(where region is the object name of the region)
The thing that puzzles me is that when I go into tools-inquiry-area, autocad recognises the shape constructed to be a closed region and returns an area. Has anyone else suffered from this problem.
Dim retArea As Double
retArea = region.Area
txtOutput = retArea
(where region is the object name of the region)
The thing that puzzles me is that when I go into tools-inquiry-area, autocad recognises the shape constructed to be a closed region and returns an area. Has anyone else suffered from this problem.