Bradley Posted January 6 Share Posted January 6 Hi all I have an issue running vlax-curve-getparamatpoint. The variable values are as follows: _$ e1 ; this is a line I drew in AutoCAD ((-1 . <Entity name: 23241204d70>) (0 . "LINE") (330 . <Entity name: 232411ff9f0>) (5 . "24F") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "0") (100 . "AcDbLine") (10 35.8604 5.94506 0.0) (11 45.8851 17.2402 0.0) (210 0.0 0.0 1.0)) _$ p3 ; this is the coordinates of some text I created in AutoCAD, located on the end of the line e1 (45.8851 17.2402 0.0) Now I run the following command in the Visual Lisp Console: _$ (vlax-curve-getparamatpoint e1 p3) And get the following error: ; error: unable to get ObjectID: ((-1 . <Entity name: 23241204d70>) (0 . "LINE") (330 . <Entity name: 232411ff9f0>) (5 . "24F") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "0") (100 . "AcDbLine") (10 35.8604 5.94506 0.0) (11 45.8851 17.2402 0.0) (210 0.0 0.0 1.0)) Does anybody know why I would be getting this error? I have the .dwg file open containing the line and text used in the above. Thank you in advance. Quote Link to comment Share on other sites More sharing options...
Steven P Posted January 7 Share Posted January 7 Check the help out, it is asking for the object ID and the point, you are supplying it with the entity name and the point - subtle differences ( https://help.autodesk.com/view/OARX/2022/ENU/?guid=GUID-1827742B-21DE-4454-90A0-19551DE79B5A ) You'll want to use: (vlax-ename->vla-object entname) to convert it ( https://help.autodesk.com/view/OARX/2022/ENU/?guid=GUID-BD451263-76D5-4A93-B50A-3C27E89A0AD4  ) Quote Link to comment Share on other sites More sharing options...
Steven P Posted January 15 Share Posted January 15 3 hours ago, rsneha said: (setq param (vlax-curve-getparamatpoint e1 (vlax-3D-point p3))) Did you test that? getparam at point wants a VLA object, not entity and a point, not a VLAX- variant type.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.