VINIT
11-25-2005, 01:47 AM
Friends,
This is a sample program I wrote to find out start and end points for any given selected edge. I don't understand why this program is not working. what has gone wrong? When I load this program using (Load "<filename.lsp>"), It gives me an error saying that "MyEdge1 is unbound" This may be due to:..........etc"
(use-package :OLI)
(sd-defdialog 'edgelength
:dialog-title "Edge length"
:variables
'(
(MyEdge1 :value-type :edge
:title "Edge-1"
:all
:prompt-text "Select an Edge"
);close MyEdge1
);variables
:ok-action
(progn
(setq a (sd-edge-start-pnt (sd-inq-edge-geo MyEdge1)))
(setq b (sd-edge-end-pnt (sd-inq-edge-geo MyEdge1)))
(print (format nil "Start & Endpoints list ~A" '(a b)))
);progn
);sd-defdialog
Regards
Vinit
This is a sample program I wrote to find out start and end points for any given selected edge. I don't understand why this program is not working. what has gone wrong? When I load this program using (Load "<filename.lsp>"), It gives me an error saying that "MyEdge1 is unbound" This may be due to:..........etc"
(use-package :OLI)
(sd-defdialog 'edgelength
:dialog-title "Edge length"
:variables
'(
(MyEdge1 :value-type :edge
:title "Edge-1"
:all
:prompt-text "Select an Edge"
);close MyEdge1
);variables
:ok-action
(progn
(setq a (sd-edge-start-pnt (sd-inq-edge-geo MyEdge1)))
(setq b (sd-edge-end-pnt (sd-inq-edge-geo MyEdge1)))
(print (format nil "Start & Endpoints list ~A" '(a b)))
);progn
);sd-defdialog
Regards
Vinit