PDA

View Full Version : Lists?



ImaJayhawk
29th Jan 2004, 11:36 pm
I am trying to extract data from a file after using the massprop command.

So I used

(command "_massprop" ent "" "y" "C:\\temp")
(setq docy (open "C:\\temp.mpr" "r"))
(read-line docy)
(read-line docy)
(read-line docy)
(read-line docy)
(read-line docy)
(read-line docy)
(read-line docy)
(setq docysave (read-line docy))
(setq docysave2 (read-line docy))
(close docy))

For docysave I get
"Centroid: X: 812.3703 in"

and for docysave2 I get
" Y: 2567.9591 in"

How can I extract the numbers? Is this a list? Thanks.


ImaJayhawk

hendie
30th Jan 2004, 09:39 am
here's one we made earlier...
centroid and more (http://www.cadalog.com/phpbb2/viewtopic.php?t=15238&highlight=centroid)

ImaJayhawk
30th Jan 2004, 03:10 pm
Thanks I'll check it out.