Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Whenever I use this in a function I get this error:
** Error: ActiveX Server returned the error: unknown name: Elevation **
What am i missing? Is there a better way to do this?
(vlax-map-collection (vla-get-modelspace doc)
'(lambda (object) (if
(and
(/= "AcDbBlockReference" (vla-get-objectname object))
(/= "AcDbMText" (vla-get-objectname object))
(/= "AcDbHatch" (vla-get-objectname object))
)
(progn
(vla-put-elevation object 0))
)))
Solved! Go to Solution.