ozimad Posted February 8, 2010 Posted February 8, 2010 Hi can somebody helpme with getting startpoint: Command: ; error: bad argument type: VLA-OBJECT 2127010984 - this is the error (setq temp (ssget "l")) ;;;iselect blocj (command "_.explode" temp) ;;;i explode it (setq temp1 (entlast)) ;;get the line out of block (setq objid1 (vla-get-objectid (vlax-ename->vla-object temp1))) (setq stpt (vlax-SafeArray->List (vlax-Variant-Value (vla-Get-StartPoint objid1)))) (print stpt) (command "_.erase" temp1 "") many thanks! Quote
MSasu Posted February 8, 2010 Posted February 8, 2010 I think (setq objid1 (vlax-ename->vla-object temp1)) is enough to get the entity as VLA object and list his features. Don't need to use vla-get-objectid statement. May also use vlax-curve-getStartPoint to get the start point. Quote
Lee Mac Posted February 8, 2010 Posted February 8, 2010 Also, you can avoid variants/safearrays using: (vlax-get obj 'StartPoint) Quote
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.