Lisp Question

Status
Not open for further replies.

Donald Varino

Usenet Archive
Joined
Jan 21, 2001
Messages
26
Reaction score
0
I need a little help here, please see code below. Why is it that I can make a selection set of say some blocks and I can manipulate the selection set by erasing or changing but when I try to EXPLODE the selection set it will not.
Please HELP..

;Here I can get the selection set and erase the blocks.

(setq SS (ssget "X" (list (cons 0 "insert") (cons 2 "32win,wall,c_wall"))))
(command ".erase" ss "")

;Here I can get the selection set but the blocks will not explode.

(setq SS (ssget "X" (list (cons 0 "insert") (cons 2 "32win,wall,c_wall"))))
(command ".explode" ss "")

Why is this?

I want to be able to get a selection set of all blocks and be able to explode them.

Don
 
Ordinarily, the EXPLODE command works only on a single object in LISP, which is compatible with the way EXPLODE operated in much earlier versions of AutoCAD. Your code should work OK if you set bit zero (value = 1) of the
QAFLAGS variable:

;; start of program
(setq qa (getvar "qaflags"))
(setvar "qaflags" (logior qa 1))
...
<<your code here>>
...
(setvar "qaflags" qa)
(princ) ;; end of prog

___

"Donald Varino" wrote:

I need a little help here, please see code below. Why is it that I can
make
a selection set of say
some blocks and I can manipulate the selection set by erasing or changing but when I try to EXPLODE the selection set it will not.
Please HELP..

;Here I can get the selection set and erase the blocks.

(setq SS (ssget "X" (list (cons 0 "insert") (cons 2
"32win,wall,c_wall"))))
(command ".erase" ss "")

;Here I can get the selection set but the blocks will not explode.

(setq SS (ssget "X" (list (cons 0 "insert") (cons 2
"32win,wall,c_wall"))))
(command ".explode" ss "")

Why is this?

I want to be able to get a selection set of all blocks and be able to explode them.

Don
 
Thanks for the help. I tried looking up that sysvar on QAFLAGS but I'm unable to get anything. Why isn't there any information on it???

Don

Paul Turvill wrote:
Ordinarily, the EXPLODE command works only on a single object in LISP,
which
is compatible with the way EXPLODE operated in much earlier versions of AutoCAD. Your code should work OK if you set bit zero (value = 1) of the
QAFLAGS variable:

;; start of program
(setq qa (getvar "qaflags"))
(setvar "qaflags" (logior qa 1))
...
<<your code here>>
...
(setvar "qaflags" qa)
(princ) ;; end of prog
...
 
Officially, it's undocumented, even though it's been around since R11. The interaction between bit 0 and (command "_.explode" ...) is a side effect of its effect on grips. You can find more information on QAFLAGSs and numerous other undocumented System Variables and Commands by clicking on the "AutoCAD Exposed" link at http://www.manusoft.com.
___

"Donald Varino" wrote:

Thanks for the help. I tried looking up that sysvar on QAFLAGS but I'm unable to get anything. Why isn't there any information on it???
 
Tnanhs for the info

Don

Paul Turvill wrote:
Officially, it's undocumented, even though it's been around since R11. The interaction between bit 0 and (command "_.explode" ...) is a side effect of its effect on grips. You can find more information on QAFLAGSs and numerous other undocumented System Variables and Commands by clicking on the
"AutoCAD
Exposed" link at
http://www.manusoft.com.
___

"Donald Varino" wrote:

> Thanks for the help. I tried looking up that sysvar on QAFLAGS but I'm
> unable to get anything.
> Why isn't there any information on it???
 
This is an undocumented system variable. If this system variable is the answer to this user's question, the rest of us should be made aware of its existence and use. Would Autodesk please explain the purpose of this system variable and how it is supposed to be used / not used?

PSLTSCALE 1
PSPROLOG ""
PSQUALITY 75
PSTYLEMODE 1 (read only) PSTYLEPOLICY 1 PSVPSCALE 0.00000000 PUCSBASE "" QTEXTMODE 0 RASTERPREVIEW 1 REFEDITNAME "" (read only) REGENMODE 1 REMEMBERFOLDERS 0 RTDISPLAY 1 SAVEFILE "" (read only) SAVEFILEPATH "C:\WINNT\TEMP\" SAVENAME "" (read only)
SAVETIME 120

CompanyName: Autodesk, Inc
FileDescription: AecScheduleData30 DBX
FileVersion: 3, 3, 0, 376
LegalCopyright: Copyright (c) 1982-2001 by Autodesk, Inc.

CompanyName: Autodesk, Inc
FileDescription: AecScheduleDataArch30 DBX
FileVersion: 3, 3, 0, 376
LegalCopyright: Copyright (c) 1982-2001 by Autodesk, Inc.

CompanyName: Autodesk, Inc.
FileDescription: AecUiScheduleData30 ARX
FileVersion: 3, 3, 0, 376
LegalCopyright: Copyright (c) 1982-2001 by Autodesk, Inc.

CompanyName: Autodesk, Inc.
FileDescription: AecArchXM30 ARX
FileVersion: 3, 3, 0, 376
LegalCopyright: Copyright (c) 1982-2001 by Autodesk, Inc.

CompanyName: Autodesk, Inc.
FileDescription: AecDCArch30 ARX
FileVersion: 3, 3, 0, 376
LegalCopyright: Copyright (c) 1982-2001 by Autodesk, Inc.

CompanyName:
FileDescription: AecStructureBase30 DBX
FileVersion: 3, 3, 0, 376
LegalCopyright: Copyright (c) 1982-2001 by Autodesk, Inc.

CompanyName:
FileDescription: AecStructure30 ARX
FileVersion: 3, 3, 0, 376
LegalCopyright: Copyright (c) 1982-2001 by Autodesk, Inc.

CompanyName: Autodesk, Inc.
FileDescription: AecSchedule30 DBX
FileVersion: 3, 3, 0, 376
LegalCopyright: Copyright (c) 1982-2001 by Autodesk, Inc.

CompanyName: Autodesk, Inc.
FileDescription: AecUiSchedule30 ARX
FileVersion: 3, 3, 0, 376
LegalCopyright: Copyright (c) 1982-2001 by Autodesk, Inc.

CompanyName: Autodesk, Inc.
FileDescription: AecAreaCalculationBase30 DBX
FileVersion: 3, 3, 0, 376
LegalCopyright: Copyright (c) 1982-2001 by Autodesk, Inc.

CompanyName: Autodesk, Inc.
FileDescription: AecArchDACHBase30 DBX
FileVersion: 3, 3, 0, 376
LegalCopyright: Copyright (c) 1982-2001 by Autodesk, Inc.

CompanyName: Autodesk, Inc.
FileDescription: AecAreaCalculation30 ARX
FileVersion: 3, 3, 0, 376
LegalCopyright: Copyright (c) 1982-2001 by Autodesk, Inc.

CompanyName: Autodesk, Inc.
FileDescription: AecArchDACH30 ARX
FileVersion: 3, 3, 0, 376
LegalCopyright: Copyright (c) 1982-2001 by Autodesk, Inc.

CompanyName: Autodesk, Inc.
FileDescription: AecIfcUtility30 ARX
FileVersion: 3, 3, 0, 376
LegalCopyright: Copyright (c) 1982-2001 by Autodesk, Inc.
Command: acadver

ACADVER = "15.06" (read only)
 
Never Mind. Thanks for the info. It's a shame, however, that Autodesk has undocumented variables that have to be "exposed". I wonder how many unexposed variables there are.
 
Bill DeShawn wrote:
Never Mind. Thanks for the info. It's a shame, however, that Autodesk has undocumented variables that have to be "exposed".

I think, these variables are undocumented, because they (at least some of them) don't work correctly (unwanted "side effects") -> the user should not use (change the default values of) this variables.

Juergen
 
Jrgen Palme schrieb:

I think, these variables are undocumented, because they (at least some of them) don't work correctly (unwanted "side effects") -> the user should not use (change the default values of) this variables.

... or these sysvars will become obsolete in future versions.

Tom Berger
 
Another reason some of them (e.g., QAFLAGS) exist is so that Autodesk's developers can change the behavior of AutoCAD during the continuing development process. They remain undocumented for a variety of reasons, but there's no reason for one to avoid using them so long as one does so with reasonable care and with the foreknowledge that "undocumented" means "not guaranteed to exist or behave the same in future releases." ___

"Jrgen Palme" wrote:

I think, these variables are undocumented, because they (at least some of them) don't work correctly (unwanted "side effects") -> the user should not use (change the default values of) this variables.
 
Status
Not open for further replies.

Latest threads

Back
Top