can someone please add the layer discription to this lisp. This lisp exports the layer name, color and linetype to an excel file.
Thank you,
Brad
can someone please add the layer discription to this lisp. This lisp exports the layer name, color and linetype to an excel file.
Thank you,
Brad
Just add this line:
(vlax-get-property lay 'Description)
HTH,
Brad
Thank you very much!
Brad
I added that string and I got it to say description but it will not add the linetype now. What am I don't wrong.
Thank you,
Brad
Here is where I put it in your code:
Code:(setq lylst (cons (list (vlax-get-property lay 'Name) (itoa (vlax-get-property lay 'Color)) (vlax-get-property lay 'Linetype) (vlax-get-property lay 'Description) ) lylst ) ) )
Last edited by Opie; 2007-05-10 at 04:31 PM. Reason: [CODE] tags added
Hi Guys
This is an interesting app. I have a routine that reads a layer data file containing the layer name, colour. linetype, lineweight and description. I have no problem handling the name, colour, linetype and lineweight. However, I would also like to add the description when the layer is created. Is there a way to accomplished this with Vlisp or will I have to use a VBA routine. Any assistance with this would be appreciated.
While I have your attention, I am also looking for a routine that will export out a set of layer property filters from one dwg file so that it can be imported into another. I realize that this would be easily done be using a dwt file as the template to start the dwg but I have some older files that I wanted to use the same layer property filters in.
Again any suggestions or assistance will be greatly appreciated.
Thanks
Bill
Upgrade, in 2008 you can import layer states from a DWG, DWS, DWT, or a (layer state) LAS file with Layer States Manager which no longer needs to be called from Layer Properties Manager.Originally Posted by bill_white
Tom Beauford P.S.M. - Civil 2013 on Windows 7 Pro
Design Analysis - Leon County Public Works/Engineering
2280 Miccosukee Rd. Tallahassee, FL 32308-5310
Ph# (850)606-1516
For sharing variables between drawings you've got 3 options...
1) vl-bb-set and vl-bb-ref. vl-bb-set will set the varible into a "Blackboard" namespace to be referenced in any drawing by using vl-bb-ref. Does not set the variable in the current drawing.
2) vl-doc-set and vl-doc-ref. vl-doc-set will set the variable in the current drawing and allow it to be referenced in other drawings using vl-doc-ref. vl-doc-set is similar to setq in the current drawing, and vl-doc-ref is similar to eval.
3)vl-propagate. This will get any variable in the current drawing and set it in all currently open drawings, and any drawing opened afterwards.
For full descriptions see "Referencing Variables in Document Namespaces" in the AutoLISP developers guide.
Thanks.....I'll look into these suggestions
Bill White