Message 1 of 3
AcadLine.StartPoint not recognized

Not applicable
12-03-2007
05:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone. I wrote the following code:
Dim ent As AcadEntity
Dim startpoint As Variant
Dim x As Double, y As Double, z As Double
For Each ent In Thisdrawing.modelspace
startpoint = AcadLine.startpoint
x = startpoint(0)
y = startpoint(1)
z = startpoint(2)
MsgBox x
AcadLine.startpoint always returns "0". Note that there are no capital letters in startpoint. The same thing happens when i'm looking for the endpoint. I could really use some help.
thnx
Dim ent As AcadEntity
Dim startpoint As Variant
Dim x As Double, y As Double, z As Double
For Each ent In Thisdrawing.modelspace
startpoint = AcadLine.startpoint
x = startpoint(0)
y = startpoint(1)
z = startpoint(2)
MsgBox x
AcadLine.startpoint always returns "0". Note that there are no capital letters in startpoint. The same thing happens when i'm looking for the endpoint. I could really use some help.
thnx