Message 1 of 18
Parent object's Z coordinate
Not applicable
02-17-2006
03:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need to get elevation of a wall to which my window is attached to.
I had hoped to get it like this:
Dim Anch, Obj, PObj, App
Set App = GetObject(,"AutoCAD.Application")
Set Obj = App.Activedocument.ObjectIDtoobject("[ObjectID]")
Set Anch = Obj.GetAnchor
Set PObj = Anch.Reference
RESULT = PObj.Location(2)
This fails, why?
Thanks,
Jussi
I had hoped to get it like this:
Dim Anch, Obj, PObj, App
Set App = GetObject(,"AutoCAD.Application")
Set Obj = App.Activedocument.ObjectIDtoobject("[ObjectID]")
Set Anch = Obj.GetAnchor
Set PObj = Anch.Reference
RESULT = PObj.Location(2)
This fails, why?
Thanks,
Jussi