lanumcad
2009-08-03, 09:47 PM
I have used this for my menu bars for three years. now it is not working in AutoCAD 2010.
I get this error: Application ERROR: Invalid type sent as command input
here is the lisp:
(SetQ *ZFDEBUG T )
;;Defaults
(SetQ
*EDI-TRAYLAYER "EDI-Tray"
*EDI-DEFAULTTREYWID 18.0
*EDI-POINTTOLERANCE 0.0000001
)
;;Load Application
(Load "EDI.vlx" )
;;;(Defun C:Test ()
;;; (SetError )
;;;
;;; (EDI_Insert
;;; ;Block Name
;;; "Test Block"
;;; ;Scale: Real or nil for Prompt
;;; 1.0
;;; ;Angle: Radians or nil for prompt
;;; nil
;;; ;Prop: Layer Color Linetype Lineweight Plotstyle, nil for Current
;;; (List "SS-Device" acByLayer "BYLAYER" acLnWtByLayer "BYLAYER" )
;;; ;Attributes: ("TAG" . "TEXT") or nil for Default T for Prompt
;;; '( ("1" . "Att1") ("2" . "Att2") ("5" . "Att5") )
;;; ;Attributes Angle: ("TAG" . RADIANS) or nil for Default, T for All=0.0
;;; '( ("1" . 0.0) ("2" . 0.0) ("3" . 0.0) )
;;; ;Dynamic Properties: ("NAME" . VALUE) or nil for Default
;;; nil
;;; )
;;;
;;; (ResetError )
;;; (TerPri )
;;; (Prin1 )
;;;)
;;******SC DEVICES*********************************************************************
;;Wall Phone VOIP
(Defun C:WALLPHONEVOIP ()
(SetError )
(EDI_Insert
;Block Name
"Data Voice Outlet"
;Scale: Real or nil for Prompt
(If (= (GetVar "DIMSCALE") 0.0) nil (GetVar "DIMSCALE") )
;Angle: Radians or nil for prompt
0.0
;Props: List of Properties or nil for Current
;(List Layer Color Linetype Lineweight Plotstyle )
(List "SC-Device" acByLayer "BYLAYER" acLnWtByLayer "BYLAYER" )
;Attribute Values: List of Dotted-Pairs or nil for Default, T for Prompt
;'( ("TAG" . "VALUE") )
'( ("TAG" . "W") )
;Attribute Angles: List of Dotted-Pairs or nil for Default, T for All=0.0
;'( ("TAG" . RADIANS) )
T
;Dynamic Properties: List of Dotted-Pairs or nil for Default
;'( ("NAME" . VALUE) )
'( ("Type" . "Data Only") )
)
(ResetError )
(TerPri )
(Prin1 )
)
;;Wall Phone Analog
(Defun C:WALLPHONEANALOG ()
(SetError )
(EDI_Insert
;Block Name
"Data Voice Outlet"
;Scale: Real or nil for Prompt
(If (= (GetVar "DIMSCALE") 0.0) nil (GetVar "DIMSCALE") )
;Angle: Radians or nil for prompt
0.0
;Props: List of Properties or nil for Current
;(List Layer Color Linetype Lineweight Plotstyle )
(List "SC-Device" acByLayer "BYLAYER" acLnWtByLayer "BYLAYER" )
;Attribute Values: List of Dotted-Pairs or nil for Default, T for Prompt
;'( ("TAG" . "VALUE") )
'( ("TAG" . "W") )
;Attribute Angles: List of Dotted-Pairs or nil for Default, T for All=0.0
;'( ("TAG" . RADIANS) )
T
;Dynamic Properties: List of Dotted-Pairs or nil for Default
;'( ("NAME" . VALUE) )
'( ("Type" . "Voice Only") )
)
(ResetError )
(TerPri )
(Prin1 )
)
;;Furniture Outlet Data-Voice
(Defun C:FOUTLETDV ()
(SetError )
(EDI_Insert
;Block Name
"Data Voice Outlet"
;Scale: Real or nil for Prompt
(If (= (GetVar "DIMSCALE") 0.0) nil (GetVar "DIMSCALE") )
;Angle: Radians or nil for prompt
0.0
;Props: List of Properties or nil for Current
;(List Layer Color Linetype Lineweight Plotstyle )
(List "SC-Device" acByLayer "BYLAYER" acLnWtByLayer "BYLAYER" )
;Attribute Values: List of Dotted-Pairs or nil for Default, T for Prompt
;'( ("TAG" . "VALUE") )
'( ("TAG" . "*") )
;Attribute Angles: List of Dotted-Pairs or nil for Default, T for All=0.0
;'( ("TAG" . RADIANS) )
T
;Dynamic Properties: List of Dotted-Pairs or nil for Default
;'( ("NAME" . VALUE) )
'( ("Type" . "Data Voice") )
)
(ResetError )
(TerPri )
(Prin1 )
)
;;Furniture Outlet Data Only
(Defun C:FOUTLETD ()
(SetError )
(EDI_Insert
;Block Name
"Data Voice Outlet"
;Scale: Real or nil for Prompt
(If (= (GetVar "DIMSCALE") 0.0) nil (GetVar "DIMSCALE") )
;Angle: Radians or nil for prompt
0.0
;Props: List of Properties or nil for Current
;(List Layer Color Linetype Lineweight Plotstyle )
(List "SC-Device" acByLayer "BYLAYER" acLnWtByLayer "BYLAYER" )
;Attribute Values: List of Dotted-Pairs or nil for Default, T for Prompt
;'( ("TAG" . "VALUE") )
'( ("TAG" . "*") )
;Attribute Angles: List of Dotted-Pairs or nil for Default, T for All=0.0
;'( ("TAG" . RADIANS) )
T
;Dynamic Properties: List of Dotted-Pairs or nil for Default
;'( ("NAME" . VALUE) )
'( ("Type" . "Data Only") )
)
(ResetError )
(TerPri )
(Prin1 )
)
;;Furniture Outlet Voice Only
(Defun C:FOUTLETV ()
(SetError )
(EDI_Insert
;Block Name
"Data Voice Outlet"
;Scale: Real or nil for Prompt
(If (= (GetVar "DIMSCALE") 0.0) nil (GetVar "DIMSCALE") )
;Angle: Radians or nil for prompt
0.0
;Props: List of Properties or nil for Current
;(List Layer Color Linetype Lineweight Plotstyle )
(List "SC-Device" acByLayer "BYLAYER" acLnWtByLayer "BYLAYER" )
;Attribute Values: List of Dotted-Pairs or nil for Default, T for Prompt
;'( ("TAG" . "VALUE") )
'( ("TAG" . "*") )
;Attribute Angles: List of Dotted-Pairs or nil for Default, T for All=0.0
;'( ("TAG" . RADIANS) )
T
;Dynamic Properties: List of Dotted-Pairs or nil for Default
;'( ("NAME" . VALUE) )
'( ("Type" . "Voice Only") )
)
(ResetError )
(TerPri )
(Prin1 )
I get this error: Application ERROR: Invalid type sent as command input
here is the lisp:
(SetQ *ZFDEBUG T )
;;Defaults
(SetQ
*EDI-TRAYLAYER "EDI-Tray"
*EDI-DEFAULTTREYWID 18.0
*EDI-POINTTOLERANCE 0.0000001
)
;;Load Application
(Load "EDI.vlx" )
;;;(Defun C:Test ()
;;; (SetError )
;;;
;;; (EDI_Insert
;;; ;Block Name
;;; "Test Block"
;;; ;Scale: Real or nil for Prompt
;;; 1.0
;;; ;Angle: Radians or nil for prompt
;;; nil
;;; ;Prop: Layer Color Linetype Lineweight Plotstyle, nil for Current
;;; (List "SS-Device" acByLayer "BYLAYER" acLnWtByLayer "BYLAYER" )
;;; ;Attributes: ("TAG" . "TEXT") or nil for Default T for Prompt
;;; '( ("1" . "Att1") ("2" . "Att2") ("5" . "Att5") )
;;; ;Attributes Angle: ("TAG" . RADIANS) or nil for Default, T for All=0.0
;;; '( ("1" . 0.0) ("2" . 0.0) ("3" . 0.0) )
;;; ;Dynamic Properties: ("NAME" . VALUE) or nil for Default
;;; nil
;;; )
;;;
;;; (ResetError )
;;; (TerPri )
;;; (Prin1 )
;;;)
;;******SC DEVICES*********************************************************************
;;Wall Phone VOIP
(Defun C:WALLPHONEVOIP ()
(SetError )
(EDI_Insert
;Block Name
"Data Voice Outlet"
;Scale: Real or nil for Prompt
(If (= (GetVar "DIMSCALE") 0.0) nil (GetVar "DIMSCALE") )
;Angle: Radians or nil for prompt
0.0
;Props: List of Properties or nil for Current
;(List Layer Color Linetype Lineweight Plotstyle )
(List "SC-Device" acByLayer "BYLAYER" acLnWtByLayer "BYLAYER" )
;Attribute Values: List of Dotted-Pairs or nil for Default, T for Prompt
;'( ("TAG" . "VALUE") )
'( ("TAG" . "W") )
;Attribute Angles: List of Dotted-Pairs or nil for Default, T for All=0.0
;'( ("TAG" . RADIANS) )
T
;Dynamic Properties: List of Dotted-Pairs or nil for Default
;'( ("NAME" . VALUE) )
'( ("Type" . "Data Only") )
)
(ResetError )
(TerPri )
(Prin1 )
)
;;Wall Phone Analog
(Defun C:WALLPHONEANALOG ()
(SetError )
(EDI_Insert
;Block Name
"Data Voice Outlet"
;Scale: Real or nil for Prompt
(If (= (GetVar "DIMSCALE") 0.0) nil (GetVar "DIMSCALE") )
;Angle: Radians or nil for prompt
0.0
;Props: List of Properties or nil for Current
;(List Layer Color Linetype Lineweight Plotstyle )
(List "SC-Device" acByLayer "BYLAYER" acLnWtByLayer "BYLAYER" )
;Attribute Values: List of Dotted-Pairs or nil for Default, T for Prompt
;'( ("TAG" . "VALUE") )
'( ("TAG" . "W") )
;Attribute Angles: List of Dotted-Pairs or nil for Default, T for All=0.0
;'( ("TAG" . RADIANS) )
T
;Dynamic Properties: List of Dotted-Pairs or nil for Default
;'( ("NAME" . VALUE) )
'( ("Type" . "Voice Only") )
)
(ResetError )
(TerPri )
(Prin1 )
)
;;Furniture Outlet Data-Voice
(Defun C:FOUTLETDV ()
(SetError )
(EDI_Insert
;Block Name
"Data Voice Outlet"
;Scale: Real or nil for Prompt
(If (= (GetVar "DIMSCALE") 0.0) nil (GetVar "DIMSCALE") )
;Angle: Radians or nil for prompt
0.0
;Props: List of Properties or nil for Current
;(List Layer Color Linetype Lineweight Plotstyle )
(List "SC-Device" acByLayer "BYLAYER" acLnWtByLayer "BYLAYER" )
;Attribute Values: List of Dotted-Pairs or nil for Default, T for Prompt
;'( ("TAG" . "VALUE") )
'( ("TAG" . "*") )
;Attribute Angles: List of Dotted-Pairs or nil for Default, T for All=0.0
;'( ("TAG" . RADIANS) )
T
;Dynamic Properties: List of Dotted-Pairs or nil for Default
;'( ("NAME" . VALUE) )
'( ("Type" . "Data Voice") )
)
(ResetError )
(TerPri )
(Prin1 )
)
;;Furniture Outlet Data Only
(Defun C:FOUTLETD ()
(SetError )
(EDI_Insert
;Block Name
"Data Voice Outlet"
;Scale: Real or nil for Prompt
(If (= (GetVar "DIMSCALE") 0.0) nil (GetVar "DIMSCALE") )
;Angle: Radians or nil for prompt
0.0
;Props: List of Properties or nil for Current
;(List Layer Color Linetype Lineweight Plotstyle )
(List "SC-Device" acByLayer "BYLAYER" acLnWtByLayer "BYLAYER" )
;Attribute Values: List of Dotted-Pairs or nil for Default, T for Prompt
;'( ("TAG" . "VALUE") )
'( ("TAG" . "*") )
;Attribute Angles: List of Dotted-Pairs or nil for Default, T for All=0.0
;'( ("TAG" . RADIANS) )
T
;Dynamic Properties: List of Dotted-Pairs or nil for Default
;'( ("NAME" . VALUE) )
'( ("Type" . "Data Only") )
)
(ResetError )
(TerPri )
(Prin1 )
)
;;Furniture Outlet Voice Only
(Defun C:FOUTLETV ()
(SetError )
(EDI_Insert
;Block Name
"Data Voice Outlet"
;Scale: Real or nil for Prompt
(If (= (GetVar "DIMSCALE") 0.0) nil (GetVar "DIMSCALE") )
;Angle: Radians or nil for prompt
0.0
;Props: List of Properties or nil for Current
;(List Layer Color Linetype Lineweight Plotstyle )
(List "SC-Device" acByLayer "BYLAYER" acLnWtByLayer "BYLAYER" )
;Attribute Values: List of Dotted-Pairs or nil for Default, T for Prompt
;'( ("TAG" . "VALUE") )
'( ("TAG" . "*") )
;Attribute Angles: List of Dotted-Pairs or nil for Default, T for All=0.0
;'( ("TAG" . RADIANS) )
T
;Dynamic Properties: List of Dotted-Pairs or nil for Default
;'( ("NAME" . VALUE) )
'( ("Type" . "Voice Only") )
)
(ResetError )
(TerPri )
(Prin1 )