vla-put-ConfigName

vla-put-ConfigName

marc_pepin
Contributor Contributor
1,500 Views
4 Replies
Message 1 of 5

vla-put-ConfigName

marc_pepin
Contributor
Contributor

Why can't I put a printer name like "\\cagops\CAGOP012" in vla-put-ConfigName? Because when you do vla-get-ConfigName it returns the printer name.vla-object.PNG

Thanks for any help.

0 Likes
Accepted solutions (1)
1,501 Views
4 Replies
Replies (4)
Message 2 of 5

Jonathan3891
Advisor
Advisor

Untested, but maybe this will work?

(vla-put-configname (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))) "CAGOP01.pc3")

Jonathan Norton
Blog | Linkedin
0 Likes
Message 3 of 5

marc_pepin
Contributor
Contributor

I will need to make a pc3 file?

0 Likes
Message 4 of 5

SeeMSixty7
Advisor
Advisor
Accepted solution

Your input needs to include the escape chars

 

(vla-put-ConfigName obj "\\\\ServerName\\PrinterName")

 

Good luck

0 Likes
Message 5 of 5

marc_pepin
Contributor
Contributor

Thanks it works!!