For example, if the visual style is wireframe in the current drawing.
How to detect it by autolisp?
Your helps are much appreciated.
|
For example, if the visual style is wireframe in the current drawing.
How to detect it by autolisp?
Your helps are much appreciated.
The reason which I rose was that I cannot see any system variables to do the job.
I'd like to know if there is any solution for this.
I have not been able to find any system variables either. Is there a way to list environmental variables? perhaps it is one of those (similar to tool palette paths)
Same problem i had when i was looking for the last distance used in offset command
anyhoo...
by extracting several system variables for every Standard Visual Style (out of the box)
I'll select "Conceptual" as the current visual style
and i'll run this
you will note the difference between each Vstyle and i guess you can make a matrix which condtionCode:(foreach var '( "VSEDGECOLOR" "VSEDGES" "VSEDGESMOOTH" "VSFACESTYLE" "VSMATERIALMODE" "VSOBSCUREDEDGES" "VSOBSCUREDLTYPE" "VSSILHEDGES" "VSSILHWIDTH") (print var) (print (getvar var))(princ))
is unique to the current visual style and from there derive a basis
give it a try.. i'm not sure though. its a shot in the dark
To find a variable you could try
(at the acad prompt)
lsp
if you already haven't try it..
Thanks to pbejse & clovis.
But what I want is to find something can return a value of the visual style, just is similar to osmode.
So preferring a (getvar "XXX") could do the job.
Perhaps, like this
Code:((lambda () (vl-load-com) (vl-catch-all-error-message (vl-catch-all-apply '(lambda() (setq vp (vla-get-activeviewport (vla-get-activedocument (vlax-get-acad-object))) vp (vlax-vla-object->ename vp) elist (entget vp) vs (cdr (assoc 348 elist)) vlist (entget vs) vstyle (cdr (assoc 2 vlist))) (alert vstyle))))))