Visual LISP, AutoLISP and General Customization

Reply
*Andersen, Henrik
Message 1 of 2 (63 Views)

_List all plot styles ??

63 Views, 1 Replies
03-11-2001 11:29 PM
Q1: How do I list all plot styles in the same way as I list the plot devices
(vlax-safearray->list
(vlax-variant-value
(vla-getplotdevicenames
(vla-item (vla-get-layouts
(vla-get-activedocument (vlax-get-acad-object))
)
"Model"
) ) ) )

I can of cause get all the filenames from the Plot Style folder but
there is a probelm if the folder contains a short cut to another folder.

Q2: How do I get the current setting for the Plot Style folder.
- I can get it by reading the registry key
(vl-registry-read (strcat"HKEY_CURRENT_USER\\"

(vlax-product-key)"\\Profiles\\"(getvar"CPROFILE")"\\General")"PrinterStyleS
heetDir")
but is it any other way like using the vlax-get-property and the right tab
and keyname ?

Q3: Where is the different 'Tabnames and 'Keynames listed

Thanks in advance,

/Henrik Andersen

--
¯`·.¸¸.·´¯`·.¸¸.-- :-) Henrik Andersen :-) --.¸¸.·´¯`·.¸¸.·´¯
www.cad-q.se
*Middleton, Cliff
Message 2 of 2 (63 Views)

Re: _List all plot styles ??

03-12-2001 01:02 AM in reply to: *Andersen, Henrik
Does this give you what you want?

(defun c:getps ()
(safearray-value
(variant-value
(vla-GetPlotStyleTableNames
(vla-get-layout
(vla-get-modelspace
(vla-get-activeDocument
(vlax-get-acad-object)
)
)
)
)
)
)
)

Cliff

"Henrik Andersen" wrote in message
news:E56134FD0DBB6FE88FC8C17951997176@in.WebX.maYIadrTaRb...
| Q1: How do I list all plot styles in the same way as I list the plot
devices
| (vlax-safearray->list
| (vlax-variant-value
| (vla-getplotdevicenames
| (vla-item (vla-get-layouts
| (vla-get-activedocument (vlax-get-acad-object))
| )
| "Model"
| ) ) ) )
|
| I can of cause get all the filenames from the Plot Style folder but
| there is a probelm if the folder contains a short cut to another folder.
|
| Q2: How do I get the current setting for the Plot Style folder.
| - I can get it by reading the registry key
| (vl-registry-read (strcat"HKEY_CURRENT_USER\\"
|
|
(vlax-product-key)"\\Profiles\\"(getvar"CPROFILE")"\\General")"PrinterStyleS
| heetDir")
| but is it any other way like using the vlax-get-property and the right
tab
| and keyname ?
|
| Q3: Where is the different 'Tabnames and 'Keynames listed
|
| Thanks in advance,
|
| /Henrik Andersen
|
| --
| ¯`·.¸¸.·´¯`·.¸¸.-- :-) Henrik Andersen :-) --.¸¸.·´¯`·.¸¸.·´¯
| www.cad-q.se
|

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community