Andrew McDonald
Usenet Archive
- Joined
- Jul 9, 2003
- Messages
- 27
- Reaction score
- 0
I have a routine which needs to accept the following paper size : ISO A1 594 x 840 mm. (with the period [.] at the end) I can use the following code to retrieve this name :
(DEFUN getlocalemedianames (adoc / la cmn lmn)
(SETQ la (VLA-ITEM (VLA-GET-LAYOUTS adoc) "Model"))
(FOREACH cmn (getcanonicalmedianames adoc)
(SETQ lmn (CONS (VLA-GETLOCALEMEDIANAME la cmn) lmn))
)
(REVERSE lmn)
)
(getlocalemedianames (vla-get-activedocument (vlax-get-acad-object)))
The name is returned in the form of : "ISO A1 594 x 840 mm."
This name when used in the line below won't be accepted by the routine (command "-PLOT" "y" "" "\\\\GCSERVER\\Cadjet 2" "ISO A1 594 x 840 mm." "m" "l" "n" "v" "a1" "1=1" "c" "y" "tvs.ctb" "y" "n")
However, if you type in the above manually, you can type in ISO A1 594 x 840 mm. (without the quotes) and it will be accepted.
My question is how do you get the (command "-plot" .....) line of code to accept this paper size.
Any replies greatly appreciated.
Regards
Andrew McDonald
(DEFUN getlocalemedianames (adoc / la cmn lmn)
(SETQ la (VLA-ITEM (VLA-GET-LAYOUTS adoc) "Model"))
(FOREACH cmn (getcanonicalmedianames adoc)
(SETQ lmn (CONS (VLA-GETLOCALEMEDIANAME la cmn) lmn))
)
(REVERSE lmn)
)
(getlocalemedianames (vla-get-activedocument (vlax-get-acad-object)))
The name is returned in the form of : "ISO A1 594 x 840 mm."
This name when used in the line below won't be accepted by the routine (command "-PLOT" "y" "" "\\\\GCSERVER\\Cadjet 2" "ISO A1 594 x 840 mm." "m" "l" "n" "v" "a1" "1=1" "c" "y" "tvs.ctb" "y" "n")
However, if you type in the above manually, you can type in ISO A1 594 x 840 mm. (without the quotes) and it will be accepted.
My question is how do you get the (command "-plot" .....) line of code to accept this paper size.
Any replies greatly appreciated.
Regards
Andrew McDonald