Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error: ADS request error ...system reset.

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
CADjinni
2719 Views, 3 Replies

Error: ADS request error ...system reset.

When entering the following Autolisp code: (layerstate-save "myname" 15 (getvar "cvport")) I get the following result: Error: ADS request error ...system reset. Can anyone help? Autocad 2010 Many thanks Colin
3 REPLIES 3
Message 2 of 4
hmsilva
in reply to: CADjinni


@CADjinni wrote:
When entering the following Autolisp code: (layerstate-save "myname" 15 (getvar "cvport")) I get the following result: Error: ADS request error ...system reset. Can anyone help? Autocad 2010 Many thanks Colin

The layerstate-save function requires three arguments,

the LayerStateName as a string

the Mask an integer (sum designating the layer properties to save)

the viewport  (to store the VPLAYER setting needs a entity name - ename - from the viewport.... if nil the layerstate will be saved without the VPLAYER settings

i.e.

(layerstate-save "myname" 15 nil)

to save without the VPLAYER settings, or

(layerstate-save "myname" 15 (car (entsel "\nSelect a viewport: ")))

 

HTH

Henrique

 

EESignature

Message 3 of 4
CADjinni
in reply to: CADjinni

Thank you Henrique, Problem solved. As you pointed out the function was looking for an entity name not a cvport number. I still have to do a bit of programming to avoid requiring user input. But hey I can make it work now. Regards Colin
Message 4 of 4
hmsilva
in reply to: CADjinni

You're welcome, Colin
Glad I could help

Henrique

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost