Message 1 of 5
Not applicable
10-31-2012
08:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using LISP in C3D 2012. I am trying to get the station and elevation of a point I pick in a profile view. I found the Method that will get that info, but I can';t seem to get the syntax right.
This is the Method;
HRESULT FindStationAndElevationAtXY(
[in] double X,
[in] double Y,
[out] double * pStation,
[out] double * pElevation,
[out, optional] VARIANT * pInBounds
);
This is the routine I am trying but not having any luck working.
(defun C:getsta () (setq ProfView (vlax-ename->vla-object (car (nentsel "\nSelect Profile View ")))) (setq pt1 (getpoint "\nSelect Point ")) (setq pt1X (car pt1)) (setq Pt1Y (cadr pt1)) (setq pstation 1.0) (setq pelevation 1.0) (vlax-invoke profview 'FindStationandElevationatXY (pt1x, pt1y, pstation, pelevation)) )
Can someone help me get the syntax right?? Thank you,
Dave
Solved! Go to Solution.