本帖最后由 llsheng_73 于 2014-5-27 17:30 编辑
 - (SETQ P(GETPOINT))(FOREACH X '("0" "DGX")
- (command"layer""M" x "")
- (command "POINT" p ""))
 - (SETQ P(GETPOINT))
- (mapcar'(lambda(x)(entmake(list'(0 . "point")(cons 8 x)(cons 10 p))))'("0" "DGX"))
 - (SETQ P(GETPOINT))
- (FOREACH X '("0" "DGX")
- (IF(NULL (TBLOBJNAME"LAYER"x))
- (entmake (list'(0 . "LAYER")'(100 . "AcDbSymbolTableRecord")'(100 . "AcDbLayerTableRecord")
- '(70 . 0)(cons 2 x))))
- (ENTMAKE (LIST'(0 . "POINT")(CONS 8 X)(CONS 10 P))))
 - (SETQ P(GETPOINT))
- (FOREACH X '(("0"1)("DGX" 3))
- (IF(NULL (TBLOBJNAME"LAYER"(CAR X)))
- (entmake (list'(0 . "LAYER")'(100 . "AcDbSymbolTableRecord")'(100 . "AcDbLayerTableRecord")
- '(70 . 0)(cons 2 (CAR X)))))
- (ENTMAKE (LIST'(0 . "POINT")(CONS 8 (CAR X))(CONS 62 (LAST X))(CONS 10 P))))
|