Results 1 to 9 of 9

Thread: Add Layer description output to a Layer routine

  1. #1
    All AUGI, all the time BCrouse's Avatar
    Join Date
    2003-04
    Location
    Bethlehem, PA
    Posts
    970

    Default Add Layer description output to a Layer routine

    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
    Attached Files Attached Files

  2. #2
    AUGI Addict bowlingbrad's Avatar
    Join Date
    2003-11
    Location
    Chicago
    Posts
    1,226

    Default Re: Add Layer description output to a Layer routine

    Just add this line:

    (vlax-get-property lay 'Description)

    HTH,
    Brad
    Brad Novak
    Director of Information Technology
    Gp GOETTSCH PARTNERS
    Chicago, IL

  3. #3
    All AUGI, all the time BCrouse's Avatar
    Join Date
    2003-04
    Location
    Bethlehem, PA
    Posts
    970

    Default Re: Add Layer description output to a Layer routine

    Thank you very much!

    Brad

  4. #4
    All AUGI, all the time BCrouse's Avatar
    Join Date
    2003-04
    Location
    Bethlehem, PA
    Posts
    970

    Default Re: Add Layer description output to a Layer routine

    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

  5. #5
    AUGI Addict bowlingbrad's Avatar
    Join Date
    2003-11
    Location
    Chicago
    Posts
    1,226

    Default Re: Add Layer description output to a Layer routine

    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
    Brad Novak
    Director of Information Technology
    Gp GOETTSCH PARTNERS
    Chicago, IL

  6. #6
    Member
    Join Date
    2005-05
    Posts
    6

    Default Re: Add Layer description output to a Layer routine

    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

  7. #7
    AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL
    Posts
    1,120

    Default Re: Add Layer description output to a Layer routine

    Quote Originally Posted by bill_white
    Hi Guys

    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.
    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

  8. #8
    100 Club
    Join Date
    2006-11
    Location
    UTAH
    Posts
    135

    Default Re: Add Layer description output to a Layer routine

    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.

  9. #9
    Member
    Join Date
    2005-05
    Posts
    6

    Default Re: Add Layer description output to a Layer routine

    Thanks.....I'll look into these suggestions

    Bill White

Similar Threads

  1. Replies: 13
    Last Post: 2011-06-28, 03:31 PM
  2. layer description in layer key
    By Macieto in forum AMEP General
    Replies: 6
    Last Post: 2010-03-31, 05:56 AM
  3. Replies: 10
    Last Post: 2007-04-27, 06:17 PM
  4. Need Layer Description
    By madcadder in forum AutoLISP
    Replies: 4
    Last Post: 2006-12-18, 06:53 PM
  5. Replies: 4
    Last Post: 2006-09-28, 07:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •