Results 1 to 4 of 4

Thread: Adding Layer Lineweights

  1. #1
    Member
    Join Date
    2002-08
    Posts
    3
    Login to Give a bone
    0

    Default Adding Layer Lineweights

    Can somebody help me with an existing program that was created by somebody who is no longer here. I need the attached .dvb file to read the associated lineweight columns in the zipped .csv file.

    It is currently set up to read/create the layer name, color and linetype within the .csv file depending on the phase that is selected. I simply need to add the lineweight column(s) to the layer properties depending on on phase the user selects.

    Any help would be greatly appreciated.
    Attached Files Attached Files
    Last edited by aalderete; 2005-10-28 at 02:33 AM. Reason: Reattached unlocked .dvb.

  2. #2
    100 Club mtuersley's Avatar
    Join Date
    2001-12
    Posts
    122
    Login to Give a bone
    0

    Default Re: Adding Layer Lineweights

    Kind of difficult to help you out if you don't give out the password for the dvb....unless that's your problem, in which case no one will unless you can supply proof of ownership. To hack into it otherwise is illegal

  3. #3
    Member
    Join Date
    2002-08
    Posts
    3
    Login to Give a bone
    0

    Default Re: Adding Layer Lineweights

    Sorry about that, I thought I had disabled the password. I uploaded a new dvb with no password (I think). Please try again...

  4. #4
    Member
    Join Date
    2004-10
    Posts
    4
    Login to Give a bone
    0

    Default Re: Adding Layer Lineweights

    I looked through your code - and although I cannot run it (setting are not correct on my machine - nor do I have some of you general configurations).

    It would be helpful to see some screen shots of the program in action so that I could see what information is contained within the forms too.

    But...looking at the .CSV file...

    First you need to change the .CSV file so that the pen weights are integer values, such as 0.18 = 18 etc. The .lineweight is an enumerated value so it must be feed an integer. Do this for the columns Demo, Exst, Fut, New

    Not knowing what the form contains, you may need to edit your list box to ADD the .lineweight field also.

    Then read that column value into your program my guess is that it is within the Sub pro_ReadFile(arg_Fil)


    Your code has the following set up for the layers lay_Itm = all the layers in the current drawing.


    Once you have the field for lineweight read in, you can simply set the lineweight with a command like: lay_Itm.lineweight=sLW (where sLW is the value read from the .CSV file).

    Overall this can be done, but it will take some editing and testing.

    I'd be willing to assist you, but you will be the only one able to run and test...does that work for you?

Similar Threads

  1. Replies: 7
    Last Post: 2008-10-01, 04:20 PM
  2. Edit Lineweights in Layer Dialog
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2008-05-27, 09:26 PM
  3. Lineweights on Layer Manager
    By arkimak in forum ACA General
    Replies: 1
    Last Post: 2007-08-16, 02:27 PM
  4. assign layer lineweights based on layer color
    By viv.howe in forum AutoLISP
    Replies: 4
    Last Post: 2007-05-01, 04:27 PM
  5. Adding Layer Description
    By cgerhardt in forum AutoLISP
    Replies: 1
    Last Post: 2006-03-23, 10:20 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
  •