LISPC07 Advanced Applications
LISPC07 Advanced Applications
doc
The first time you shift from the model space to the paper space, the graphic area
displays a blank space that represents a white paper. The tile mode 0 or 1 can
also be changed by pressing the “TILE” icon on the status bar.
· Set floating view ports in the paper space (Use the MVIEW commnad) :
command : MVIEW <pt1> <pt2>
· Return to the paper space from the model space of a floating view ports :
comman pspace
d:
The model space or paper space of a floating view port can also be changed
by pressing the “MODEL” icon on the status bar.
- 7.1 -
/conversion/tmp/activity_task_scratch/873822923.doc
4. View the solid model from the front view, top view, right view, or isometric view.
Press one of the “View” tool icon:
- 7.2 -
/conversion/tmp/activity_task_scratch/873822923.doc
7. View the solid model from the required view direction, and then establish an user
coordinates system perpendicular to the viewing direction by:
Command: UCS View
8. Turn off all layers except “PV-xxx” layer, copy and paste the visible profile lines to
another drawing. For example, in the following figure, the front view profiles are
copied and pasted to a new drawing.
9. Return to the original drawing with solid model, keep the solid model, and delete
all generated 2D profiles. This can be done by turning on all layers except layer
“0”, deleting all visible profiles, and then turning on the layer “0”.
- 7.3 -
/conversion/tmp/activity_task_scratch/873822923.doc
10. Repeat steps (3)~(9) for the necessary view profiles. For examples, front view,
top view and isometric view profiles are copied to the new drawing as:
- 7.4 -
/conversion/tmp/activity_task_scratch/873822923.doc
Home work:
Draw the solid model of the angle plate, use the SOLPROF command to create 2D
profiles, and then add necessary center lines and dimensions, as shown in the figure.
- 7.5 -
/conversion/tmp/activity_task_scratch/873822923.doc
- 7.6 -
/conversion/tmp/activity_task_scratch/873822923.doc
- 7.7 -
/conversion/tmp/activity_task_scratch/873822923.doc
;================================================
; rotate slider-crank
; sc_set : (<i.p.> sset_crank ss_link ss_slider par_list)
; par_list: (r th c e)
; sc_ang: crank angle in radian
; global: sc_set, sc_ang (in radian)
(defun c:rs (/ ip e1 e2 e3 par r th c e dth
p1 p2 L1 L2 q1 q2 da ainc key)
(graphscr)
(setq ip (car sc_set) e1 (nth 1 sc_set)
e2 (nth 2 sc_set) e3 (nth 3 sc_set)
par (nth 4 sc_set) r (car par)
th (nth 1 par) c (nth 2 par) e (nth 3 par)
ainc 10 ;angle increment in degree
)
(setq p1 (polar ip sc_ang r) L1 (afunc r sc_ang c e)
p2 (rpoint ip L1 e)
)
(princ "\n Press <SPACE> to rotate clockwise")
(princ ", Press <backspace> to rotate counter clockwise")
(princ ", Press <RETURN> to end !")
(setvar "cmdecho" 0)
(while (and (setq key (cadr (grread))) (/= 13 key) )
(if (= key 8) ;<back space> is pressed
(setq dth ainc)
(setq dth (- ainc))
)
(setq sc_ang (+ sc_ang (dtr dth))
q1 (polar ip sc_ang r) L2 (afunc r sc_ang c e)
q2 (rpoint ip L2 e)
da (- (angle q2 q1) (angle p2 p1))
da (rtd da)
)
(command "rotate" e1 "" ip dth)
(command "move" e2 e3 "" p2 q2)
(command "rotate" e2 "" q2 da)
(setq p1 q1 p2 q2) ;update p1, p2
);end-while
)
;===================================================
=======
- 7.8 -
/conversion/tmp/activity_task_scratch/873822923.doc
;================================================
; Four-Bar.lsp: Four-bar mechanism
; a: length of fixed link
; b: length of the crank
; c: length of the connecting rod,
; d: length of the follower
; th: angle of the crank in radian
; w: width of links
; di: inside diameter of the joint
; four-bar linkage
(defun c:4b (/) (c:4bar)(princ))
(defun c:r4 (/) (c:r4b)(princ))
;================================================
- 7.9 -
/conversion/tmp/activity_task_scratch/873822923.doc
- 7.10 -
/conversion/tmp/activity_task_scratch/873822923.doc
- 7.11 -
/conversion/tmp/activity_task_scratch/873822923.doc
- 7.12 -
/conversion/tmp/activity_task_scratch/873822923.doc
- 7.13 -
/conversion/tmp/activity_task_scratch/873822923.doc
- 7.14 -
/conversion/tmp/activity_task_scratch/873822923.doc
- 7.15 -
/conversion/tmp/activity_task_scratch/873822923.doc
Conclusion:
1. For the generated GIF file size, GIF Movie Gear is better than Magic Pic2ani.
GMG also has “Optimize Animation” option to reduce file size further.
2. For the generated AVI file size, Magic Pic2ani is better than GIF Movie Gear.
3. If only one software can be selected, choose GIF Movie Gear.
- 7.16 -