Lord V Posted June 22, 2010 Share Posted June 22, 2010 Firstly I appologise if this is the wrong place to post this query.... I am using AutoCad 2008. I need to write a lisp that creates xdata for a polyline. However I appear to have fallen at the first hurdle as I get the following error: xdata Unknown command "XDATA" this is the line I put in the lisp: (command "xdata" "584.6633,523.6835" "field1" "real" "1234" "") When I type the command into CAD xdata runs fine, but when I try to run it via a lisp I get the above error. What am I missing here? This is just a test at the moment as the data for the lisp will be generated by excel (I have alot of data). However I obviously need a lisp that actually works first! Regards Lord V Quote Link to comment Share on other sites More sharing options...
lpseifert Posted June 22, 2010 Share Posted June 22, 2010 The command Xdata is an Express tool command, their use within a lisp is iffy. You may want to look into using SetXData method (vla-setxdata.... It's described in Developer Documentation > ActiveX and VBA Reference > Methods BTW, the AutoLisp, VBA... forum would probably be a better place to post your question. Quote Link to comment Share on other sites More sharing options...
Lord V Posted June 22, 2010 Author Share Posted June 22, 2010 cheers, that may do it.... Regards Lord V Quote Link to comment Share on other sites More sharing options...
Lord V Posted June 22, 2010 Author Share Posted June 22, 2010 ok my brain is a little frazzled this afternoon . I need a line in a lisp to select all objects that have a common point (in this case the start point of a polyline and the insertion points of block attributes in order to turn them into a block) What should I be writting? Im ending up in a nightmare of ssget, ssadd and every other half remembered function. (re-learning lisp with a stinking head cold is never a great idea by the way) 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.