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
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